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

ComponentProvider::register()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 0
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
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