| Conditions | 3 |
| Paths | 12 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | public function handle(): int |
||
| 39 | { |
||
| 40 | try { |
||
| 41 | if ($this->option('cleanup')) { |
||
| 42 | $this->info('Cleaning up old metrics...'); |
||
| 43 | $deleted = $this->metricsService->cleanupOldMetrics(); |
||
| 44 | $this->info("Deleted {$deleted} old metric records."); |
||
| 45 | } |
||
| 46 | |||
| 47 | $this->info('Collecting system metrics...'); |
||
| 48 | $this->metricsService->collectMetrics(); |
||
| 49 | $this->info('System metrics collected successfully.'); |
||
| 50 | |||
| 51 | return Command::SUCCESS; |
||
| 52 | } catch (\Exception $e) { |
||
| 53 | $this->error('Failed to collect system metrics: '.$e->getMessage()); |
||
| 54 | |||
| 55 | return Command::FAILURE; |
||
| 56 | } |
||
| 59 |
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