@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | public function putStream($filesystemName, $path, $resource, array $config = []) |
| 40 | 40 | { |
| 41 | - $this->handleStreamOperation(function () use ($filesystemName, $path, $resource, $config) { |
|
| 41 | + $this->handleStreamOperation(function() use ($filesystemName, $path, $resource, $config) { |
|
| 42 | 42 | return $this->filesystemProvider |
| 43 | 43 | ->getFilesystemByName($filesystemName) |
| 44 | 44 | ->putStream($path, $resource, $config); |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public function readStream($filesystemName, $path) |
| 55 | 55 | { |
| 56 | - return $this->handleStreamOperation(function () use ($filesystemName, $path) { |
|
| 56 | + return $this->handleStreamOperation(function() use ($filesystemName, $path) { |
|
| 57 | 57 | return $this->filesystemProvider |
| 58 | 58 | ->getFilesystemByName($filesystemName) |
| 59 | 59 | ->readStream($path); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | public function updateStream($filesystemName, $path, $resource, array $config = []) |
| 72 | 72 | { |
| 73 | - $this->handleStreamOperation(function () use ($filesystemName, $path, $resource, $config) { |
|
| 73 | + $this->handleStreamOperation(function() use ($filesystemName, $path, $resource, $config) { |
|
| 74 | 74 | return $this->filesystemProvider |
| 75 | 75 | ->getFilesystemByName($filesystemName) |
| 76 | 76 | ->updateStream($path, $resource, $config); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | public function writeStream($filesystemName, $path, $resource, array $config = []) |
| 89 | 89 | { |
| 90 | - $this->handleStreamOperation(function () use ($filesystemName, $path, $resource, $config) { |
|
| 90 | + $this->handleStreamOperation(function() use ($filesystemName, $path, $resource, $config) { |
|
| 91 | 91 | return $this->filesystemProvider |
| 92 | 92 | ->getFilesystemByName($filesystemName) |
| 93 | 93 | ->writeStream($path, $resource, $config); |
@@ -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 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | ); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - $this->handleDatabaseTransaction(function () use ($productRelationEntity) { |
|
| 64 | + $this->handleDatabaseTransaction(function() use ($productRelationEntity) { |
|
| 65 | 65 | $this->executeActivateRelationTransaction($productRelationEntity); |
| 66 | 66 | }); |
| 67 | 67 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | ); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - $this->handleDatabaseTransaction(function () use ($productRelationEntity) { |
|
| 102 | + $this->handleDatabaseTransaction(function() use ($productRelationEntity) { |
|
| 103 | 103 | $this->executeDeactivateRelationTransaction($productRelationEntity); |
| 104 | 104 | }); |
| 105 | 105 | } |
@@ -32,9 +32,9 @@ |
||
| 32 | 32 | $alias = Config::get(DevelopmentConstants::COMPOSER_BRANCH_ALIAS); |
| 33 | 33 | |
| 34 | 34 | $composerJson[static::KEY_EXTRA] = [ |
| 35 | - static::KEY_BRANCH_ALIAS => [ |
|
| 36 | - static::KEY_MASTER_BRANCH => $alias, |
|
| 37 | - ], |
|
| 35 | + static::KEY_BRANCH_ALIAS => [ |
|
| 36 | + static::KEY_MASTER_BRANCH => $alias, |
|
| 37 | + ], |
|
| 38 | 38 | ]; |
| 39 | 39 | |
| 40 | 40 | return $composerJson; |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | */ |
| 172 | 172 | protected function filterBundles(array $dependencies) |
| 173 | 173 | { |
| 174 | - $callback = function ($bundle) { |
|
| 174 | + $callback = function($bundle) { |
|
| 175 | 175 | return !in_array($bundle, $this->bundlesToFilter); |
| 176 | 176 | }; |
| 177 | 177 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | protected function filter(array $bundlesDependencies) |
| 85 | 85 | { |
| 86 | - $callback = function (array $bundleDependency) { |
|
| 86 | + $callback = function(array $bundleDependency) { |
|
| 87 | 87 | return ($bundleDependency[DependencyTree::META_FOREIGN_BUNDLE] !== 'external'); |
| 88 | 88 | }; |
| 89 | 89 | $bundlesDependencies = array_filter($bundlesDependencies, $callback); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | $this->buildIndirectIncomingDependencies($bundle, $indirectIncomingDependencies); |
| 137 | 137 | |
| 138 | 138 | $indirectIncomingDependencies = $indirectIncomingDependencies->getArrayCopy(); |
| 139 | - $callback = function ($bundle) use ($incomingBundles) { |
|
| 139 | + $callback = function($bundle) use ($incomingBundles) { |
|
| 140 | 140 | return !in_array($bundle, $incomingBundles); |
| 141 | 141 | }; |
| 142 | 142 | $indirectIncomingDependencies = array_filter($indirectIncomingDependencies, $callback); |
@@ -55,10 +55,10 @@ discard block |
||
| 55 | 55 | public function queryBundledProductBySku($sku) |
| 56 | 56 | { |
| 57 | 57 | return $this->getFactory() |
| 58 | - ->createProductBundleQuery() |
|
| 59 | - ->useSpyProductRelatedByFkBundledProductQuery() |
|
| 60 | - ->filterBySku($sku) |
|
| 61 | - ->endUse(); |
|
| 58 | + ->createProductBundleQuery() |
|
| 59 | + ->useSpyProductRelatedByFkBundledProductQuery() |
|
| 60 | + ->filterBySku($sku) |
|
| 61 | + ->endUse(); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -85,8 +85,8 @@ discard block |
||
| 85 | 85 | public function queryBundleByIdProductBundle($idProductBundle) |
| 86 | 86 | { |
| 87 | 87 | return $this->getFactory() |
| 88 | - ->createProductBundleQuery() |
|
| 89 | - ->filterByIdProductBundle($idProductBundle); |
|
| 88 | + ->createProductBundleQuery() |
|
| 89 | + ->filterByIdProductBundle($idProductBundle); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function saveOrder(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponse) |
| 31 | 31 | { |
| 32 | - $this->getFacade()->saveSalesOrderBundleItems($quoteTransfer, $checkoutResponse); |
|
| 32 | + $this->getFacade()->saveSalesOrderBundleItems($quoteTransfer, $checkoutResponse); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function check(CartChangeTransfer $cartChangeTransfer) |
| 29 | 29 | { |
| 30 | - return $this->getFacade()->preCheckCartAvailability($cartChangeTransfer); |
|
| 30 | + return $this->getFacade()->preCheckCartAvailability($cartChangeTransfer); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | } |