| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class WidgetController extends Controller |
||
| 12 | { |
||
| 13 | public function index(): Renderable |
||
| 14 | { |
||
| 15 | return view('widget.campaign'); |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Push attributes in order to correctly localize slugs. |
||
| 20 | * |
||
| 21 | * @param $attributes |
||
| 22 | */ |
||
| 23 | protected function setLocalesAttributes($attributes) |
||
| 24 | { |
||
| 25 | View::composer(['partials.alternates', 'partials.locales'], function (\Illuminate\View\View $view) use ($attributes) { |
||
| 26 | $view->withAttributes($attributes); |
||
| 27 | }); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Push translatable object in order to correctly localize slugs. |
||
| 32 | * |
||
| 33 | * @param $translatable |
||
| 34 | */ |
||
| 35 | protected function setTranslatable($translatable) |
||
| 39 | }); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
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