| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 49 | public function detailAction($shortcode, Request $request) |
||
| 50 | { |
||
| 51 | foreach ($this->shortcodeTags as $shortcodeTag) { |
||
| 52 | if ($shortcodeTag['shortcode'] === $shortcode) { |
||
| 53 | // if custom parameters are provided, replace the example |
||
| 54 | $customParameters = $request->get('customParameters'); |
||
| 55 | if ($customParameters) { |
||
| 56 | $shortcodeTag['example'] = $shortcode.' '.$customParameters; |
||
| 57 | } |
||
| 58 | |||
| 59 | return [ |
||
| 60 | 'shortcodeTag' => $shortcodeTag, |
||
| 61 | ]; |
||
| 62 | } |
||
| 63 | } |
||
| 64 | |||
| 65 | throw new NotFoundHttpException(); |
||
| 66 | } |
||
| 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