Completed
Pull Request — master (#1151)
by
unknown
01:57
created

Module   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 25%

Importance

Changes 0
Metric Value
dl 0
loc 42
rs 10
c 0
b 0
f 0
ccs 2
cts 8
cp 0.25
wmc 7
lcom 1
cbo 2

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getCachedServicesPath() 0 4 1
A registerProviders() 0 6 2
A registerAliases() 0 3 1
A getLaravel() 0 4 1
A enabled() 0 4 1
A disabled() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Nwidart\Modules\Lumen;
5
6
use Illuminate\Support\Str;
7
use Nwidart\Modules\Module as BaseModule;
8
9
class Module extends BaseModule
10
{
11
    /**
12
     * {@inheritdoc}
13 1
     */
14
    public function getCachedServicesPath(): string
15 1
    {
16
        return Str::replaceLast('services.php', $this->getSnakeName() . '_module.php', $this->app->basePath('storage/app/') . 'services.php');
17
    }
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function registerProviders(): void
23
    {
24
        foreach ($this->get('providers', []) as $provider) {
25
            $this->app->register($provider);
26
        }
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function registerAliases(): void
33
    {
34
    }
35
36
    public function getLaravel()
37
    {
38
        // TODO: Implement getLaravel() method.
39
    }
40
41
    public function enabled(): bool
42
    {
43
        // TODO: Implement enabled() method.
44
    }
45
46
    public function disabled(): bool
47
    {
48
        // TODO: Implement disabled() method.
49
    }
50
}
51