CreatesApplication   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

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