TestCase   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 4
dl 0
loc 17
rs 10
c 1
b 1
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getEnvironmentSetUp() 0 2 1
A setUp() 0 3 1
A getPackageProviders() 0 4 1
1
<?php
2
3
namespace Pratiksh\Adminetic;
4
5
use Pratiksh\Adminetic\Providers\AdmineticServiceProvider;
6
7
class TestCase extends \Orchestra\Testbench\TestCase
8
{
9
    public function setUp(): void
10
    {
11
        parent::setUp();
12
        // additional setup
13
    }
14
15
    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

15
    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...
16
    {
17
        return [
18
            AdmineticServiceProvider::class,
19
        ];
20
    }
21
22
    protected function getEnvironmentSetUp($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

22
    protected function getEnvironmentSetUp(/** @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...
23
    {
24
        // perform environment setup
25
    }
26
}
27