Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | final class MediaExtension extends Twig_Extension |
||
15 | { |
||
16 | private $fileFormatter; |
||
17 | private $urlBuilder; |
||
18 | |||
19 | public function __construct(FileFormatter $fileFormatter, UrlBuilder $urlBuilder = null) |
||
20 | { |
||
21 | $this->fileFormatter = $fileFormatter; |
||
22 | $this->urlBuilder = $urlBuilder; |
||
23 | } |
||
24 | |||
25 | public function getFunctions(): array |
||
29 | ]; |
||
30 | } |
||
31 | |||
32 | public function getFilters(): array |
||
36 | ]; |
||
37 | } |
||
38 | |||
39 | public function buildImageUrl(string $imageId, array $params = []): string |
||
44 | } |
||
45 | } |
||
46 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.