| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 68 | public function notificationRedirect($routeName, $result, $successMsg) |
||
| 69 | { |
||
| 70 | if (isset($result->id)) { |
||
| 71 | flash($successMsg); |
||
| 72 | if(is_array($routeName)) { |
||
| 73 | return redirect()->route($routeName[0], $routeName[1]); |
||
| 74 | } |
||
| 75 | return redirect()->route($routeName); |
||
| 76 | } |
||
| 77 | |||
| 78 | foreach ($result->errors()->all() as $error) { |
||
| 79 | flash($error); |
||
| 80 | } |
||
| 81 | |||
| 82 | return redirect()->back()->withInput(); |
||
| 83 | } |
||
| 84 | } |
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