@@ -50,7 +50,7 @@ |
||
| 50 | 50 | */ |
| 51 | 51 | protected function sortItemsBySku(array $items) |
| 52 | 52 | { |
| 53 | - usort($items, function (ItemTransfer $item1, ItemTransfer $item2) { |
|
| 53 | + usort($items, function(ItemTransfer $item1, ItemTransfer $item2) { |
|
| 54 | 54 | if ($item1->getSku() !== $item2->getSku()) { |
| 55 | 55 | return $item1->getSku() > $item2->getSku(); |
| 56 | 56 | } |
@@ -39,8 +39,8 @@ |
||
| 39 | 39 | public function saveProductOptionGroup(ProductOptionGroupTransfer $productOptionGroupTransfer) |
| 40 | 40 | { |
| 41 | 41 | return $this->getFactory() |
| 42 | - ->createProductOptionGroupSaver() |
|
| 43 | - ->saveProductOptionGroup($productOptionGroupTransfer); |
|
| 42 | + ->createProductOptionGroupSaver() |
|
| 43 | + ->saveProductOptionGroup($productOptionGroupTransfer); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | 'prototype' => true, |
| 151 | 151 | 'constraints' => [ |
| 152 | 152 | new Callback([ |
| 153 | - 'callback' => function (ArrayObject $values, ExecutionContextInterface $context) { |
|
| 153 | + 'callback' => function(ArrayObject $values, ExecutionContextInterface $context) { |
|
| 154 | 154 | if (count($values) === 0) { |
| 155 | 155 | $context->buildViolation('No option values added.') |
| 156 | 156 | ->addViolation(); |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | 'required' => true, |
| 59 | 59 | 'constraints' => [ |
| 60 | 60 | new NotBlank(), |
| 61 | - ], |
|
| 61 | + ], |
|
| 62 | 62 | ]); |
| 63 | 63 | |
| 64 | 64 | return $this; |
@@ -161,13 +161,13 @@ |
||
| 161 | 161 | { |
| 162 | 162 | if ($this->tableContext === self::TABLE_CONTEXT_EDIT) { |
| 163 | 163 | return [ |
| 164 | - self::COL_CHECKBOX => 'Selected', |
|
| 164 | + self::COL_CHECKBOX => 'Selected', |
|
| 165 | 165 | ]; |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | - return [ |
|
| 169 | - self::COL_ACTIONS => 'Actions', |
|
| 170 | - ]; |
|
| 168 | + return [ |
|
| 169 | + self::COL_ACTIONS => 'Actions', |
|
| 170 | + ]; |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | $customerTransfer->requireIdCustomer(); |
| 71 | 71 | $customerTransfer = $this->getCustomer($customerTransfer); |
| 72 | 72 | |
| 73 | - $this->handleDatabaseTransaction(function () use ($customerTransfer) { |
|
| 73 | + $this->handleDatabaseTransaction(function() use ($customerTransfer) { |
|
| 74 | 74 | $this->processTransaction($customerTransfer); |
| 75 | 75 | }); |
| 76 | 76 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $config = $this->getFactory()->getConfig(); |
| 40 | 40 | $authFacade = $this->getFacade(); |
| 41 | 41 | |
| 42 | - $app->before(function (Request $request) use ($app, $authFacade, $config) { |
|
| 42 | + $app->before(function(Request $request) use ($app, $authFacade, $config) { |
|
| 43 | 43 | $bundle = $request->attributes->get('module'); |
| 44 | 44 | $controller = $request->attributes->get('controller'); |
| 45 | 45 | $action = $request->attributes->get('action'); |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | */ |
| 156 | 156 | protected function mapProductStorageTransfer(array $productData) |
| 157 | 157 | { |
| 158 | - //implement, this method is overwritten and provided in demoshop |
|
| 158 | + //implement, this method is overwritten and provided in demoshop |
|
| 159 | 159 | return (new StorageProductTransfer())->fromArray($productData, true); |
| 160 | 160 | } |
| 161 | 161 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function updateCmsBlock(CmsBlockTransfer $cmsBlockTransfer) |
| 61 | 61 | { |
| 62 | - $this->handleDatabaseTransaction(function () use ($cmsBlockTransfer) { |
|
| 62 | + $this->handleDatabaseTransaction(function() use ($cmsBlockTransfer) { |
|
| 63 | 63 | $this->updateCmsBlockCategoryRelationsTransaction($cmsBlockTransfer); |
| 64 | 64 | }); |
| 65 | 65 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function updateCategory(CategoryTransfer $categoryTransfer) |
| 73 | 73 | { |
| 74 | - $this->handleDatabaseTransaction(function () use ($categoryTransfer) { |
|
| 74 | + $this->handleDatabaseTransaction(function() use ($categoryTransfer) { |
|
| 75 | 75 | $this->updateCategoryCmsBlockRelationsTransaction($categoryTransfer); |
| 76 | 76 | }); |
| 77 | 77 | } |