@@ -45,7 +45,7 @@ |
||
| 45 | 45 | public function saveProductListProductConcreteRelation( |
| 46 | 46 | ProductListProductConcreteRelationTransfer $productListProductConcreteRelationTransfer |
| 47 | 47 | ): ProductListProductConcreteRelationTransfer { |
| 48 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productListProductConcreteRelationTransfer) { |
|
| 48 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productListProductConcreteRelationTransfer) { |
|
| 49 | 49 | return $this->executeSaveProductListProductConcreteRelationTransaction($productListProductConcreteRelationTransfer); |
| 50 | 50 | }); |
| 51 | 51 | } |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | */ |
| 138 | 138 | public function save(UserTransfer $userTransfer) |
| 139 | 139 | { |
| 140 | - return $this->getTransactionHandler()->handleTransaction(function () use ($userTransfer): UserTransfer { |
|
| 140 | + return $this->getTransactionHandler()->handleTransaction(function() use ($userTransfer): UserTransfer { |
|
| 141 | 141 | return $this->executeSaveTransaction($userTransfer); |
| 142 | 142 | }); |
| 143 | 143 | } |
@@ -36,16 +36,16 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * Applies Criteria::IN filtering criteria for the column. |
| 38 | 38 | * |
| 39 | - * @param array \$${variableName}s Filter value. |
|
| 39 | + * @param array \$${variablename}s Filter value. |
|
| 40 | 40 | * |
| 41 | 41 | * @return \$this The current query, for fluid interface |
| 42 | 42 | */ |
| 43 | - public function filterBy${colPhpName}_In(array \$${variableName}s) |
|
| 43 | + public function filterBy${colphpname}_In(array \$${variablename}s) |
|
| 44 | 44 | { |
| 45 | - return \$this->filterBy$colPhpName(\$${variableName}s, Criteria::IN); |
|
| 45 | + return \$this->filterBy$colPhpName(\$${variablename}s, Criteria::IN); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | -SCRIPT; |
|
| 48 | +script; |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | return $script; |
@@ -78,12 +78,12 @@ discard block |
||
| 78 | 78 | * |
| 79 | 79 | * @return \$this The current query, for fluid interface |
| 80 | 80 | */ |
| 81 | - public function filterBy${colPhpName}_Between(array \$$variableName) |
|
| 81 | + public function filterBy${colphpname}_Between(array \$$variableName) |
|
| 82 | 82 | { |
| 83 | 83 | return \$this->filterBy$colPhpName(\$$variableName, SprykerCriteria::BETWEEN); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | -SCRIPT; |
|
| 86 | +script; |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | return $script; |
@@ -111,12 +111,12 @@ discard block |
||
| 111 | 111 | * |
| 112 | 112 | * @return \$this The current query, for fluid interface |
| 113 | 113 | */ |
| 114 | - public function filterBy${colPhpName}_Like(\$$variableName) |
|
| 114 | + public function filterBy${colphpname}_Like(\$$variableName) |
|
| 115 | 115 | { |
| 116 | 116 | return \$this->filterBy$colPhpName(\$$variableName, Criteria::LIKE); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | -SCRIPT; |
|
| 119 | +script; |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | return $script; |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | */ |
| 124 | 124 | protected function getFilenameSortCallback(): callable |
| 125 | 125 | { |
| 126 | - return function (SplFileInfo $splFileInfoOne, SplFileInfo $splFileInfoTwo) { |
|
| 126 | + return function(SplFileInfo $splFileInfoOne, SplFileInfo $splFileInfoTwo) { |
|
| 127 | 127 | return strcmp($splFileInfoOne->getRealPath(), $splFileInfoTwo->getRealPath()); |
| 128 | 128 | }; |
| 129 | 129 | } |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | */ |
| 98 | 98 | protected function getFilenameSortCallback(): callable |
| 99 | 99 | { |
| 100 | - return function (SplFileInfo $fileOne, SplFileInfo $fileTwo) { |
|
| 100 | + return function(SplFileInfo $fileOne, SplFileInfo $fileTwo) { |
|
| 101 | 101 | return strcmp($fileOne->getRealpath(), $fileTwo->getRealpath()); |
| 102 | 102 | }; |
| 103 | 103 | } |
@@ -234,7 +234,7 @@ |
||
| 234 | 234 | ->setId($shoppingListTransfer->getIdShoppingList()) |
| 235 | 235 | ->setEvent(ShoppingListEvents::SHOPPING_LIST_UNPUBLISH) |
| 236 | 236 | ->setModifiedColumns([ |
| 237 | - $shoppingListTransfer->getCustomerReference() => ShoppingListTransfer::CUSTOMER_REFERENCE, |
|
| 237 | + $shoppingListTransfer->getCustomerReference() => ShoppingListTransfer::CUSTOMER_REFERENCE, |
|
| 238 | 238 | ]); |
| 239 | 239 | $this->eventFacade->trigger(ShoppingListEvents::SHOPPING_LIST_UNPUBLISH, $eventTransfer); |
| 240 | 240 | } |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | return $this->getTransactionHandler()->handleTransaction( |
| 147 | - function () use ($shoppingListTransfer) { |
|
| 147 | + function() use ($shoppingListTransfer) { |
|
| 148 | 148 | return $this->executeRemoveShoppingListTransaction($shoppingListTransfer); |
| 149 | 149 | }, |
| 150 | 150 | ); |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | public function saveShoppingList(ShoppingListTransfer $shoppingListTransfer): ShoppingListTransfer |
| 173 | 173 | { |
| 174 | 174 | return $this->getTransactionHandler()->handleTransaction( |
| 175 | - function () use ($shoppingListTransfer) { |
|
| 175 | + function() use ($shoppingListTransfer) { |
|
| 176 | 176 | return $this->executeSaveShoppingListTransaction($shoppingListTransfer); |
| 177 | 177 | }, |
| 178 | 178 | ); |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | */ |
| 202 | 202 | protected function deleteShoppingListItems(ShoppingListTransfer $shoppingListTransfer): ShoppingListResponseTransfer |
| 203 | 203 | { |
| 204 | - $this->getTransactionHandler()->handleTransaction(function () use ($shoppingListTransfer) { |
|
| 204 | + $this->getTransactionHandler()->handleTransaction(function() use ($shoppingListTransfer) { |
|
| 205 | 205 | $this->executeDeleteShoppingListItemsTransaction($shoppingListTransfer); |
| 206 | 206 | }); |
| 207 | 207 | |
@@ -270,7 +270,7 @@ |
||
| 270 | 270 | */ |
| 271 | 271 | protected function filterSuperAttributes(array $productAttributes): array |
| 272 | 272 | { |
| 273 | - return array_filter($productAttributes, function (string $attribute) { |
|
| 273 | + return array_filter($productAttributes, function(string $attribute) { |
|
| 274 | 274 | return isset(static::$superAttributesCache[$attribute]); |
| 275 | 275 | }); |
| 276 | 276 | } |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | ->getItems() |
| 87 | 87 | ->getArrayCopy(); |
| 88 | 88 | |
| 89 | - return array_map(function (MimeTypeTransfer $mimeTypeTransfer) { |
|
| 89 | + return array_map(function(MimeTypeTransfer $mimeTypeTransfer) { |
|
| 90 | 90 | return $mimeTypeTransfer->getName(); |
| 91 | 91 | }, $mimeTypes); |
| 92 | 92 | } |
@@ -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 | } |