@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | $request = $event->getRequest(); |
| 44 | 44 | |
| 45 | - $apiController = function () use ($controller, $action, $request) { |
|
| 45 | + $apiController = function() use ($controller, $action, $request) { |
|
| 46 | 46 | $requestTransfer = $this->getRequestTransfer($request); |
| 47 | 47 | $this->logRequest($requestTransfer); |
| 48 | 48 | |
@@ -20,11 +20,11 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function provideBusinessLayerDependencies(Container $container) |
| 22 | 22 | { |
| 23 | - $container[self::FACADE_USER] = function (Container $container) { |
|
| 23 | + $container[self::FACADE_USER] = function(Container $container) { |
|
| 24 | 24 | return new CmsUserConnectorToUserBridge($container->getLocator()->user()->facade()); |
| 25 | 25 | }; |
| 26 | 26 | |
| 27 | - $container[self::QUERY_CONTAINER_CMS] = function (Container $container) { |
|
| 27 | + $container[self::QUERY_CONTAINER_CMS] = function(Container $container) { |
|
| 28 | 28 | return new CmsUserConnectorToCmsQueryContainer($container->getLocator()->cms()->queryContainer()); |
| 29 | 29 | }; |
| 30 | 30 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | { |
| 55 | 55 | $this->assertWishlistUniqueName($wishlistTransfer); |
| 56 | 56 | |
| 57 | - return $this->handleDatabaseTransaction(function () use ($wishlistTransfer) { |
|
| 57 | + return $this->handleDatabaseTransaction(function() use ($wishlistTransfer) { |
|
| 58 | 58 | return $this->executeCreateWishlistTransaction($wishlistTransfer); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $wishlistTransfer->requireIdWishlist(); |
| 108 | 108 | |
| 109 | - return $this->handleDatabaseTransaction(function () use ($wishlistTransfer) { |
|
| 109 | + return $this->handleDatabaseTransaction(function() use ($wishlistTransfer) { |
|
| 110 | 110 | return $this->executeUpdateWishlistTransaction($wishlistTransfer); |
| 111 | 111 | }); |
| 112 | 112 | } |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | { |
| 159 | 159 | $wishlistTransfer->requireIdWishlist(); |
| 160 | 160 | |
| 161 | - return $this->handleDatabaseTransaction(function () use ($wishlistTransfer) { |
|
| 161 | + return $this->handleDatabaseTransaction(function() use ($wishlistTransfer) { |
|
| 162 | 162 | return $this->executeRemoveWishlistTransaction($wishlistTransfer); |
| 163 | 163 | }); |
| 164 | 164 | } |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | ->requireName() |
| 190 | 190 | ->requireFkCustomer(); |
| 191 | 191 | |
| 192 | - return $this->handleDatabaseTransaction(function () use ($wishlistTransfer) { |
|
| 192 | + return $this->handleDatabaseTransaction(function() use ($wishlistTransfer) { |
|
| 193 | 193 | return $this->executeRemoveWishlistByNameTransaction($wishlistTransfer); |
| 194 | 194 | }); |
| 195 | 195 | } |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | */ |
| 299 | 299 | public function removeItemCollection(WishlistItemCollectionTransfer $wishlistItemTransferCollection) |
| 300 | 300 | { |
| 301 | - return $this->handleDatabaseTransaction(function () use ($wishlistItemTransferCollection) { |
|
| 301 | + return $this->handleDatabaseTransaction(function() use ($wishlistItemTransferCollection) { |
|
| 302 | 302 | return $this->executeRemoveItemCollectionTransaction($wishlistItemTransferCollection); |
| 303 | 303 | }); |
| 304 | 304 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | protected function addYamlReader(Container $container) |
| 37 | 37 | { |
| 38 | - $container[static::YAML_READER] = function () { |
|
| 38 | + $container[static::YAML_READER] = function() { |
|
| 39 | 39 | return new YamlReaderBridge(new Yaml()); |
| 40 | 40 | }; |
| 41 | 41 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | private function createClosure() |
| 69 | 69 | { |
| 70 | 70 | $dependencies = $this->getDependencies(); |
| 71 | - $callback = function (TestifyConfiguratorInterface $configurator) use ($dependencies) { |
|
| 71 | + $callback = function(TestifyConfiguratorInterface $configurator) use ($dependencies) { |
|
| 72 | 72 | foreach ($dependencies as $key => $value) { |
| 73 | 73 | $configurator->getContainer()->set($key, $value); |
| 74 | 74 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $this->debugSection('Discount Id', $discountId); |
| 33 | 33 | |
| 34 | 34 | $cleanupModule = $this->getDataCleanupHelper(); |
| 35 | - $cleanupModule->_addCleanup(function () use ($discountId) { |
|
| 35 | + $cleanupModule->_addCleanup(function() use ($discountId) { |
|
| 36 | 36 | $this->debug('Deleting Discount: ' . $discountId); |
| 37 | 37 | $this->getDiscountQuery()->queryDiscount()->findByIdDiscount($discountId)->delete(); |
| 38 | 38 | }); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public function _after(TestInterface $test) |
| 48 | 48 | { |
| 49 | - static::$alreadyLoggedIn = false; |
|
| 49 | + static::$alreadyLoggedIn = false; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public function providePersistenceLayerDependencies(Container $container) |
| 45 | 45 | { |
| 46 | - $container[self::AVAILABILITY_QUERY_CONTAINER] = function (Container $container) { |
|
| 46 | + $container[self::AVAILABILITY_QUERY_CONTAINER] = function(Container $container) { |
|
| 47 | 47 | $availabilityQueryContainer = $container->getLocator() |
| 48 | 48 | ->availability() |
| 49 | 49 | ->queryContainer(); |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public function providePersistenceLayerDependencies(Container $container) |
| 45 | 45 | { |
| 46 | - $container[self::CATEGORY_QUERY_CONTAINER] = function (Container $container) { |
|
| 46 | + $container[self::CATEGORY_QUERY_CONTAINER] = function(Container $container) { |
|
| 47 | 47 | $categoryQueryContainer = $container->getLocator() |
| 48 | 48 | ->category() |
| 49 | 49 | ->queryContainer(); |