@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $resolver->setRequired(static::DATASET_HAS_DATA); |
69 | 69 | $resolver->setDefaults([ |
70 | 70 | static::OPTION_DATA_CLASS => DatasetTransfer::class, |
71 | - 'validation_groups' => function (FormInterface $form) { |
|
71 | + 'validation_groups' => function(FormInterface $form) { |
|
72 | 72 | $defaultData = $form->getConfig()->getData()->toArray(); |
73 | 73 | $submittedData = $form->getData()->toArray(); |
74 | 74 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $constraints = $this->getFieldDefaultConstraints(); |
108 | 108 | |
109 | 109 | $constraints[] = new Callback([ |
110 | - 'callback' => function ($name, ExecutionContextInterface $contextInterface): void { |
|
110 | + 'callback' => function($name, ExecutionContextInterface $contextInterface): void { |
|
111 | 111 | if ($this->getFacade()->existsDatasetByName((new DatasetTransfer())->setName($name))) { |
112 | 112 | $contextInterface->addViolation('The name already exists.'); |
113 | 113 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function updateIsActiveDataset(DatasetTransfer $datasetTransfer): void |
36 | 36 | { |
37 | - $this->handleDatabaseTransaction(function () use ($datasetTransfer): void { |
|
37 | + $this->handleDatabaseTransaction(function() use ($datasetTransfer): void { |
|
38 | 38 | $datasetEntity = $this->findDatasetById($datasetTransfer->requireIdDataset()->getIdDataset()); |
39 | 39 | $datasetEntity->setIsActive($datasetTransfer->requireIsActive()->getIsActive()); |
40 | 40 | $datasetEntity->save(); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function delete(DatasetTransfer $datasetTransfer): void |
50 | 50 | { |
51 | - $this->handleDatabaseTransaction(function () use ($datasetTransfer): void { |
|
51 | + $this->handleDatabaseTransaction(function() use ($datasetTransfer): void { |
|
52 | 52 | $datasetEntity = $this->findDatasetById($datasetTransfer->requireIdDataset()->getIdDataset()); |
53 | 53 | $datasetEntity->delete(); |
54 | 54 | }); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function saveDataset(DatasetTransfer $datasetTransfer): void |
63 | 63 | { |
64 | - $this->handleDatabaseTransaction(function () use ($datasetTransfer): void { |
|
64 | + $this->handleDatabaseTransaction(function() use ($datasetTransfer): void { |
|
65 | 65 | if ($this->checkDatasetExists($datasetTransfer)) { |
66 | 66 | $this->update($datasetTransfer); |
67 | 67 | } else { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | protected function create(DatasetTransfer $datasetTransfer): void |
91 | 91 | { |
92 | - $this->handleDatabaseTransaction(function () use ($datasetTransfer): void { |
|
92 | + $this->handleDatabaseTransaction(function() use ($datasetTransfer): void { |
|
93 | 93 | $datasetEntity = new SpyDataset(); |
94 | 94 | $datasetEntity->fromArray($datasetTransfer->toArray()); |
95 | 95 | $datasetEntity->save(); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | protected function updateDataset(SpyDataset $datasetEntity, DatasetTransfer $datasetTransfer): void |
109 | 109 | { |
110 | - $this->handleDatabaseTransaction(function () use ($datasetEntity, $datasetTransfer): void { |
|
110 | + $this->handleDatabaseTransaction(function() use ($datasetEntity, $datasetTransfer): void { |
|
111 | 111 | $datasetEntity->fromArray($datasetTransfer->toArray()); |
112 | 112 | if ($datasetTransfer->getDatasetRowColumnValues()->count()) { |
113 | 113 | $this->removeDatasetRowColumnValues($datasetEntity); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function install(): void |
44 | 44 | { |
45 | - $this->getTransactionHandler()->handleTransaction(function () { |
|
45 | + $this->getTransactionHandler()->handleTransaction(function() { |
|
46 | 46 | $this->executeInstallTransaction(); |
47 | 47 | }); |
48 | 48 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function install(): void |
44 | 44 | { |
45 | - $this->getTransactionHandler()->handleTransaction(function () { |
|
45 | + $this->getTransactionHandler()->handleTransaction(function() { |
|
46 | 46 | $this->executeInstallTransaction(); |
47 | 47 | }); |
48 | 48 | } |
@@ -11,11 +11,11 @@ |
||
11 | 11 | |
12 | 12 | interface ProductDiscontinuedProductLabelConnectorToProductLabelFacadeInterface |
13 | 13 | { |
14 | - /** |
|
15 | - * @param \Generated\Shared\Transfer\ProductLabelTransfer $productLabelTransfer |
|
16 | - * |
|
17 | - * @return void |
|
18 | - */ |
|
14 | + /** |
|
15 | + * @param \Generated\Shared\Transfer\ProductLabelTransfer $productLabelTransfer |
|
16 | + * |
|
17 | + * @return void |
|
18 | + */ |
|
19 | 19 | public function createLabel(ProductLabelTransfer $productLabelTransfer); |
20 | 20 | |
21 | 21 | /** |
@@ -145,7 +145,7 @@ |
||
145 | 145 | protected function prepareEncoderMocks(): EncoderMatcherInterface |
146 | 146 | { |
147 | 147 | $encoderMock = $this->createEncoderMock(); |
148 | - $encoderMock->method('encode')->willReturnCallback(function (array $data) { |
|
148 | + $encoderMock->method('encode')->willReturnCallback(function(array $data) { |
|
149 | 149 | return json_encode($data); |
150 | 150 | }); |
151 | 151 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | $formatResponseHeaderPlugin->method('format') |
42 | 42 | ->willReturnCallback( |
43 | - function ( |
|
43 | + function( |
|
44 | 44 | Response $httpResponse, |
45 | 45 | RestResponseInterface $restResponse, |
46 | 46 | RestRequestInterface $restRequest |
@@ -30,7 +30,7 @@ |
||
30 | 30 | [$controller, $action] = $currentController; |
31 | 31 | |
32 | 32 | $request = $event->getRequest(); |
33 | - $apiController = function () use ($controller, $action, $request) { |
|
33 | + $apiController = function() use ($controller, $action, $request) { |
|
34 | 34 | return $this->filter($controller, $action, $request); |
35 | 35 | }; |
36 | 36 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | protected function setControllerResolver() |
61 | 61 | { |
62 | - $this->application['resolver'] = $this->application->share(function () { |
|
62 | + $this->application['resolver'] = $this->application->share(function() { |
|
63 | 63 | return new GlueFragmentControllerResolver($this->application); |
64 | 64 | }); |
65 | 65 | } |