Conditions | 3 |
Paths | 7 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function addLocale(Request $request) |
||
26 | { |
||
27 | try{ |
||
28 | $locale = Locale::whereName($request->get('name'))->first(); |
||
29 | if(!$locale){ |
||
30 | $locale = new Locale(); |
||
31 | $locale->fill($request->all()); |
||
32 | $locale->save(); |
||
33 | return response()->json(['locale' => $locale->name]); |
||
34 | } |
||
35 | throw new \Exception('Locale is already exist'); |
||
36 | }catch (\Exception $exception){ |
||
37 | return response()->json(['status' => false, 'message' => $exception->getMessage()], 400); |
||
38 | } |
||
41 |
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