| Total Complexity | 4 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | class CriteriaMakeCommand extends GeneratorCommand |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The console command name. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $name = 'make:criteria'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The console command description. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $description = 'Create a new criteria class'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The type of class being generated. |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $type = 'Criteria'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the stub file for the generator. |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | protected function getStub() |
||
| 37 | { |
||
| 38 | return __DIR__.'/stubs/criteria.stub'; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Replace the class name for the given stub. |
||
| 43 | * |
||
| 44 | * @param string $stub |
||
| 45 | * @param string $name |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | protected function replaceClass($stub, $name) |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Get the default namespace for the class. |
||
| 57 | * |
||
| 58 | * @param string $rootNamespace |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | protected function getDefaultNamespace($rootNamespace) |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Get the console command arguments. |
||
| 68 | * |
||
| 69 | * @return array |
||
| 70 | */ |
||
| 71 | protected function getArguments() |
||
| 80 |
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