Completed
Push — master ( 9e9c4d...878d3c )
by Babak
02:26
created

CreatesApplication   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createApplication() 0 7 1
1
<?php
2
3
namespace Alive2212\ArrayHelperTest\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
        $app->make(Kernel::class)->bootstrap();
19
20
        return $app;
21
    }
22
}
23