Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function update(Request $request, $id) |
||
41 | { |
||
42 | $this->validate($request, ['confirmed' => 'required|numeric']); |
||
43 | |||
44 | $houseAd = HouseAd::findOrFail($id); |
||
45 | |||
46 | // A check to prevent hacker to change the level owner |
||
47 | if ($request->confirmed == '1') |
||
48 | $houseAd->confirmed_count++; |
||
49 | else |
||
50 | $houseAd->cancelled_count++; |
||
51 | |||
52 | $houseAd->save(); |
||
53 | |||
54 | return $houseAd; |
||
55 | } |
||
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