Conditions | 5 |
Paths | 5 |
Total Lines | 24 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public static function getMerchantAccessToken() |
||
15 | { |
||
16 | $merchantClientId = config('bSecure.client_id'); |
||
17 | $merchantClientSecret = config('bSecure.client_secret'); |
||
18 | |||
19 | $merchantAppCredentials = ClientApp::verifyAppCredentials($merchantClientId, $merchantClientSecret); |
||
20 | |||
21 | if (empty($merchantAppCredentials)) { |
||
22 | return ['error' => true, 'message' => trans('bSecure::messages.client.invalid')]; |
||
23 | } else { |
||
24 | if (!empty($merchantAppCredentials['client_id'])) { |
||
25 | // Get Merchant Access Token |
||
26 | $merchantToken = Helper::getAccessToken($merchantAppCredentials); |
||
27 | |||
28 | if ($merchantToken['error']) { |
||
29 | return ['error' => true, 'message' => $merchantToken['message']]; |
||
30 | } else { |
||
31 | return ['error' => false, 'body' => $merchantToken['accessToken']]; |
||
32 | } |
||
33 | |||
34 | } else if ($merchantAppCredentials['error']) { |
||
35 | return $merchantAppCredentials; |
||
36 | } else { |
||
37 | return ['error' => true, 'message' => trans('bSecure::messages.general.failed')]; |
||
38 | } |
||
42 |
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