Passed
Push — master ( d547da...a192e7 )
by Babak
02:05
created

CreatesApplication   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A createApplication() 0 8 1
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