BibleServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 33
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
A register() 0 6 1
A provides() 0 4 1
1
<?php
2
3
namespace Djunehor\Logos;
4
5
use Illuminate\Filesystem\Filesystem;
6
use Illuminate\Support\ServiceProvider;
7
8
class BibleServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     *
13
     * @param Filesystem $filesystem
14
     * @return void
15
     */
16 12
    public function boot(Filesystem $filesystem)
0 ignored issues
show
Unused Code introduced by
The parameter $filesystem is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
17
    {
18 12
    }
19
20
    /**
21
     * Register the application services.
22
     *
23
     * @return void
24
     */
25 12
    public function register()
26
    {
27
        $this->app->bind('laravel-bible', function () {
28 2
            return new Bible();
29 12
        });
30 12
    }
31
32
    /**
33
     * Get the services provided by the provider.
34
     * @return array
35
     */
36 1
    public function provides(): array
37
    {
38 1
        return ['laravel-bible'];
39
    }
40
}
41