@@ -184,7 +184,7 @@ |
||
| 184 | 184 | if (static::$clearOpcache) { |
| 185 | 185 | return false; |
| 186 | 186 | } |
| 187 | - register_shutdown_function(function () { |
|
| 187 | + register_shutdown_function(function() { |
|
| 188 | 188 | static::resetOpcache(); |
| 189 | 189 | }); |
| 190 | 190 | static::$clearOpcache = true; |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public static function init() |
| 35 | 35 | { |
| 36 | - register_shutdown_function(function () { |
|
| 36 | + register_shutdown_function(function() { |
|
| 37 | 37 | static::flush(); |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | //Override the default expire time of token |
| 19 | 19 | \CsrfMagic\Csrf::$expires = 259200; |
| 20 | - \CsrfMagic\Csrf::$callback = function ($tokens) { |
|
| 20 | + \CsrfMagic\Csrf::$callback = function($tokens) { |
|
| 21 | 21 | throw new \App\Exceptions\BadRequest('Invalid request - Response For Illegal Access'); |
| 22 | 22 | }; |
| 23 | 23 | $js = PUBLIC_DIRECTORY . 'vendor/yetiforce/csrf-magic/src/Csrf.min.js'; |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | if (empty($response['secretKey'])) { |
| 59 | 59 | $this->authMethods = $response['authMethods']; |
| 60 | 60 | } else { |
| 61 | - ['authMethods' => $this->authMethods , 'secretKey' => $this->secretKey] = $response; |
|
| 61 | + ['authMethods' => $this->authMethods, 'secretKey' => $this->secretKey] = $response; |
|
| 62 | 62 | $this->viewer->assign('QR_CODE_HTML', $this->createQrCodeForUser()); |
| 63 | 63 | } |
| 64 | 64 | $this->viewer->assign('SECRET_KEY', $this->secretKey); |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | if (Config::$apiAllLogs || (Config::$apiErrorLogs && (isset($responseBody['error']) || empty($responseBody) || 200 !== $response->getStatusCode()))) { |
| 135 | 135 | \App\Log::info([ |
| 136 | 136 | 'request' => ['date' => date('Y-m-d H:i:s', $startTime), 'requestType' => strtoupper($requestType), 'method' => $method, 'headers' => $headers, 'rawBody' => $rawRequest, 'body' => $data], |
| 137 | - 'response' => ['time' => round(microtime(true) - $startTime, 2), 'status' => $response->getStatusCode(), 'reasonPhrase' => $response->getReasonPhrase(), 'headers' => $response->getHeaders(), 'rawBody' => $rawResponse, 'body' => $responseBody], |
|
| 137 | + 'response' => ['time' => round(microtime(true) - $startTime, 2), 'status' => $response->getStatusCode(), 'reasonPhrase' => $response->getReasonPhrase(), 'headers' => $response->getHeaders(), 'rawBody' => $rawResponse, 'body' => $responseBody], |
|
| 138 | 138 | ], 'Api'); |
| 139 | 139 | } |
| 140 | 140 | if (isset($responseBody['error'])) { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | class CartView extends ListViewModel |
| 24 | 24 | { |
| 25 | - const ADDRESS_FIELDS = ['addresslevel1', 'addresslevel2', 'addresslevel3', 'addresslevel4', 'addresslevel5', 'addresslevel6', 'addresslevel7', 'addresslevel8', 'buildingnumber', 'localnumber', 'pobox']; |
|
| 25 | + const ADDRESS_FIELDS = ['addresslevel1', 'addresslevel2', 'addresslevel3', 'addresslevel4', 'addresslevel5', 'addresslevel6', 'addresslevel7', 'addresslevel8', 'buildingnumber', 'localnumber', 'pobox']; |
|
| 26 | 26 | |
| 27 | 27 | /** @var Shopping cart */ |
| 28 | 28 | private $cart; |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | continue; |
| 121 | 121 | } |
| 122 | 122 | $address[$typeAddress] = array_intersect_key($accountRecordDetail['data'], array_flip( |
| 123 | - array_map(function ($val) use ($typeAddress) { |
|
| 123 | + array_map(function($val) use ($typeAddress) { |
|
| 124 | 124 | return $val . $typeAddress; |
| 125 | 125 | }, static::ADDRESS_FIELDS) |
| 126 | 126 | )); |