Passed
Pull Request — master (#61)
by
unknown
03:32
created

AdaptiveResponseDeserializer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 2
1
<?php
2
3
namespace Acquia\Hmac\Client;
4
5
use GuzzleHttp\Command\Guzzle\DescriptionInterface;
0 ignored issues
show
Bug introduced by
The type GuzzleHttp\Command\Guzzle\DescriptionInterface 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...
6
use GuzzleHttp\Command\Guzzle\Deserializer;
0 ignored issues
show
Bug introduced by
The type GuzzleHttp\Command\Guzzle\Deserializer 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...
7
8
class AdaptiveResponseDeserializer extends Deserializer
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function __construct(DescriptionInterface $description, bool $process, $responseLocations = [])
14
    {
15
        static $responseLocations;
16
17
        if (!$responseLocations) {
18
            $responseLocations = [
19
                'adaptivejson' => new AdaptiveJsonLocation(),
20
            ];
21
        }
22
        parent::__construct($description, $process, $responseLocations);
23
    }
24
}
25