LaravelTrait::initLaravel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 2
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace Hhxsv5\LaravelS\Illuminate;
4
5
use Swoole\Http\Server;
6
7
trait LaravelTrait
0 ignored issues
show
Coding Style introduced by
Missing doc comment for trait LaravelTrait
Loading history...
8
{
9
    protected function initLaravel(array $conf, Server $swoole)
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function initLaravel()
Loading history...
10
    {
11
        $laravel = new Laravel($conf);
12
        $laravel->prepareLaravel();
13
        $laravel->bindSwoole($swoole);
14
        return $laravel;
15
    }
16
}