@@ -155,12 +155,14 @@ |
||
| 155 | 155 | foreach ($this->nestedBuilders as $builderInfo) { |
| 156 | 156 | list($name, $dependencyBuilder, $randomize) = $builderInfo; |
| 157 | 157 | |
| 158 | - if (!$randomize) { // add currently generated values |
|
| 158 | + if (!$randomize) { |
|
| 159 | +// add currently generated values |
|
| 159 | 160 | $dependencyBuilder->seed($this->seedData); |
| 160 | 161 | } |
| 161 | 162 | $nestedTransfer = $dependencyBuilder->build(); |
| 162 | 163 | |
| 163 | - if (!$randomize) { // reuse generated values from nested objects |
|
| 164 | + if (!$randomize) { |
|
| 165 | +// reuse generated values from nested objects |
|
| 164 | 166 | $this->seedData = array_merge($this->seedData, $dependencyBuilder->getSeedData()); |
| 165 | 167 | } |
| 166 | 168 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | public function log($message) |
| 47 | 47 | { |
| 48 | 48 | if (!$this->eventConfig->isLoggerActivated()) { |
| 49 | - return; |
|
| 49 | + return; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | $this->getLogger($this->loggerConfig) |
@@ -31,19 +31,19 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function provideBusinessLayerDependencies(Container $container) |
| 33 | 33 | { |
| 34 | - $container[static::EVENT_LISTENERS] = function (Container $container) { |
|
| 34 | + $container[static::EVENT_LISTENERS] = function(Container $container) { |
|
| 35 | 35 | return $this->getEventListenerCollection(); |
| 36 | 36 | }; |
| 37 | 37 | |
| 38 | - $container[static::EVENT_SUBSCRIBERS] = function (Container $container) { |
|
| 38 | + $container[static::EVENT_SUBSCRIBERS] = function(Container $container) { |
|
| 39 | 39 | return $this->getEventSubscriberCollection(); |
| 40 | 40 | }; |
| 41 | 41 | |
| 42 | - $container[static::CLIENT_QUEUE] = function (Container $container) { |
|
| 42 | + $container[static::CLIENT_QUEUE] = function(Container $container) { |
|
| 43 | 43 | return new EventToQueueBridge($container->getLocator()->queue()->client()); |
| 44 | 44 | }; |
| 45 | 45 | |
| 46 | - $container[static::SERVICE_UTIL_ENCODING] = function (Container $container) { |
|
| 46 | + $container[static::SERVICE_UTIL_ENCODING] = function(Container $container) { |
|
| 47 | 47 | return new EventToUtilEncoding($container->getLocator()->utilEncoding()->service()); |
| 48 | 48 | }; |
| 49 | 49 | |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function queryImageSetByProductAbstractId($idProductAbstract) |
| 32 | 32 | { |
| 33 | - return $this->productImageQueryContainer->queryImageSetByProductAbstractId($idProductAbstract); |
|
| 33 | + return $this->productImageQueryContainer->queryImageSetByProductAbstractId($idProductAbstract); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $productRelationTypeTransfer = $productRelationTransfer->getProductRelationType(); |
| 66 | 66 | |
| 67 | - return $this->handleDatabaseTransaction(function () use ($productRelationTransfer, $productRelationTypeTransfer) { |
|
| 67 | + return $this->handleDatabaseTransaction(function() use ($productRelationTransfer, $productRelationTypeTransfer) { |
|
| 68 | 68 | return $this->executeSaveRelationTransaction($productRelationTransfer, $productRelationTypeTransfer); |
| 69 | 69 | }); |
| 70 | 70 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | ); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - $this->handleDatabaseTransaction(function () use ($productRelationTransfer, $productRelationEntity) { |
|
| 119 | + $this->handleDatabaseTransaction(function() use ($productRelationTransfer, $productRelationEntity) { |
|
| 120 | 120 | $this->executeUpdateRelationTransaction($productRelationTransfer, $productRelationEntity); |
| 121 | 121 | }); |
| 122 | 122 | } |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | ); |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | - $deleted = $this->handleDatabaseTransaction(function () use ($productRelationEntity) { |
|
| 174 | + $deleted = $this->handleDatabaseTransaction(function() use ($productRelationEntity) { |
|
| 175 | 175 | return $this->executeDeleteProductRelationTransaction($productRelationEntity); |
| 176 | 176 | }); |
| 177 | 177 | |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | - * @return array |
|
| 149 | + * @return string[] |
|
| 150 | 150 | */ |
| 151 | 151 | public function getIgnorableDependencies() |
| 152 | 152 | { |
@@ -27,13 +27,13 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function getProductRelationsByIdProductAbstract($idProductAbstract) |
| 29 | 29 | { |
| 30 | - $localeName = $this->getFactory() |
|
| 31 | - ->getLocaleClient() |
|
| 32 | - ->getCurrentLocale(); |
|
| 30 | + $localeName = $this->getFactory() |
|
| 31 | + ->getLocaleClient() |
|
| 32 | + ->getCurrentLocale(); |
|
| 33 | 33 | |
| 34 | - return $this->getFactory() |
|
| 35 | - ->createProductRelationStorage($localeName) |
|
| 36 | - ->getAll($idProductAbstract); |
|
| 34 | + return $this->getFactory() |
|
| 35 | + ->createProductRelationStorage($localeName) |
|
| 36 | + ->getAll($idProductAbstract); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | } |
@@ -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 | |
@@ -802,7 +802,7 @@ |
||
| 802 | 802 | |
| 803 | 803 | /** |
| 804 | 804 | * @param \Orm\Zed\Sales\Persistence\SpySalesOrderItem $orderItem |
| 805 | - * @param array $processes |
|
| 805 | + * @param ProcessInterface[] $processes |
|
| 806 | 806 | * @param array $sourceStateBuffer |
| 807 | 807 | * @param \Spryker\Zed\Oms\Business\OrderStateMachine\TimeoutInterface $timeoutModel |
| 808 | 808 | * @param \Spryker\Zed\Oms\Business\Util\TransitionLogInterface $log |
@@ -785,7 +785,7 @@ |
||
| 785 | 785 | $timeoutModel = clone $this->timeout; |
| 786 | 786 | |
| 787 | 787 | foreach ($orderItems as $orderItem) { |
| 788 | - $this->handleDatabaseTransaction(function () use ($orderItem, $processes, $sourceStateBuffer, $timeoutModel, $log, $currentTime) { |
|
| 788 | + $this->handleDatabaseTransaction(function() use ($orderItem, $processes, $sourceStateBuffer, $timeoutModel, $log, $currentTime) { |
|
| 789 | 789 | $this->executeSaveOrderItemTransaction( |
| 790 | 790 | $orderItem, |
| 791 | 791 | $processes, |