AppServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 18
c 1
b 0
f 1
dl 0
loc 34
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 22 1
A register() 0 3 1
1
<?php
2
3
namespace App\Providers;
4
5
use App\DynamicRelations\Company\Comments;
6
use App\DynamicRelations\Company\Discussions;
7
use App\DynamicRelations\Company\Documents;
8
use App\Forms\Builders\PersonForm as LocalPersonForm;
9
use App\Http\Requests\ValidatePersonRequest as LocalPersonRequest;
10
use App\Http\Requests\ValidatePersonStoreRequest as LocalPersonStore;
0 ignored issues
show
Bug introduced by
The type App\Http\Requests\ValidatePersonStoreRequest was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
use App\Http\Requests\ValidatePersonUpdateRequest as LocalPersonUpdate;
0 ignored issues
show
Bug introduced by
The type App\Http\Requests\ValidatePersonUpdateRequest was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
use App\Models\User;
13
use App\Person as LocalPerson;
14
use App\Tables\Builders\PersonTable as LocalPersonTable;
15
use Illuminate\Support\ServiceProvider;
16
use LaravelEnso\ActionLogger\DynamicsRelations\ActionLogs;
0 ignored issues
show
Bug introduced by
The type LaravelEnso\ActionLogger...icsRelations\ActionLogs was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
17
use LaravelEnso\ActionLogger\Http\Middleware\ActionLogger;
18
use LaravelEnso\Companies\Models\Company;
19
use LaravelEnso\Core\Models\User as BaseUser;
20
use LaravelEnso\DynamicMethods\Services\Methods;
21
use LaravelEnso\People\Forms\Builders\PersonForm;
22
use LaravelEnso\People\Http\Requests\ValidatePersonRequest;
23
use LaravelEnso\People\Http\Requests\ValidatePersonStore;
0 ignored issues
show
Bug introduced by
The type LaravelEnso\People\Http\...sts\ValidatePersonStore was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
24
use LaravelEnso\People\Http\Requests\ValidatePersonUpdate;
0 ignored issues
show
Bug introduced by
The type LaravelEnso\People\Http\...ts\ValidatePersonUpdate was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
25
use LaravelEnso\People\Models\Person;
26
use LaravelEnso\People\Tables\Builders\PersonTable;
27
28
class AppServiceProvider extends ServiceProvider
29
{
30
    public $bindings = [
31
        BaseUser::class => User::class,
32
    ];
33
34
    public function boot()
35
    {
36
        $this->app->bind(ValidatePersonStore::class, function () {
37
            return new LocalPersonStore();
38
        });
39
        $this->app->bind(ValidatePersonUpdate::class, function () {
40
            return new LocalPersonUpdate();
41
        });
42
        $this->app->bind(ValidatePersonRequest::class, function () {
43
            return new LocalPersonRequest();
44
        });
45
        $this->app->bind(EnsoPerson::class, function () {
0 ignored issues
show
Bug introduced by
The type App\Providers\EnsoPerson was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
46
            return new LocalPerson();
47
        });
48
        $this->app->bind(Person::class, function () {
49
            return new LocalPerson();
50
        });
51
        $this->app->bind(PersonTable::class, function () {
52
            return new LocalPersonTable();
53
        });
54
        $this->app->bind(PersonForm::class, function () {
55
            return new LocalPersonForm();
56
        });
57
    }
58
59
    public function register()
60
    {
61
        Methods::bind(Company::class, [Comments::class, Discussions::class, Documents::class]);
62
        //Methods::bind(User::class, [ActionLogs::class]);
63
    }
64
}
65