| Conditions | 4 |
| Paths | 12 |
| Total Lines | 24 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function verifyCustomer($auth_code) |
||
| 24 | { |
||
| 25 | try { |
||
| 26 | $validationErrors = $this->_checkForValidationRule( $auth_code ); |
||
| 27 | |||
| 28 | if( count( $validationErrors ) > 0 ) |
||
| 29 | { |
||
| 30 | return ApiResponseHandler::validationError( $validationErrors ); |
||
| 31 | } |
||
| 32 | |||
| 33 | $ssoCustomerProfile = $this->createSSOProfileStructure($auth_code); |
||
| 34 | |||
| 35 | $ssoResponse = Helper::customerProfile($ssoCustomerProfile); |
||
| 36 | |||
| 37 | if($ssoResponse['error']) |
||
| 38 | { |
||
| 39 | return ApiResponseHandler::failure($ssoResponse['message']); |
||
| 40 | }else{ |
||
| 41 | $response = $ssoResponse['body']; |
||
| 42 | return ApiResponseHandler::success($response, trans('bSecure::messages.customer.verification.success')); |
||
| 43 | } |
||
| 44 | |||
| 45 | } catch (\Exception $e) { |
||
| 46 | return ApiResponseHandler::failure(trans('bSecure::messages.customer.verification.failure'), $e->getTraceAsString()); |
||
| 47 | } |
||
| 81 |
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