@@ -82,7 +82,7 @@ |
||
82 | 82 | */ |
83 | 83 | protected function installKeysAndTranslations(array $translations) |
84 | 84 | { |
85 | - return $this->getTransactionHandler()->handleTransaction(function () use ($translations): array { |
|
85 | + return $this->getTransactionHandler()->handleTransaction(function() use ($translations): array { |
|
86 | 86 | return $this->executeInstallKeysAndTranslationsTransaction($translations); |
87 | 87 | }); |
88 | 88 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | { |
52 | 52 | $transferDirectory = $this->getVirtualDirectory(['transfer' => ['foo.transfer.xml' => 'content']]); |
53 | 53 | |
54 | - $this->mockConfigMethod('getSourceDirectories', function () use ($transferDirectory) { |
|
54 | + $this->mockConfigMethod('getSourceDirectories', function() use ($transferDirectory) { |
|
55 | 55 | return [$transferDirectory . '/transfer']; |
56 | 56 | }); |
57 | 57 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | { |
69 | 69 | $entityTransferDirectory = $this->getVirtualDirectory(['entity-transfer' => ['foo.schema.xml' => 'content']]); |
70 | 70 | |
71 | - $this->mockConfigMethod('getEntitiesSourceDirectories', function () use ($entityTransferDirectory) { |
|
71 | + $this->mockConfigMethod('getEntitiesSourceDirectories', function() use ($entityTransferDirectory) { |
|
72 | 72 | return [$entityTransferDirectory . '/entity-transfer']; |
73 | 73 | }); |
74 | 74 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | { |
86 | 86 | $dataBuilderDirectory = $this->getVirtualDirectory(['data-builder' => ['foo.databuilder.xml' => 'content']]); |
87 | 87 | |
88 | - $this->mockConfigMethod('getDataBuildersSourceDirectories', function () use ($dataBuilderDirectory) { |
|
88 | + $this->mockConfigMethod('getDataBuildersSourceDirectories', function() use ($dataBuilderDirectory) { |
|
89 | 89 | return [$dataBuilderDirectory . '/data-builder']; |
90 | 90 | }); |
91 | 91 | |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | */ |
228 | 228 | protected function getTransferBusinessFactory(): TransferBusinessFactory |
229 | 229 | { |
230 | - $this->mockConfigMethod('getClassTargetDirectory', function () { |
|
230 | + $this->mockConfigMethod('getClassTargetDirectory', function() { |
|
231 | 231 | return $this->getTransferDestinationUrl(); |
232 | 232 | }); |
233 | 233 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | $builder->add(static::FIELD_STOCKS, Select2ComboBoxType::class, [ |
48 | 48 | 'choices' => $options[static::FIELD_STOCKS], |
49 | - 'choice_value' => function (StockTransfer $stockTransfer) { |
|
49 | + 'choice_value' => function(StockTransfer $stockTransfer) { |
|
50 | 50 | return $stockTransfer->getIdStock(); |
51 | 51 | }, |
52 | 52 | 'choice_label' => StockTransfer::NAME, |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | $merchantStockTransfer->setIdMerchantStock($merchantStockEntity->getIdMerchantStock()); |
36 | 36 | |
37 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($merchantStockEntity): void { |
|
37 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($merchantStockEntity): void { |
|
38 | 38 | $this->cleanupMerchantStock($merchantStockEntity); |
39 | 39 | }); |
40 | 40 |
@@ -123,7 +123,7 @@ |
||
123 | 123 | $this->info('Run command: ' . $command); |
124 | 124 | $process = new Process(explode(' ', $command), APPLICATION_ROOT_DIR); |
125 | 125 | $process->setTimeout(null); |
126 | - $process->run(function ($type, $buffer) { |
|
126 | + $process->run(function($type, $buffer) { |
|
127 | 127 | echo $buffer; |
128 | 128 | }); |
129 | 129 |
@@ -93,7 +93,7 @@ |
||
93 | 93 | |
94 | 94 | Example: |
95 | 95 | - code:npm --build-all will build the client resources for the core, the project Zed and the project Yves code |
96 | -EOM; |
|
96 | +eom; |
|
97 | 97 | $this->setHelp($help); |
98 | 98 | |
99 | 99 | $this->addOption( |
@@ -121,7 +121,7 @@ |
||
121 | 121 | $matchesTrimmed[] = trim($item); |
122 | 122 | } |
123 | 123 | |
124 | - $matchesFiltered = array_filter($matchesTrimmed, function ($match) { |
|
124 | + $matchesFiltered = array_filter($matchesTrimmed, function($match) { |
|
125 | 125 | return (bool)strlen($match); |
126 | 126 | }); |
127 | 127 | if (!$matchesFiltered) { |
@@ -74,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | $resolver->setDefaults([ |
76 | 76 | 'validation_groups' => new GroupSequence([ |
77 | - static::GROUP_DEFAULT, |
|
77 | + static::GROUP_DEFAULT, |
|
78 | 78 | static::GROUP_AFTER, |
79 | 79 | ]), |
80 | 80 | 'constraints' => [ |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $productRelationTransfer->requireProductRelationType() |
70 | 70 | ->requireProductRelationKey(); |
71 | 71 | |
72 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productRelationTransfer) { |
|
72 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productRelationTransfer) { |
|
73 | 73 | return $this->executeCreateProductRelationTransaction($productRelationTransfer); |
74 | 74 | }); |
75 | 75 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | public function deleteProductRelation(int $idProductRelation): ProductRelationResponseTransfer |
61 | 61 | { |
62 | - return $this->getTransactionHandler()->handleTransaction(function () use ($idProductRelation) { |
|
62 | + return $this->getTransactionHandler()->handleTransaction(function() use ($idProductRelation) { |
|
63 | 63 | return $this->executeDeleteProductRelationTransaction($idProductRelation); |
64 | 64 | }); |
65 | 65 | } |