Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
33 | 2 | public function show(Request $request) |
|
34 | { |
||
35 | 2 | if ($this->isPreviewAllowed()) { |
|
36 | 1 | $page = Page::findBySlug($request->slug); |
|
37 | } else { |
||
38 | 1 | $page = Page::findPublishedBySlug($request->slug); |
|
39 | } |
||
40 | |||
41 | 2 | if (!$page) { |
|
42 | 1 | return redirect()->route('demo.pages.index')->with('note.default', 'Geen resultaten gevonden.'); |
|
43 | } |
||
44 | |||
45 | 1 | return view('demo::pagedetail', compact('page')); |
|
46 | } |
||
48 |
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