| Conditions | 7 |
| Paths | 6 |
| Total Lines | 18 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function indexAction($categoryCode = '') { |
||
| 14 | $category = null; |
||
| 15 | if ($categoryCode) { |
||
| 16 | $category = Callbacks\Category::get($categoryCode, 'alias'); |
||
| 17 | if (!$category) { |
||
| 18 | $category = Callbacks\Category::get($categoryCode); |
||
| 19 | } |
||
| 20 | } |
||
| 21 | if ($category) { |
||
| 22 | $callbacks = $category->callbacks(['where' => [['view', 1]], 'order' => ['weight', 'asc']]); |
||
| 23 | } else { |
||
| 24 | $callbacks = Callbacks\Callback::getList(['where' => [['category_id', 0], ['view', 1]], 'order' => ['weight', 'asc']]); |
||
| 25 | } |
||
| 26 | $this->view->setTitle($category ? $category->name : 'Отзывы'); |
||
| 27 | $this->view->page([ |
||
| 28 | 'page' => $category ? $category->resolveTemplate() : 'current', |
||
| 29 | 'content' => $category ? $category->resolveViewer() : 'index', |
||
| 30 | 'data' => compact('category', 'callbacks') |
||
| 31 | ]); |
||
| 45 |
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