@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | ], |
67 | 67 | ]); |
68 | 68 | |
69 | - $result = json_decode((string)$response->getBody("access_token"), true); |
|
69 | + $result = json_decode((string) $response->getBody("access_token"), true); |
|
70 | 70 | |
71 | 71 | if (isset($result['status']) && $result['status'] == Constant::HTTP_RESPONSE_STATUSES['success']) { |
72 | 72 | |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | 'form_params' => $ssoPayload |
167 | 167 | ]); |
168 | 168 | |
169 | - $result = json_decode((string)$response->getBody("access_token"), true); |
|
169 | + $result = json_decode((string) $response->getBody("access_token"), true); |
|
170 | 170 | |
171 | 171 | if (isset($result['status']) && $result['status'] == Constant::HTTP_RESPONSE_STATUSES['success']) { |
172 | 172 | $response = ['error' => false, 'body' => $result['body']]; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | return self::send( |
19 | 19 | Http::$Codes[Http::SUCCESS], |
20 | 20 | [Language::getMessage($message)], |
21 | - (object)$body, |
|
21 | + (object) $body, |
|
22 | 22 | null |
23 | 23 | ); |
24 | 24 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return self::send( |
45 | 45 | Http::$Codes[Http::INPROCESSABLE], |
46 | 46 | $errorMessages, |
47 | - (object)[], |
|
47 | + (object) [], |
|
48 | 48 | null |
49 | 49 | ); |
50 | 50 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | return self::send( |
59 | 59 | Http::$Codes[Http::UNAUTHORISED], |
60 | 60 | [Language::getMessage("general.unauthenticated")], |
61 | - (object)[], |
|
61 | + (object) [], |
|
62 | 62 | null |
63 | 63 | ); |
64 | 64 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | return self::send( |
75 | 75 | Http::$Codes[Http::BAD_REQUEST], |
76 | 76 | (gettype($message) == "array") ? $message : [Language::getMessage($message)], |
77 | - (object)$body, |
|
77 | + (object) $body, |
|
78 | 78 | $exception |
79 | 79 | ); |
80 | 80 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function register() |
15 | 15 | { |
16 | - $this->app->bind("bSecure_facade", function () { |
|
16 | + $this->app->bind("bSecure_facade", function() { |
|
17 | 17 | return new BsecureCheckout(); |
18 | 18 | }); |
19 | 19 | } |