Passed
Push — master ( 80df18...80df18 )
by Dāvis
04:16
created

Guzzle::getRequirements()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Sludio\HelperBundle\DependencyInjection\Requirement;
4
5
use GuzzleHttp\ClientInterface;
6
use Psr\Cache\CacheItemInterface;
7
use Namshi\Cuzzle\Formatter\CurlFormatter;
0 ignored issues
show
Bug introduced by
The type Namshi\Cuzzle\Formatter\CurlFormatter 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
use Symfony\Component\Stopwatch\Stopwatch;
9
use Symfony\Component\Filesystem\Filesystem;
10
11
class Guzzle extends AbstractRequirement
12
{
13
    protected $requirements = [
14
        ClientInterface::class => 'guzzlehttp/guzzle~6.0',
15
        CacheItemInterface::class => 'psr/cache^1.0',
16
        CurlFormatter::class => 'namshi/cuzzle^2.0',
17
        Stopwatch::class => 'symfony/stopwatch',
18
        Filesystem::class => 'symfony/filesystem'
19
    ];
20
21
    public function getRequirements()
22
    {
23
        return $this->requirements;
24
    }
25
}
26