GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

BsecureSSO::authenticateWebClient()   A
last analyzed

Complexity

Conditions 2
Paths 4

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 6
c 1
b 0
f 0
nc 4
nop 1
dl 0
loc 9
rs 10
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
Bug introduced by
The type Illuminate\Support\Facades\Facade was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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