@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | protected function addProductLabelFacade(Container $container) |
| 44 | 44 | { |
| 45 | - $container[static::FACADE_PRODUCT_LABEL] = function (Container $container) { |
|
| 45 | + $container[static::FACADE_PRODUCT_LABEL] = function(Container $container) { |
|
| 46 | 46 | return new ProductLabelCollectorToProductLabelBridge($container->getLocator()->productLabel()->facade()); |
| 47 | 47 | }; |
| 48 | 48 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | protected function addCollectorFacade(Container $container) |
| 58 | 58 | { |
| 59 | - $container[static::FACADE_COLLECTOR] = function (Container $container) { |
|
| 59 | + $container[static::FACADE_COLLECTOR] = function(Container $container) { |
|
| 60 | 60 | return new ProductLabelCollectorToCollectorBridge($container->getLocator()->collector()->facade()); |
| 61 | 61 | }; |
| 62 | 62 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | protected function addDataReaderService(Container $container) |
| 72 | 72 | { |
| 73 | - $container[static::SERVICE_DATA_READER] = function (Container $container) { |
|
| 73 | + $container[static::SERVICE_DATA_READER] = function(Container $container) { |
|
| 74 | 74 | return $container->getLocator()->utilDataReader()->service(); |
| 75 | 75 | }; |
| 76 | 76 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | protected function addTouchQueryContainer(Container $container) |
| 86 | 86 | { |
| 87 | - $container[static::QUERY_CONTAINER_TOUCH] = function (Container $container) { |
|
| 87 | + $container[static::QUERY_CONTAINER_TOUCH] = function(Container $container) { |
|
| 88 | 88 | return $container->getLocator()->touch()->queryContainer(); |
| 89 | 89 | }; |
| 90 | 90 | |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | */ |
| 64 | 64 | protected function storeLabels(array $productLabelTransferCollection) |
| 65 | 65 | { |
| 66 | - $this->handleDatabaseTransaction(function () use ($productLabelTransferCollection) { |
|
| 66 | + $this->handleDatabaseTransaction(function() use ($productLabelTransferCollection) { |
|
| 67 | 67 | $this->persistLabels($productLabelTransferCollection); |
| 68 | 68 | }); |
| 69 | 69 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * @var array|float[] |
| 21 | 21 | */ |
| 22 | 22 | protected static $roundingErrorBucket = [ |
| 23 | - self::DEFAULT_BUCKET_NAME => 0, |
|
| 23 | + self::DEFAULT_BUCKET_NAME => 0, |
|
| 24 | 24 | ]; |
| 25 | 25 | |
| 26 | 26 | /** |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | return $productLabelCollection; |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | - usort($productLabelCollection, function ( |
|
| 158 | + usort($productLabelCollection, function( |
|
| 159 | 159 | StorageProductLabelTransfer $productLabelTransferA, |
| 160 | 160 | StorageProductLabelTransfer $productLabelTransferB |
| 161 | 161 | ) { |
@@ -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 | } |
@@ -19,11 +19,11 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function provideServiceLayerDependencies(Container $container) |
| 21 | 21 | { |
| 22 | - $container[self::CLIENT_STORAGE] = function (Container $container) { |
|
| 22 | + $container[self::CLIENT_STORAGE] = function(Container $container) { |
|
| 23 | 23 | return new CmsBlockStorageToStorageBridge($container->getLocator()->storage()->client()); |
| 24 | 24 | }; |
| 25 | 25 | |
| 26 | - $container[self::SERVICE_SYNCHRONIZATION] = function (Container $container) { |
|
| 26 | + $container[self::SERVICE_SYNCHRONIZATION] = function(Container $container) { |
|
| 27 | 27 | return new CmsBlockStorageToSynchronizationServiceBridge($container->getLocator()->synchronization()->service()); |
| 28 | 28 | }; |
| 29 | 29 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function configureOptions(OptionsResolver $resolver) |
| 46 | 46 | { |
| 47 | 47 | $resolver->setDefaults([ |
| 48 | - 'validation_groups' => function (FormInterface $form) { |
|
| 48 | + 'validation_groups' => function(FormInterface $form) { |
|
| 49 | 49 | $originalKey = $form->get(static::FIELD_PRODUCT_SET_KEY_ORIGINAL)->getData(); |
| 50 | 50 | $updatedKey = $form->get(static::FIELD_PRODUCT_SET_KEY)->getData(); |
| 51 | 51 | |
@@ -147,10 +147,10 @@ discard block |
||
| 147 | 147 | |
| 148 | 148 | $builder->get(static::FIELD_WEIGHT) |
| 149 | 149 | ->addModelTransformer(new CallbackTransformer( |
| 150 | - function ($weight) { |
|
| 150 | + function($weight) { |
|
| 151 | 151 | return $weight; |
| 152 | 152 | }, |
| 153 | - function ($weight) { |
|
| 153 | + function($weight) { |
|
| 154 | 154 | return (int)$weight; |
| 155 | 155 | } |
| 156 | 156 | )); |
@@ -219,14 +219,14 @@ |
||
| 219 | 219 | $builder |
| 220 | 220 | ->get($fieldName) |
| 221 | 221 | ->addModelTransformer(new CallbackTransformer( |
| 222 | - function ($dateAsString) { |
|
| 222 | + function($dateAsString) { |
|
| 223 | 223 | if (!$dateAsString) { |
| 224 | 224 | return null; |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | return new DateTime($dateAsString); |
| 228 | 228 | }, |
| 229 | - function ($dateAsObject) { |
|
| 229 | + function($dateAsObject) { |
|
| 230 | 230 | if (!$dateAsObject) { |
| 231 | 231 | return null; |
| 232 | 232 | } |