Completed
Push — master ( 5bcbf0...e28d31 )
by Pavel
02:54
created

RestServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 23
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
A registerResponses() 0 2 1
A registerDefaultRequests() 0 2 1
1
<?php namespace Pz\LaravelDoctrine\Rest;
2
3
use Illuminate\Support\ServiceProvider;
4
5
use Pz\Doctrine\Rest\Request\CreateRequestInterface;
0 ignored issues
show
Bug introduced by
The type Pz\Doctrine\Rest\Request\CreateRequestInterface 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...
6
use Pz\Doctrine\Rest\Request\DeleteRequestInterface;
0 ignored issues
show
Bug introduced by
The type Pz\Doctrine\Rest\Request\DeleteRequestInterface 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...
7
use Pz\Doctrine\Rest\Request\IndexRequestInterface;
0 ignored issues
show
Bug introduced by
The type Pz\Doctrine\Rest\Request\IndexRequestInterface 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...
8
use Pz\Doctrine\Rest\Request\ShowRequestInterface;
0 ignored issues
show
Bug introduced by
The type Pz\Doctrine\Rest\Request\ShowRequestInterface 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...
9
use Pz\Doctrine\Rest\Request\UpdateRequestInterface;
0 ignored issues
show
Bug introduced by
The type Pz\Doctrine\Rest\Request\UpdateRequestInterface 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...
10
use Pz\Doctrine\Rest\Response\FractalResponse;
0 ignored issues
show
Bug introduced by
The type Pz\Doctrine\Rest\Response\FractalResponse 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 Pz\Doctrine\Rest\RestResponseFactory;
12
use Pz\LaravelDoctrine\Rest\Request\CreateRestRequest;
0 ignored issues
show
Bug introduced by
The type Pz\LaravelDoctrine\Rest\Request\CreateRestRequest 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...
13
use Pz\LaravelDoctrine\Rest\Request\DeleteRestRequest;
0 ignored issues
show
Bug introduced by
The type Pz\LaravelDoctrine\Rest\Request\DeleteRestRequest 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...
14
use Pz\LaravelDoctrine\Rest\Request\IndexRestRequest;
0 ignored issues
show
Bug introduced by
The type Pz\LaravelDoctrine\Rest\Request\IndexRestRequest 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...
15
use Pz\LaravelDoctrine\Rest\Request\ShowRestRequest;
0 ignored issues
show
Bug introduced by
The type Pz\LaravelDoctrine\Rest\Request\ShowRestRequest 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...
16
use Pz\LaravelDoctrine\Rest\Request\UpdateRestRequest;
0 ignored issues
show
Bug introduced by
The type Pz\LaravelDoctrine\Rest\Request\UpdateRestRequest 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
18
class RestServiceProvider extends ServiceProvider
19
{
20
    /**
21
     * Register laravel doctrine rest application.
22
     */
23 5
    public function register()
24
    {
25 5
        $this->registerDefaultRequests();
26 5
        $this->registerResponses();
27 5
    }
28
29
    /**
30
     * Register application requests.
31
     */
32 5
    protected function registerResponses()
33
    {
34 5
    }
35
36
    /**
37
     * Register default laravel requests.
38
     */
39 5
    protected function registerDefaultRequests()
40
    {
41 5
    }
42
}
43