Total Complexity | 2 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class AddUrlToLocalizedAttributes extends AbstractTranslatorFunction implements TranslatorFunctionInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected const KEY_NAME = 'name'; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected const KEY_URL = 'url'; |
||
25 | |||
26 | /** |
||
27 | * @var \SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Translator\Generator\UrlGeneratorStrategyInterface |
||
28 | */ |
||
29 | protected $urlGenerator; |
||
30 | |||
31 | /** |
||
32 | * @param \SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Translator\Generator\UrlGeneratorStrategyInterface $urlGenerator |
||
33 | */ |
||
34 | public function __construct(UrlGeneratorStrategyInterface $urlGenerator) |
||
35 | { |
||
36 | $this->urlGenerator = $urlGenerator; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param mixed $value |
||
41 | * @param array $payload |
||
42 | * |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function translate($value, array $payload) |
||
51 | } |
||
52 | } |
||
53 |
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