| Conditions | 3 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function handle(): int |
||
| 20 | { |
||
| 21 | $entity = $this->getEntity(); |
||
| 22 | |||
| 23 | if ($entity === null) { |
||
| 24 | $this->error('Entity with the ' . $this->argument('code') . ' identifier does not exists'); |
||
| 25 | |||
| 26 | return 1; |
||
| 27 | } |
||
| 28 | |||
| 29 | $entity->update([ |
||
| 30 | 'activated_at' => now(), |
||
| 31 | ]); |
||
| 32 | |||
| 33 | $this->info('Activated the entity ' . ($entity->code instanceof BackedEnum ? $entity->code->value : $entity->code)); |
||
| 34 | |||
| 35 | return 0; |
||
| 36 | } |
||
| 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