LFFATE /
ccg
| 1 | <?php |
||||
| 2 | |||||
| 3 | use terminal\Terminal; |
||||
|
0 ignored issues
–
show
|
|||||
| 4 | use filesystem\Filesystem; |
||||
|
0 ignored issues
–
show
The type
filesystem\Filesystem was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||||
| 5 | |||||
| 6 | require __DIR__ . '/app/helpers/helpers.php'; |
||||
| 7 | require __DIR__ . '/config/config.php'; |
||||
| 8 | |||||
| 9 | /** |
||||
| 10 | * autoload |
||||
| 11 | */ |
||||
| 12 | spl_autoload_register(function ($class) { |
||||
| 13 | include 'app/' . $class . '.php'; |
||||
| 14 | }); |
||||
| 15 | |||||
| 16 | define('ROOT_DIR', realpath(__DIR__)); |
||||
| 17 | |||||
| 18 | $defaults_normalized = flat_array_with_prefix($defaults); |
||||
|
0 ignored issues
–
show
The function
flat_array_with_prefix was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 19 | |||||
| 20 | $config = new Config($argv, $defaults_normalized); |
||||
|
0 ignored issues
–
show
The type
Config was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||||
| 21 | $terminal = new Terminal(); |
||||
| 22 | $filesystem = new Filesystem(); |
||||
| 23 | |||||
| 24 | $ccg = new Ccg( |
||||
|
0 ignored issues
–
show
The type
Ccg was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||||
| 25 | $config, |
||||
| 26 | $terminal, |
||||
| 27 | $filesystem |
||||
| 28 | ); |
||||
| 29 | |||||
| 30 | if ($config->get('debug')) { |
||||
| 31 | $ccg |
||||
| 32 | ->generate(); |
||||
| 33 | } else { |
||||
| 34 | try { |
||||
| 35 | $ccg |
||||
| 36 | ->generate(); |
||||
| 37 | } catch (\Exception $error) { |
||||
| 38 | $terminal->error($error->getMessage()); |
||||
| 39 | } |
||||
| 40 | } |
||||
| 41 |
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