@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $discountEntity = $this->createDiscountEntity(); |
| 65 | 65 | $this->hydrateDiscountEntity($discountConfiguratorTransfer, $discountEntity); |
| 66 | 66 | |
| 67 | - $this->handleDatabaseTransaction(function () use ($discountEntity, $discountConfiguratorTransfer) { |
|
| 67 | + $this->handleDatabaseTransaction(function() use ($discountEntity, $discountConfiguratorTransfer) { |
|
| 68 | 68 | $this->executeSaveDiscountTransaction($discountEntity, $discountConfiguratorTransfer); |
| 69 | 69 | }); |
| 70 | 70 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | ); |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - $affectedRows = $this->handleDatabaseTransaction(function () use ($discountEntity, $discountConfiguratorTransfer) { |
|
| 125 | + $affectedRows = $this->handleDatabaseTransaction(function() use ($discountEntity, $discountConfiguratorTransfer) { |
|
| 126 | 126 | return $this->executeUpdateDiscountTransaction($discountEntity, $discountConfiguratorTransfer); |
| 127 | 127 | }); |
| 128 | 128 | |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | |
| 108 | 108 | $streamedResponse = new StreamedResponse(); |
| 109 | 109 | |
| 110 | - $streamedResponse->setCallback(function () use ($generatedVouchers) { |
|
| 110 | + $streamedResponse->setCallback(function() use ($generatedVouchers) { |
|
| 111 | 111 | $csvHandle = fopen('php://output', 'w+'); |
| 112 | 112 | fputcsv($csvHandle, ['Voucher Code']); |
| 113 | 113 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | */ |
| 50 | 50 | public function getAllowedCodeCharactersLength() |
| 51 | 51 | { |
| 52 | - $charactersLength = array_reduce($this->getVoucherCodeCharacters(), function ($length, $items) { |
|
| 52 | + $charactersLength = array_reduce($this->getVoucherCodeCharacters(), function($length, $items) { |
|
| 53 | 53 | $length += count($items); |
| 54 | 54 | |
| 55 | 55 | return $length; |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | |
| 46 | 46 | $request = $event->getRequest(); |
| 47 | 47 | |
| 48 | - $apiController = function () use ($controller, $action, $request) { |
|
| 48 | + $apiController = function() use ($controller, $action, $request) { |
|
| 49 | 49 | $requestTransfer = $this->getRequestTransfer($request); |
| 50 | 50 | $this->logRequest($requestTransfer); |
| 51 | 51 | |
@@ -136,7 +136,7 @@ |
||
| 136 | 136 | return $productLabelCollection; |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - usort($productLabelCollection, function ( |
|
| 139 | + usort($productLabelCollection, function( |
|
| 140 | 140 | StorageProductLabelTransfer $productLabelTransferA, |
| 141 | 141 | StorageProductLabelTransfer $productLabelTransferB |
| 142 | 142 | ) { |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | */ |
| 49 | 49 | public function save(ArrayObject $localizedAttributesTransferCollection) |
| 50 | 50 | { |
| 51 | - $this->handleDatabaseTransaction(function () use ($localizedAttributesTransferCollection) { |
|
| 51 | + $this->handleDatabaseTransaction(function() use ($localizedAttributesTransferCollection) { |
|
| 52 | 52 | $this->executeSetTransaction($localizedAttributesTransferCollection); |
| 53 | 53 | }); |
| 54 | 54 | } |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | return; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - $this->handleDatabaseTransaction(function () use ($productLabelsBecomingActive, $productLabelsBecomingInactive) { |
|
| 54 | + $this->handleDatabaseTransaction(function() use ($productLabelsBecomingActive, $productLabelsBecomingInactive) { |
|
| 55 | 55 | $this->executeTransaction($productLabelsBecomingActive, $productLabelsBecomingInactive); |
| 56 | 56 | }); |
| 57 | 57 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function extractPathFromMenu(array $menu) |
| 25 | 25 | { |
| 26 | - $filteredMenu = array_filter($menu, function ($branch) { |
|
| 26 | + $filteredMenu = array_filter($menu, function($branch) { |
|
| 27 | 27 | return isset($branch[MenuFormatter::IS_ACTIVE]); |
| 28 | 28 | }); |
| 29 | 29 | $path = []; |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | $this->assertUrlForDetach($urlTransfer); |
| 51 | 51 | |
| 52 | - $this->handleDatabaseTransaction(function () use ($urlTransfer) { |
|
| 52 | + $this->handleDatabaseTransaction(function() use ($urlTransfer) { |
|
| 53 | 53 | $this->executeDetachUrlFromNavigationNodesTransaction($urlTransfer); |
| 54 | 54 | }); |
| 55 | 55 | } |