| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 60 | public function render($request, Throwable $exception) |
||
| 61 | { |
||
| 62 | if (!env("APP_DEBUG") && $request->is('api/*')) { |
||
| 63 | return response(json_encode([ |
||
| 64 | 'success' => false, |
||
| 65 | 'message' => 'Server Error', |
||
| 66 | 'ret' => [], |
||
| 67 | 'err' => [ |
||
| 68 | 'code' => 500, |
||
| 69 | 'msg' => 'Server Error', |
||
| 70 | 'data'=>[] |
||
| 71 | ] |
||
| 72 | ]), 500)->header('Content-Type', 'application/json'); |
||
| 73 | }; |
||
| 74 | return parent::render($request, $exception); |
||
| 75 | } |
||
| 78 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.