Passed
Push — master ( 80df18...ad0a32 )
by Dāvis
05:06
created

Script   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRequirements() 0 3 1
1
<?php
2
3
namespace Sludio\HelperBundle\DependencyInjection\Requirement;
4
5
use Psr\Http\Message\ResponseInterface;
6
use Psr\Log\LoggerInterface;
7
use Mobile_Detect;
0 ignored issues
show
Bug introduced by
The type Mobile_Detect 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 Script extends AbstractRequirement
10
{
11
    protected $requirements = [
12
        ResponseInterface::class => 'psr/http-message',
13
        LoggerInterface::class => 'psr/log',
14
        Mobile_Detect::class => 'mobiledetect/mobiledetectlib'
15
    ];
16
17
    public function getRequirements()
18
    {
19
        return $this->requirements;
20
    }
21
}
22