@@ -283,8 +283,7 @@ discard block |
||
283 | 283 | // Dividing dataset into three thirds: unused keys then used keys then new keys |
284 | 284 | $firstThirdDataset = ceil($cacheSize / 3); |
285 | 285 | $secondThirdDataset = $firstThirdDataset * 2; |
286 | - $value = $i < $firstThirdDataset ? StorageClient::KEY_INIT : |
|
287 | - ($i < $secondThirdDataset ? StorageClient::KEY_USED : StorageClient::KEY_NEW); |
|
286 | + $value = $i < $firstThirdDataset ? StorageClient::KEY_INIT : ($i < $secondThirdDataset ? StorageClient::KEY_USED : StorageClient::KEY_NEW); |
|
288 | 287 | break; |
289 | 288 | |
290 | 289 | default: |
@@ -339,8 +338,7 @@ discard block |
||
339 | 338 | // When there are unused keys within the limit, the result contains the rest of the unused keys after removing the over limit ones |
340 | 339 | $inLimitUnusedKeysSize = $thirdDataset - self::OVER_LIMIT_SIZE; |
341 | 340 | $key = 'kv:key' . ($i + $thirdDataset - $inLimitUnusedKeysSize + 1); |
342 | - $value = $i < $inLimitUnusedKeysSize ? StorageClient::KEY_INIT : |
|
343 | - ($i < $inLimitUnusedKeysSize + $thirdDataset ? StorageClient::KEY_USED : StorageClient::KEY_NEW); |
|
341 | + $value = $i < $inLimitUnusedKeysSize ? StorageClient::KEY_INIT : ($i < $inLimitUnusedKeysSize + $thirdDataset ? StorageClient::KEY_USED : StorageClient::KEY_NEW); |
|
344 | 342 | } |
345 | 343 | break; |
346 | 344 |
@@ -17,13 +17,13 @@ |
||
17 | 17 | public const DEACTIVATION_NOW_MESSAGE = <<<'EOD' |
18 | 18 | This product will be deactivated shortly because validity overrules activity. |
19 | 19 | Check the field "Valid To", it is set in past, to %s GMT. |
20 | -EOD; |
|
20 | +eod; |
|
21 | 21 | |
22 | 22 | public const ACTIVATION_IN_FUTURE_MESSAGE = 'This product will be activated at %s GMT. Check the field "Valid From".'; |
23 | 23 | public const ACTIVATION_NOW_MESSAGE = <<<'EOD' |
24 | 24 | This product will be activated shortly because validity overrules activity. |
25 | 25 | Check the field "Valid From", it is set in past, to %s GMT. |
26 | -EOD; |
|
26 | +eod; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @var \Spryker\Zed\ProductManagement\ProductManagementConfig |
@@ -316,7 +316,7 @@ |
||
316 | 316 | { |
317 | 317 | $shoppingListItemTransfers = (array)$shoppingListItemCollectionTransfer->getItems(); |
318 | 318 | |
319 | - return array_map(function (ShoppingListItemTransfer $shoppingListItemTransfer) { |
|
319 | + return array_map(function(ShoppingListItemTransfer $shoppingListItemTransfer) { |
|
320 | 320 | return $shoppingListItemTransfer[ShoppingListItemTransfer::SKU]; |
321 | 321 | }, $shoppingListItemTransfers); |
322 | 322 | } |
@@ -129,7 +129,7 @@ |
||
129 | 129 | */ |
130 | 130 | protected function filterNonInfrastructuralPermissions(array $permissions) |
131 | 131 | { |
132 | - return array_filter($permissions, function (PermissionTransfer $permission) { |
|
132 | + return array_filter($permissions, function(PermissionTransfer $permission) { |
|
133 | 133 | return !$permission->getIsInfrastructural(); |
134 | 134 | }); |
135 | 135 | } |
@@ -180,7 +180,7 @@ |
||
180 | 180 | $dom->loadXML($xml->asXML()); |
181 | 181 | $this->ensureElementHierarchy($dom); |
182 | 182 | |
183 | - $callback = function ($matches) { |
|
183 | + $callback = function($matches) { |
|
184 | 184 | $multiplier = (strlen($matches[1]) / 2) * 4; |
185 | 185 | |
186 | 186 | return str_repeat(' ', $multiplier) . '<'; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | ->createStateMachineItemStateQuery() |
49 | 49 | ->innerJoinProcess() |
50 | 50 | ->useStateHistoryQuery() |
51 | - ->filterByIdentifier($stateMachineItemTransfer->getIdentifier()) |
|
51 | + ->filterByIdentifier($stateMachineItemTransfer->getIdentifier()) |
|
52 | 52 | ->endUse() |
53 | 53 | ->filterByIdStateMachineItemState($stateMachineItemTransfer->getIdItemState()); |
54 | 54 | } |
@@ -82,15 +82,15 @@ discard block |
||
82 | 82 | */ |
83 | 83 | public function queryItemHistoryByStateItemIdentifier($identifier, $idStateMachineProcess) |
84 | 84 | { |
85 | - return $this->getFactory() |
|
86 | - ->createStateMachineItemStateHistoryQuery() |
|
87 | - ->useStateQuery() |
|
85 | + return $this->getFactory() |
|
86 | + ->createStateMachineItemStateHistoryQuery() |
|
87 | + ->useStateQuery() |
|
88 | 88 | ->filterByFkStateMachineProcess($idStateMachineProcess) |
89 | - ->endUse() |
|
90 | - ->joinState() |
|
91 | - ->filterByIdentifier($identifier) |
|
92 | - ->orderByCreatedAt() |
|
93 | - ->orderByIdStateMachineItemStateHistory(); |
|
89 | + ->endUse() |
|
90 | + ->joinState() |
|
91 | + ->filterByIdentifier($identifier) |
|
92 | + ->orderByCreatedAt() |
|
93 | + ->orderByIdStateMachineItemStateHistory(); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
@@ -127,8 +127,8 @@ discard block |
||
127 | 127 | ->createStateMachineItemStateQuery() |
128 | 128 | ->innerJoinStateHistory() |
129 | 129 | ->useProcessQuery() |
130 | - ->filterByStateMachineName($stateMachineName) |
|
131 | - ->filterByName($processName) |
|
130 | + ->filterByStateMachineName($stateMachineName) |
|
131 | + ->filterByName($processName) |
|
132 | 132 | ->endUse() |
133 | 133 | ->joinProcess() |
134 | 134 | ->filterByName($states, Criteria::IN) |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | { |
240 | 240 | return $this->getFactory()->createStateMachineItemStateHistoryQuery() |
241 | 241 | ->useStateQuery() |
242 | - ->filterByFkStateMachineProcess($stateMachineItemTransfer->getIdStateMachineProcess()) |
|
242 | + ->filterByFkStateMachineProcess($stateMachineItemTransfer->getIdStateMachineProcess()) |
|
243 | 243 | ->endUse() |
244 | 244 | ->filterByIdentifier($stateMachineItemTransfer->getIdentifier()) |
245 | 245 | ->orderByCreatedAt(Criteria::DESC) |
@@ -61,6 +61,6 @@ |
||
61 | 61 | */ |
62 | 62 | public function isProductConcreteActive(ProductConcreteTransfer $productConcreteTransfer): bool |
63 | 63 | { |
64 | - return $this->productFacade->isProductConcreteActive($productConcreteTransfer); |
|
64 | + return $this->productFacade->isProductConcreteActive($productConcreteTransfer); |
|
65 | 65 | } |
66 | 66 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | $quoteTransfer->getCurrency() |
41 | 41 | ); |
42 | 42 | |
43 | - return array_map(function (SalesOrderThresholdTransfer $salesOrderThresholdTransfer) use ($quoteTransfer) { |
|
43 | + return array_map(function(SalesOrderThresholdTransfer $salesOrderThresholdTransfer) use ($quoteTransfer) { |
|
44 | 44 | $salesOrderThresholdTransfer = $salesOrderThresholdTransfer->getSalesOrderThresholdValue(); |
45 | 45 | $salesOrderThresholdTransfer->setValue($quoteTransfer->getTotals()->getSubtotal()); |
46 | 46 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function install(): void |
44 | 44 | { |
45 | - $this->getTransactionHandler()->handleTransaction(function () { |
|
45 | + $this->getTransactionHandler()->handleTransaction(function() { |
|
46 | 46 | $this->executeInstallTransaction(); |
47 | 47 | }); |
48 | 48 | } |