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

Module::enabled()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 0
cp 0
crap 2
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