Total Complexity | 4 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class HouseAdController extends Controller |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * Display a listing of the resource. |
||
14 | * |
||
15 | * @return \Illuminate\Http\Response |
||
16 | */ |
||
17 | public function index() |
||
18 | { |
||
19 | return HouseAd::whereDate('start_at', '<=', date('Y-m-d'))->whereDate('end_at', '>=', date('Y-m-d'))->get(); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Display the specified resource. |
||
24 | * |
||
25 | * @param int $id |
||
26 | * @return \Illuminate\Http\Response |
||
27 | */ |
||
28 | public function show($id) |
||
29 | { |
||
30 | return HouseAd::findOrFail($id); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Update the specified resource in storage. |
||
35 | * |
||
36 | * @param Request $request |
||
37 | * @param int $id |
||
38 | * @return \Illuminate\Http\Response |
||
39 | */ |
||
40 | public function update(Request $request, $id) |
||
55 | } |
||
56 | |||
57 | } |
||
58 |
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