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

Guzzle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
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 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