@@ -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); | 
                                                        
@@ -227,7 +227,7 @@  | 
                                                    ||
| 227 | 227 |  		if (Config::$apiAllLogs || (Config::$apiErrorLogs && (isset($responseBody['error']) || empty($responseBody) || 200 !== $response->getStatusCode()))) { | 
                                                        
| 228 | 228 | \App\Log::info([  | 
                                                        
| 229 | 229 |  				'request' => ['date' => date('Y-m-d H:i:s', $startTime), 'requestType' => strtoupper($requestType), 'method' => $method, 'headers' => $headers, 'rawBody' => $this->dataBody, 'body' => $data], | 
                                                        
| 230 | - 'response' => ['time' => round(microtime(true) - $startTime, 2), 'status' => $response->getStatusCode(), 'reasonPhrase' => $response->getReasonPhrase(), 'headers' => $response->getHeaders(), 'rawBody' => $rawResponse, 'body' => $responseBody],  | 
                                                        |
| 230 | + 'response' => ['time' => round(microtime(true) - $startTime, 2), 'status' => $response->getStatusCode(), 'reasonPhrase' => $response->getReasonPhrase(), 'headers' => $response->getHeaders(), 'rawBody' => $rawResponse, 'body' => $responseBody],  | 
                                                        |
| 231 | 231 | ], 'Api');  | 
                                                        
| 232 | 232 | }  | 
                                                        
| 233 | 233 |  		if (isset($responseBody['error'])) { | 
                                                        
@@ -30,7 +30,7 @@  | 
                                                    ||
| 30 | 30 | protected $defaultOperator = 'a';  | 
                                                        
| 31 | 31 | |
| 32 | 32 | /** @var string[] Not supported field types. */  | 
                                                        
| 33 | - protected $notSupportedToEdit = ['multiCurrency', 'serverAccess', 'multiReference', 'barcode', 'changesJson', 'iban', 'token', 'currencyInventory', 'twitter', 'multiReferenceValue', 'taxes', 'recurrence', 'meetingUrl', 'reminder', 'totalTime', 'multiowner', 'userReference', 'currencyList', 'modules', 'inventoryLimit', 'multiEmail', 'multiDependField', 'smtp', 'multiDomain', 'magentoServer'];  | 
                                                        |
| 33 | + protected $notSupportedToEdit = ['multiCurrency', 'serverAccess', 'multiReference', 'barcode', 'changesJson', 'iban', 'token', 'currencyInventory', 'twitter', 'multiReferenceValue', 'taxes', 'recurrence', 'meetingUrl', 'reminder', 'totalTime', 'multiowner', 'userReference', 'currencyList', 'modules', 'inventoryLimit', 'multiEmail', 'multiDependField', 'smtp', 'multiDomain', 'magentoServer'];  | 
                                                        |
| 34 | 34 | |
| 35 | 35 | /**  | 
                                                        
| 36 | 36 | * Function to set the name of the module to which the record belongs.  | 
                                                        
@@ -22,7 +22,7 @@  | 
                                                    ||
| 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;  |