FileStreamServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 30
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
A provides() 0 4 1
1
<?php namespace App\Providers;
2
3
use Illuminate\Support\ServiceProvider;
4
5
class FileStreamServiceProvider extends ServiceProvider
6
{
7
    /**
8
     * Deferring the loading of a provider improves performance of the application,
9
     * since it is not loaded from the filesystem on every request.
10
     *
11
     * @var bool
12
     */
13
    protected $defer = true;
14
15
    /**
16
     * Register any application services.
17
     *
18
     * @return void
19
     */
20 19
    public function register()
21
    {
22 19
        $this->app->singleton('filestream', \App\Services\FileStream::class);
23 19
    }
24
25
    /**
26
     * Get the services provided by the provider.
27
     *
28
     * @return array
29
     */
30
    public function provides()
31
    {
32
        return ['filestream'];
33
    }
34
}
35