GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — develop ( ec7d73...94d8a3 )
by Casper
02:08
created

NStackLoaderTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstruct() 0 5 1
1
<?php
2
3
namespace NStack\Tests\Translation;
4
5
use League\Flysystem\Filesystem;
6
use NStack\Translation\NStackLoader;
7
8
class NStackLoaderTest extends \NStack\Laravel\Tests\TestCase
0 ignored issues
show
Bug introduced by
The type NStack\Laravel\Tests\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...
9
{
10
    public function testConstruct()
11
    {
12
        $storage = $this->mockStorage();
13
14
        $nstackLoader = new NStackLoader($storage, '');
0 ignored issues
show
Bug introduced by
The call to NStack\Translation\NStackLoader::__construct() has too few arguments starting with nstack. ( Ignorable by Annotation )

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

14
        $nstackLoader = /** @scrutinizer ignore-call */ new NStackLoader($storage, '');

This check compares calls to functions or methods with their respective definitions. If the call has less arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.

Loading history...
Unused Code introduced by
The assignment to $nstackLoader is dead and can be removed.
Loading history...
15
16
17
    }
18
}