Loading src/GoogleAnalyticsCounterFeed.php +3 −1 Original line number Diff line number Diff line Loading @@ -643,7 +643,9 @@ class GoogleAnalyticsCounterFeed { */ protected function sanitizeReport() { // Named keys for report values. $this->results->rawRows = isset($this->results->rows) ? $this->results->rows : []; $this->results->rawRows = isset($this->results) && isset($this->results->rows) ? $this->results->rows : []; $this->results->rows = []; foreach ($this->results->rawRows as $row_key => $row_value) { foreach ($row_value as $item_key => $item_value) { Loading tests/src/Kernel/GoogleAnalyticsCounterQueueTest.php +6 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,12 @@ class GoogleAnalyticsCounterQueueTest extends CronQueueTest { * * @var array */ protected static $modules = ['node', 'user', 'google_analytics_counter', 'path_alias']; protected static $modules = [ 'node', 'user', 'google_analytics_counter', 'path_alias', ]; /** * The queue plugin being tested. Loading Loading
src/GoogleAnalyticsCounterFeed.php +3 −1 Original line number Diff line number Diff line Loading @@ -643,7 +643,9 @@ class GoogleAnalyticsCounterFeed { */ protected function sanitizeReport() { // Named keys for report values. $this->results->rawRows = isset($this->results->rows) ? $this->results->rows : []; $this->results->rawRows = isset($this->results) && isset($this->results->rows) ? $this->results->rows : []; $this->results->rows = []; foreach ($this->results->rawRows as $row_key => $row_value) { foreach ($row_value as $item_key => $item_value) { Loading
tests/src/Kernel/GoogleAnalyticsCounterQueueTest.php +6 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,12 @@ class GoogleAnalyticsCounterQueueTest extends CronQueueTest { * * @var array */ protected static $modules = ['node', 'user', 'google_analytics_counter', 'path_alias']; protected static $modules = [ 'node', 'user', 'google_analytics_counter', 'path_alias', ]; /** * The queue plugin being tested. Loading