CreatesApplication::createApplication()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 8
rs 10
1
<?php
2
3
namespace Alive2212\LaravelQueryHelperTest;
4
5
6
//use Illuminate\Contracts\Console\Kernel;
7
8
use Illuminate\Contracts\Console\Kernel;
9
10
trait CreatesApplication
11
{
12
    /**
13
     * Creates the application.
14
     *
15
     * @return \Illuminate\Foundation\Application
0 ignored issues
show
Bug introduced by
The type Illuminate\Foundation\Application 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...
16
     */
17
    public function createApplication()
18
    {
19
        $app = require __DIR__ . '/../../../../bootstrap/app.php';
20
//        $kernel = new Kernel();
21
//        dd($kernel);
22
        $app->make(Kernel::class)->bootstrap();
23
24
        return $app;
25
    }
26
}
27