Issues (34)

src/start.php (2 issues)

Labels
Severity
1
<?php
2
3
if (function_exists('Jaxon\jaxon')) {
4
    $di = Jaxon\jaxon()->di();
0 ignored issues
show
The function jaxon 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 ignore-call  annotation

4
    $di = /** @scrutinizer ignore-call */ Jaxon\jaxon()->di();
Loading history...
5
    // Register the database classes in the dependency container
6
    $di->set(Lagdo\DbAdmin\Driver\Sqlite\Driver::class, function($di) {
7
        $utils = $di->get(Lagdo\DbAdmin\Driver\Utils\Utils::class);
0 ignored issues
show
The type Lagdo\DbAdmin\Driver\Utils\Utils 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
        $options = $di->get('dbadmin_config_options');
9
        return new Lagdo\DbAdmin\Driver\Sqlite\Driver($utils, $options);
10
    });
11
    $di->alias('dbadmin_driver_sqlite', Lagdo\DbAdmin\Driver\Sqlite\Driver::class);
12
}
13