1 | <?php |
||
2 | |||
3 | namespace bSecure\UniversalCheckout; |
||
4 | |||
5 | use bSecure\UniversalCheckout\Controllers\SSO\CustomerVerification; |
||
6 | use bSecure\UniversalCheckout\Controllers\SSO\VerifyClientController; |
||
7 | |||
8 | use bSecure\UniversalCheckout\Helpers\Constant; |
||
9 | use Illuminate\Support\Facades\Facade; |
||
0 ignored issues
–
show
|
|||
10 | use Throwable; |
||
11 | |||
12 | class BsecureSSO extends Facade |
||
13 | { |
||
14 | /* |
||
15 | * CLIENT VERIFICATION : SSO Verify Client for web |
||
16 | */ |
||
17 | public function authenticateWebClient($state = null) |
||
18 | { |
||
19 | try { |
||
20 | $client = new VerifyClientController(); |
||
21 | $result = $client->verifyClient($state, Constant::APP_TYPE['checkout']); |
||
22 | return json_decode($result->getContent(), true); |
||
23 | //code... |
||
24 | } catch (Throwable $th) { |
||
25 | throw $th; |
||
26 | } |
||
27 | } |
||
28 | |||
29 | |||
30 | /* |
||
31 | * CLIENT VERIFICATION : SSO Verify Client for sdk |
||
32 | */ |
||
33 | public function authenticateSDKClient($state = null) |
||
34 | { |
||
35 | try { |
||
36 | $client = new VerifyClientController(); |
||
37 | $result = $client->verifyClient($state, Constant::APP_TYPE['sdk']); |
||
38 | return json_decode($result->getContent(), true); |
||
39 | //code... |
||
40 | } catch (Throwable $th) { |
||
41 | throw $th; |
||
42 | } |
||
43 | } |
||
44 | |||
45 | /* |
||
46 | * Customer Verification : Get Customer Profile |
||
47 | */ |
||
48 | |||
49 | public function customerProfile($auth_code = null) |
||
50 | { |
||
51 | try { |
||
52 | $customer = new CustomerVerification(); |
||
53 | $result = $customer->verifyCustomer($auth_code); |
||
54 | return json_decode($result->getContent(), true); |
||
55 | //code... |
||
56 | } catch (Throwable $th) { |
||
57 | throw $th; |
||
58 | } |
||
59 | } |
||
60 | } |
||
61 |
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