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

AdaptiveResponseDeserializer::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 5
c 1
b 0
f 0
nc 2
nop 3
dl 0
loc 10
rs 10
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