Admin   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 32
ccs 7
cts 7
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A routes() 0 4 1
A component() 0 4 1
1
<?php
2
3
namespace Sco\Admin;
4
5
use Illuminate\Foundation\Application;
6
7
class Admin
8
{
9
    /**
10
     * @var \Illuminate\Foundation\Application
11
     */
12
    protected $app;
13
14 48
    public function __construct(Application $app)
15
    {
16 48
        $this->app = $app;
17 48
    }
18
19
    /**
20
     * Register the routes for an application.
21
     *
22
     * @return void
23
     */
24 3
    public function routes()
25
    {
26 3
        return require __DIR__ . '/../routes/admin.php';
27
    }
28
29
    /**
30
     * Component entity
31
     *
32
     * @return \Sco\Admin\Contracts\ComponentInterface
33
     */
34 3
    public function component()
35
    {
36 3
        return $this->app['admin.instance.component'];
37
    }
38
}
39