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

TestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPackageAliases() 0 4 1
A getPackageProviders() 0 3 1
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
}