CreatesApplication::createApplication()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
rs 9.6666
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Alive2212\ExcelHelperApp\tests;
4
5
6
use Illuminate\Contracts\Console\Kernel;
7
8
trait CreatesApplication
9
{
10
    /**
11
     * Creates the application.
12
     *
13
     * @return \Illuminate\Foundation\Application
14
     */
15
    public function createApplication()
16
    {
17
        $app = require __DIR__ . '/../../../../bootstrap/app.php';
18
//        $kernel = new Kernel();
0 ignored issues
show
Unused Code Comprehensibility introduced by
50% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
19
//        dd($kernel);
20
        $app->make(Kernel::class)->bootstrap();
21
22
        return $app;
23
    }
24
}
25