| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | protected function getReport($client) |
||
| 33 | { |
||
| 34 | $service = new GoogleAnalyticsReportService($client); |
||
| 35 | |||
| 36 | $reports = $service->getReport(); |
||
| 37 | $count = 0; |
||
| 38 | |||
| 39 | $updateService = new PageUpdateService(); |
||
| 40 | /** @var array $rows */ |
||
| 41 | foreach ($reports as $report) { |
||
| 42 | /** @var array $rows */ |
||
| 43 | $rows = $report->getData()->getRows(); |
||
| 44 | $count += $updateService->updateVisits($rows); |
||
| 45 | } |
||
| 46 | echo "<p>$count Pages updated with Google Analytics visit count</p>"; |
||
| 47 | } |
||
| 49 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths