| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function check(Request $request,License $license,Json $json) |
||
| 13 | { |
||
| 14 | if(empty($request->serial)) |
||
| 15 | { |
||
| 16 | $data['active'] = false; |
||
| 17 | $data['message'] = "Serial number must be provided."; |
||
| 18 | return $json->response(400,'data',$data,[]); |
||
| 19 | } |
||
| 20 | $res = $license->serial($request->serial)->check(); |
||
| 21 | if($res->active) |
||
| 22 | { |
||
| 23 | return $json->response(200,'data',$res,[]); |
||
| 24 | } |
||
| 25 | return $json->response(400,'data',$res,[$res->message]); |
||
| 26 | |||
| 29 |
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