Test Failed
Push — master ( 3868e7...2b7b48 )
by Robin
05:45
created

TestCase::getPackageProviders()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace RobinDirksen1\LaravelRequestLogger\Test;
4
5
use RobinDirksen1\LaravelRequestLogger\RequestLoggerFacade;
6
use RobinDirksen1\LaravelRequestLogger\RequestLoggerServiceProvider;
7
use Orchestra\Testbench\TestCase as OrchestraTestCase;
0 ignored issues
show
Bug introduced by
The type Orchestra\Testbench\TestCase 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
9
class TestCase extends OrchestraTestCase
10
{
11
    /**
12
     * Load package service provider
13
     * @param  \Illuminate\Foundation\Application $app
0 ignored issues
show
Bug introduced by
The type Illuminate\Foundation\Application 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
     * @return RobinDirksen1\LaravelRequestLogger\LaravelRequestLoggerServiceProvider
0 ignored issues
show
Bug introduced by
The type RobinDirksen1\LaravelReq...stLoggerServiceProvider 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
     */
16
    protected function getPackageProviders($app)
17
    {
18
        return [LaravelRequestLogger::class];
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(RobinDirkse...elRequestLogger::class) returns the type array<integer,string> which is incompatible with the documented return type RobinDirksen1\LaravelReq...stLoggerServiceProvider.
Loading history...
Bug introduced by
The type RobinDirksen1\LaravelReq...st\LaravelRequestLogger 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...
19
    }
20
21
22
    /**
23
     * Load package alias
24
     * @param  \Illuminate\Foundation\Application $app
25
     * @return array
26
     */
27
    protected function getPackageAliases($app)
28
    {
29
        return [
30
            'RequestLogger' => RequestLoggerFacade::class,
31
        ];
32
    }
33
}