| Conditions | 4 |
| Paths | 11 |
| Total Lines | 23 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function orderStatus($order_ref) |
||
| 27 | { |
||
| 28 | try { |
||
| 29 | |||
| 30 | $validationErrors = $this->_checkForValidationRule( $order_ref ); |
||
| 31 | |||
| 32 | if( count( $validationErrors ) > 0 ) |
||
| 33 | { |
||
| 34 | return ApiResponseHandler::validationError( $validationErrors ); |
||
| 35 | } |
||
| 36 | |||
| 37 | $orderResponse = Order::getOrderStatus($order_ref); |
||
| 38 | |||
| 39 | if($orderResponse['error']) |
||
| 40 | { |
||
| 41 | return ApiResponseHandler::failure($orderResponse['message']); |
||
| 42 | }else{ |
||
| 43 | $response = $orderResponse['body']; |
||
| 44 | |||
| 45 | return ApiResponseHandler::success($response, trans('bSecure::messages.order.status.success')); |
||
| 46 | } |
||
| 47 | } catch (\Exception $e) { |
||
| 48 | return ApiResponseHandler::failure(trans('bSecure::messages.order.status.failure'), $e->getTraceAsString()); |
||
| 49 | } |
||
| 65 |
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