@@ -99,7 +99,7 @@ |
||
99 | 99 | } |
100 | 100 | |
101 | 101 | try { |
102 | - $merchantTransfer = $this->getTransactionHandler()->handleTransaction(function () use ($merchantTransfer) { |
|
102 | + $merchantTransfer = $this->getTransactionHandler()->handleTransaction(function() use ($merchantTransfer) { |
|
103 | 103 | return $this->executeUpdateTransaction($merchantTransfer); |
104 | 104 | }); |
105 | 105 | } catch (MerchantNotSavedException $merchantNotSavedException) { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $merchantResponseTransfer = $this->createMerchantResponseTransfer(); |
70 | 70 | |
71 | 71 | try { |
72 | - $merchantTransfer = $this->getTransactionHandler()->handleTransaction(function () use ($merchantTransfer) { |
|
72 | + $merchantTransfer = $this->getTransactionHandler()->handleTransaction(function() use ($merchantTransfer) { |
|
73 | 73 | return $this->executeCreateTransaction($merchantTransfer); |
74 | 74 | }); |
75 | 75 | } catch (MerchantNotSavedException $merchantNotSavedException) { |
@@ -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 | } |
@@ -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 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | parent::setUp(); |
42 | 42 | |
43 | - $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function (Container $container) { |
|
43 | + $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function(Container $container) { |
|
44 | 44 | return [ |
45 | 45 | $container->getLocator()->rabbitMq()->client()->createQueueAdapter(), |
46 | 46 | ]; |