| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 6 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 6 | class ShopifyStore extends \Twig_Extension |
||
|
|
|||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var HmacSignature |
||
| 10 | */ |
||
| 11 | private $hmac; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param HmacSignature $hmac |
||
| 15 | */ |
||
| 16 | public function __construct(HmacSignature $hmac) |
||
| 17 | { |
||
| 18 | $this->hmac = $hmac; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | public function getFunctions() |
||
| 25 | { |
||
| 26 | return [ |
||
| 27 | new \Twig_SimpleFunction('embedded_link', [$this, 'embeddedLink']), |
||
| 28 | ]; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function embeddedLink($storeName, $uri, $uriParams = []) |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
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