@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | protected function addUtilTextService(Container $container): Container |
69 | 69 | { |
70 | - $container->set(static::SERVICE_UTIL_TEXT, function (Container $container) { |
|
70 | + $container->set(static::SERVICE_UTIL_TEXT, function(Container $container) { |
|
71 | 71 | return new MerchantToUtilTextServiceBridge($container->getLocator()->utilText()->service()); |
72 | 72 | }); |
73 | 73 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | protected function addMerchantPostCreatePlugins(Container $container): Container |
83 | 83 | { |
84 | - $container->set(static::PLUGINS_MERCHANT_POST_CREATE, function () { |
|
84 | + $container->set(static::PLUGINS_MERCHANT_POST_CREATE, function() { |
|
85 | 85 | return $this->getMerchantPostCreatePlugins(); |
86 | 86 | }); |
87 | 87 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | protected function addMerchantPostUpdatePlugins(Container $container): Container |
97 | 97 | { |
98 | - $container->set(static::PLUGINS_MERCHANT_POST_UPDATE, function () { |
|
98 | + $container->set(static::PLUGINS_MERCHANT_POST_UPDATE, function() { |
|
99 | 99 | return $this->getMerchantPostUpdatePlugins(); |
100 | 100 | }); |
101 | 101 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | protected function addMerchantExpanderPlugins(Container $container): Container |
111 | 111 | { |
112 | - $container->set(static::PLUGINS_MERCHANT_EXPANDER, function () { |
|
112 | + $container->set(static::PLUGINS_MERCHANT_EXPANDER, function() { |
|
113 | 113 | return $this->getMerchantExpanderPlugins(); |
114 | 114 | }); |
115 | 115 | |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | */ |
148 | 148 | protected function addUrlFacade(Container $container): Container |
149 | 149 | { |
150 | - $container->set(static::FACADE_URL, function (Container $container) { |
|
150 | + $container->set(static::FACADE_URL, function(Container $container) { |
|
151 | 151 | return new MerchantToUrlFacadeBridge($container->getLocator()->url()->facade()); |
152 | 152 | }); |
153 | 153 | |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | protected function addEventFacade(Container $container): Container |
163 | 163 | { |
164 | - $container->set(static::FACADE_EVENT, function (Container $container) { |
|
164 | + $container->set(static::FACADE_EVENT, function(Container $container) { |
|
165 | 165 | return new MerchantToEventFacadeBridge($container->getLocator()->event()->facade()); |
166 | 166 | }); |
167 | 167 | |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | */ |
176 | 176 | protected function addUrlPropelQuery(Container $container): Container |
177 | 177 | { |
178 | - $container->set(static::PROPEL_QUERY_URL, $container->factory(function () { |
|
178 | + $container->set(static::PROPEL_QUERY_URL, $container->factory(function() { |
|
179 | 179 | return SpyUrlQuery::create(); |
180 | 180 | })); |
181 | 181 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function addGlossaryFacade(Container $container): Container |
44 | 44 | { |
45 | - $container->set(static::FACADE_GLOSSARY, function (Container $container) { |
|
45 | + $container->set(static::FACADE_GLOSSARY, function(Container $container) { |
|
46 | 46 | return new MerchantProfileToGlossaryFacadeBridge($container->getLocator()->glossary()->facade()); |
47 | 47 | }); |
48 | 48 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function addLocaleFacade(Container $container): Container |
58 | 58 | { |
59 | - $container->set(static::FACADE_LOCALE, function (Container $container) { |
|
59 | + $container->set(static::FACADE_LOCALE, function(Container $container) { |
|
60 | 60 | return new MerchantProfileToLocaleFacadeBridge($container->getLocator()->locale()->facade()); |
61 | 61 | }); |
62 | 62 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | putenv(sprintf('%s=%s', static::SPRYKER_CODE_BUCKET, $codeBucket)); |
29 | 29 | |
30 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($oldEnv): void { |
|
30 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($oldEnv): void { |
|
31 | 31 | putenv(sprintf('%s=%s', static::SPRYKER_CODE_BUCKET, $oldEnv)); |
32 | 32 | }); |
33 | 33 | } |
@@ -74,13 +74,13 @@ discard block |
||
74 | 74 | { |
75 | 75 | $logger->info('Download node source'); |
76 | 76 | $process = $this->getProcess($this->getDownloadCommand()); |
77 | - $process->run(function ($type, $buffer) use ($logger) { |
|
77 | + $process->run(function($type, $buffer) use ($logger) { |
|
78 | 78 | $logger->info($buffer); |
79 | 79 | }); |
80 | 80 | |
81 | 81 | $logger->info('Install node.js'); |
82 | 82 | $process = $this->getProcess('sudo -i apt-get install -y nodejs'); |
83 | - $process->run(function ($type, $buffer) use ($logger) { |
|
83 | + $process->run(function($type, $buffer) use ($logger) { |
|
84 | 84 | $logger->info($buffer); |
85 | 85 | }); |
86 | 86 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $logger->info('Installing Yarn'); |
106 | 106 | |
107 | 107 | $process = $this->getProcess($this->getYarnInstallCommand()); |
108 | - $process->run(function ($type, $buffer) use ($logger) { |
|
108 | + $process->run(function($type, $buffer) use ($logger) { |
|
109 | 109 | $logger->info($buffer); |
110 | 110 | }); |
111 | 111 |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | |
46 | 46 | /** @var \Spryker\Zed\DataImport\Business\Model\DataImporterInterface $dataImporterStub */ |
47 | 47 | $dataImporterStub = Stub::makeEmpty(DataImporterInterface::class, [ |
48 | - 'import' => Expected::exactly(($isCalled ? 1 : 0), function () use ($dataImporterReportTransfer) { |
|
48 | + 'import' => Expected::exactly(($isCalled ? 1 : 0), function() use ($dataImporterReportTransfer) { |
|
49 | 49 | return $dataImporterReportTransfer; |
50 | 50 | }), |
51 | - 'getImportType' => function () use ($importType) { |
|
51 | + 'getImportType' => function() use ($importType) { |
|
52 | 52 | return $importType; |
53 | 53 | }, |
54 | 54 | ]); |
@@ -78,13 +78,13 @@ discard block |
||
78 | 78 | |
79 | 79 | /** @var \Spryker\Zed\DataImport\Business\Model\DataImporterInterface $dataImporterStub */ |
80 | 80 | $dataImporterStub = Stub::makeEmpty(DataImporter::class, [ |
81 | - 'import' => Expected::exactly(($isCalled ? 1 : 0), function () use ($dataImporterReportTransfer) { |
|
81 | + 'import' => Expected::exactly(($isCalled ? 1 : 0), function() use ($dataImporterReportTransfer) { |
|
82 | 82 | return $dataImporterReportTransfer; |
83 | 83 | }), |
84 | - 'getImportType' => function () use ($importType) { |
|
84 | + 'getImportType' => function() use ($importType) { |
|
85 | 85 | return $importType; |
86 | 86 | }, |
87 | - 'getImportGroup' => function () use ($importGroup) { |
|
87 | + 'getImportGroup' => function() use ($importGroup) { |
|
88 | 88 | return $importGroup; |
89 | 89 | }, |
90 | 90 | ]); |
@@ -112,10 +112,10 @@ discard block |
||
112 | 112 | |
113 | 113 | /** @var \Spryker\Zed\DataImport\Dependency\Plugin\DataImportPluginInterface $dataImporterPluginStub */ |
114 | 114 | $dataImporterPluginStub = Stub::makeEmpty(DataImportPluginInterface::class, [ |
115 | - 'import' => Expected::exactly(($isCalled ? 1 : 0), function () use ($dataImporterReportTransfer) { |
|
115 | + 'import' => Expected::exactly(($isCalled ? 1 : 0), function() use ($dataImporterReportTransfer) { |
|
116 | 116 | return $dataImporterReportTransfer; |
117 | 117 | }), |
118 | - 'getImportType' => function () use ($importType) { |
|
118 | + 'getImportType' => function() use ($importType) { |
|
119 | 119 | return $importType; |
120 | 120 | }, |
121 | 121 | ]); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | public function getFailingDataImportStepMock(): DataImportStepInterface |
143 | 143 | { |
144 | - $executeCallback = function (): void { |
|
144 | + $executeCallback = function(): void { |
|
145 | 145 | throw new DataImportException('ExceptionMessage'); |
146 | 146 | }; |
147 | 147 | /** @var \Spryker\Zed\DataImport\Business\Model\DataImportStep\DataImportStepInterface $dataSetStub */ |
@@ -45,7 +45,7 @@ |
||
45 | 45 | */ |
46 | 46 | public function update(StoreRelationTransfer $storeRelationTransfer): void |
47 | 47 | { |
48 | - $this->getTransactionHandler()->handleTransaction(function () use ($storeRelationTransfer) { |
|
48 | + $this->getTransactionHandler()->handleTransaction(function() use ($storeRelationTransfer) { |
|
49 | 49 | $this->executeUpdateTransaction($storeRelationTransfer); |
50 | 50 | }); |
51 | 51 | } |
@@ -65,7 +65,7 @@ |
||
65 | 65 | { |
66 | 66 | $this->assertProductLabel($productLabelTransfer); |
67 | 67 | |
68 | - $this->getTransactionHandler()->handleTransaction(function () use ($productLabelTransfer) { |
|
68 | + $this->getTransactionHandler()->handleTransaction(function() use ($productLabelTransfer) { |
|
69 | 69 | $this->executeCreateTransaction($productLabelTransfer); |
70 | 70 | }); |
71 | 71 | } |
@@ -88,7 +88,7 @@ |
||
88 | 88 | { |
89 | 89 | $this->assertProductLabel($productLabelTransfer); |
90 | 90 | |
91 | - $this->getTransactionHandler()->handleTransaction(function () use ($productLabelTransfer) { |
|
91 | + $this->getTransactionHandler()->handleTransaction(function() use ($productLabelTransfer) { |
|
92 | 92 | $this->executeUpdateTransaction($productLabelTransfer); |
93 | 93 | }); |
94 | 94 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $productAbstractLabelTransfer = (new ProductAbstractLabelStorageBuilder($seedData))->build(); |
44 | 44 | $this->persistProductAbstractLabelStorage($productAbstractLabelTransfer); |
45 | 45 | |
46 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($productAbstractLabelTransfer): void { |
|
46 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($productAbstractLabelTransfer): void { |
|
47 | 47 | $this->cleanupProductAbstractLabelStorage($productAbstractLabelTransfer); |
48 | 48 | }); |
49 | 49 |