Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | final class ContentType |
||
17 | { |
||
18 | private $value; |
||
19 | |||
20 | 18 | public function __construct(string $topLevel, string $subType) |
|
21 | { |
||
22 | try { |
||
23 | 18 | $mediaType = new MediaType($topLevel, $subType); |
|
24 | 16 | $this->value = $topLevel.'/'.$subType; |
|
25 | 2 | } catch (Exception | ExceptionInterface $e) { |
|
26 | 2 | throw new DomainException; |
|
27 | } |
||
28 | 16 | } |
|
29 | |||
30 | 10 | public function __toString(): string |
|
33 | } |
||
34 | } |
||
35 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths