| Total Complexity | 6 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class GuideController |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | * |
||
| 17 | * Example structure: [ |
||
| 18 | * [ |
||
| 19 | * 'shortcode' => 'img' |
||
| 20 | * 'example' (optional key) => '[img src="https://upload.wikimedia.org/wikipedia/en/f/f7/RickRoll.png"]' |
||
| 21 | * 'description' (optional key) => 'Embeds the imgage located at {src}.' |
||
| 22 | * ] |
||
| 23 | * ] |
||
| 24 | */ |
||
| 25 | private $shortcodeTags; |
||
| 26 | |||
| 27 | public function __construct(array $shortcodeTags) |
||
| 28 | { |
||
| 29 | $this->shortcodeTags = $shortcodeTags; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @Template(template="@WebfactoryShortcode/Guide/list.html.twig") |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public function listAction() |
||
| 38 | { |
||
| 39 | return [ |
||
| 40 | 'shortcodeTags' => $this->shortcodeTags, |
||
| 41 | ]; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @Template(template="@WebfactoryShortcode/Guide/detail.html.twig") |
||
| 46 | * |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | public function detailAction($shortcode, Request $request) |
||
| 66 | } |
||
| 67 | } |
||
| 68 |
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