GdaemonFilesServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 80%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 21
ccs 4
cts 5
cp 0.8
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 2 1
A boot() 0 4 1
1
<?php
2
3
namespace Gameap\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use Knik\Flysystem\Gameap\GameapAdapter;
7
use League\Flysystem\Filesystem;
8
use Storage;
9
10
class GdaemonFilesServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Perform post-registration booting of services.
14
     *
15
     * @return void
16
     */
17 108
    public function boot(): void
18
    {
19
        Storage::extend('gameap', function ($app, $config) {
20
            return new Filesystem(new GameapAdapter($config));
21 108
        });
22 108
    }
23
24
    /**
25
     * Register bindings in the container.
26
     *
27
     * @return void
28
     */
29 108
    public function register(): void
30
    {
31
        //
32 108
    }
33
}
34