Passed
Push — developer ( b4abad...d9668c )
by Mariusz
02:15
created
app/Cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/Log.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
config/csrf_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
modules/Users/View/TwoFactorAuthenticationModal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
app/Api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
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'])) {
Please login to merge, or discard this patch.
modules/Products/Model/CartView.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 			));
Please login to merge, or discard this patch.
modules/Base/FieldTypes/BaseField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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', 'password', 'sharedOwner', 'taxes', 'recurrence', 'meetingUrl', 'reminder', 'totalTime',  'multiowner', 'image', 'multiImage', 'userReference', 'currencyList', 'modules', 'inventoryLimit', 'multiEmail', 'multiDependField', 'smtp', 'multiDomain', 'magentoServer'];
33
+	protected $notSupportedToEdit = ['multiCurrency', 'serverAccess', 'multiReference', 'barcode', 'changesJson', 'iban', 'token', 'currencyInventory', 'twitter', 'multiReferenceValue', 'password', 'sharedOwner', 'taxes', 'recurrence', 'meetingUrl', 'reminder', 'totalTime', 'multiowner', 'image', 'multiImage', '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.
Please login to merge, or discard this patch.