Completed
Push — master ( 632712...27b635 )
by Jeremy
04:03
created

TestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPackageProviders() 0 3 1
A getPackageAliases() 0 4 1
1
<?php
2
3
namespace jeremykenedy\LaravelRoles\Test;
4
5
use jeremykenedy\LaravelRoles\RolesServiceProvider;
6
use Orchestra\Testbench\TestCase as OrchestraTestCase;
7
8
class TestCase extends OrchestraTestCase
9
{
10
    /**
11
     * Load package service provider.
12
     *
13
     * @param \Illuminate\Foundation\Application $app
14
     *
15
     * @return jeremykenedy\LaravelRoles\RolesServiceProvider
0 ignored issues
show
Bug introduced by
The type jeremykenedy\LaravelRole...es\RolesServiceProvider was not found. Did you mean jeremykenedy\LaravelRoles\RolesServiceProvider? If so, make sure to prefix the type with \.
Loading history...
16
     */
17
    protected function getPackageProviders($app)
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

17
    protected function getPackageProviders(/** @scrutinizer ignore-unused */ $app)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
18
    {
19
        return [RolesServiceProvider::class];
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(jeremykened...ServiceProvider::class) returns the type array<integer,string> which is incompatible with the documented return type jeremykenedy\LaravelRole...es\RolesServiceProvider.
Loading history...
20
    }
21
22
    /**
23
     * Load package alias.
24
     *
25
     * @param \Illuminate\Foundation\Application $app
26
     *
27
     * @return array
28
     */
29
    protected function getPackageAliases($app)
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

29
    protected function getPackageAliases(/** @scrutinizer ignore-unused */ $app)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
30
    {
31
        return [
32
            'laravelroles',
33
        ];
34
    }
35
}
36