| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class ApiResponseFormatter implements DataResponseFormatterInterface |
||
| 14 | { |
||
| 15 | private ApiResponseDataFactory $apiResponseDataFactory; |
||
| 16 | private JsonDataResponseFormatter $jsonDataResponseFormatter; |
||
| 17 | |||
| 18 | public function __construct( |
||
| 19 | ApiResponseDataFactory $apiResponseDataFactory, |
||
| 20 | JsonDataResponseFormatter $jsonDataResponseFormatter |
||
| 21 | ) { |
||
| 22 | $this->apiResponseDataFactory = $apiResponseDataFactory; |
||
| 23 | $this->jsonDataResponseFormatter = $jsonDataResponseFormatter; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function format(DataResponse $dataResponse): ResponseInterface |
||
| 35 | } |
||
| 36 | } |
||
| 37 |
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