AppServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 5
dl 0
loc 25
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A register() 0 8 2
1
<?php
2
3
namespace LaravelSeed\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class AppServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap any application services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        //
17
    }
18
19
    /**
20
     * Register any application services.
21
     *
22
     * @return void
23
     */
24
    public function register()
25
    {
26
        $arrClassName = [
27
            'Rota',
28
        ];
29
30
        foreach ($arrClassName as $className) {
31
            bind_repository(bdContractRepositoryName($className), bdRepositoryName($className), bdEntityName($className));
32
        }
33
    }
34
}
35