Completed
Push — master ( 212a7e...ff3b8d )
by Babak
04:30 queued 01:29
created

CreatesApplication   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createApplication() 0 7 1
1
<?php
2
3
namespace Alive2212\ExcelHelper;
4
5
use Illuminate\Contracts\Console\Kernel;
6
7
trait CreatesApplication
8
{
9
    /**
10
     * Creates the application.
11
     *
12
     * @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...
13
     */
14
    public function createApplication()
15
    {
16
        $app = require __DIR__.'/../bootstrap/app.php';
17
18
        $app->make(Kernel::class)->bootstrap();
19
20
        return $app;
21
    }
22
}
23