Test Failed
Push — stable ( 169703...de20f1 )
by Nuno
01:49
created

ComponentProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 2
1
<?php
2
3
namespace LaravelZero\Framework\Commands\Component\Illuminate\Filesystem;
4
5
use LaravelZero\Framework\Commands\Component\AbstractComponentProvider;
6
7
/**
8
 * This is the Zero Framework illuminate/Filesystem component provider class.
9
 *
10
 * @author Nuno Maduro <[email protected]>
11
 */
12
class ComponentProvider extends AbstractComponentProvider
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function register(): void
18
    {
19
        if (! class_exists(\Illuminate\Filesystem\FilesystemServiceProvider::class)) {
20
            return;
21
        }
22
23
        $this->registerServiceProvider(\Illuminate\Filesystem\FilesystemServiceProvider::class);
24
    }
25
}
26