@@ -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 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $this->tester->setDependency(ShoppingListSessionDependencyProvider::SHOPPING_LIST_SESSION_SESSION_CLIENT, $this->getShoppingListSessionToSessionClientBridge()); |
52 | 52 | $this->tester->setDependency( |
53 | 53 | ShoppingListSessionDependencyProvider::SHOPPING_LIST_SESSION_COLLECTION_OUTDATED_PLUGINS, |
54 | - function () { |
|
54 | + function() { |
|
55 | 55 | return [new CollectionOutdatedPluginReturnsFalse()]; |
56 | 56 | } |
57 | 57 | ); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | |
132 | 132 | $this->tester->setDependency( |
133 | 133 | ShoppingListSessionDependencyProvider::SHOPPING_LIST_SESSION_COLLECTION_OUTDATED_PLUGINS, |
134 | - function () { |
|
134 | + function() { |
|
135 | 135 | return [new CollectionOutdatedPluginReturnsTrue()]; |
136 | 136 | } |
137 | 137 | ); |
@@ -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 | } |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | return $this->getTransactionHandler()->handleTransaction( |
158 | - function () use ($shoppingListTransfer) { |
|
158 | + function() use ($shoppingListTransfer) { |
|
159 | 159 | return $this->executeRemoveShoppingListTransaction($shoppingListTransfer); |
160 | 160 | } |
161 | 161 | ); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | public function saveShoppingList(ShoppingListTransfer $shoppingListTransfer): ShoppingListTransfer |
170 | 170 | { |
171 | 171 | return $this->getTransactionHandler()->handleTransaction( |
172 | - function () use ($shoppingListTransfer) { |
|
172 | + function() use ($shoppingListTransfer) { |
|
173 | 173 | return $this->executeSaveShoppingListTransaction($shoppingListTransfer); |
174 | 174 | } |
175 | 175 | ); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | */ |
199 | 199 | protected function deleteShoppingListItems(ShoppingListTransfer $shoppingListTransfer): ShoppingListResponseTransfer |
200 | 200 | { |
201 | - $this->getTransactionHandler()->handleTransaction(function () use ($shoppingListTransfer) { |
|
201 | + $this->getTransactionHandler()->handleTransaction(function() use ($shoppingListTransfer) { |
|
202 | 202 | $this->executeDeleteShoppingListItemsTransaction($shoppingListTransfer); |
203 | 203 | }); |
204 | 204 |
@@ -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 | } |
@@ -101,7 +101,7 @@ |
||
101 | 101 | return; |
102 | 102 | } |
103 | 103 | |
104 | - $this->getTransactionHandler()->handleTransaction(function () use ($orphanPriceProductStoreEntities) { |
|
104 | + $this->getTransactionHandler()->handleTransaction(function() use ($orphanPriceProductStoreEntities) { |
|
105 | 105 | $this->doDeleteOrphanPriceProductStoreEntities($orphanPriceProductStoreEntities); |
106 | 106 | }); |
107 | 107 | } |