LaravelTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A initLaravel() 0 6 1
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
}