@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | */ |
54 | 54 | protected function addConfigProfilerCollector(Application $app) |
55 | 55 | { |
56 | - $app->extend('data_collectors', function ($collectors) { |
|
57 | - $collectors[ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER] = function () { |
|
56 | + $app->extend('data_collectors', function($collectors) { |
|
57 | + $collectors[ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER] = function() { |
|
58 | 58 | return ConfigProfilerCollectorFactory::createConfigProfilerCollector(); |
59 | 59 | }; |
60 | 60 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | protected function addCollectorTemplates(Application $app) |
73 | 73 | { |
74 | - $app['data_collector.templates'] = $app->extend('data_collector.templates', function ($templates) { |
|
74 | + $app['data_collector.templates'] = $app->extend('data_collector.templates', function($templates) { |
|
75 | 75 | $templates[] = [ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER, '@Config/Collector/spryker_config_profiler.html.twig']; |
76 | 76 | |
77 | 77 | return $templates; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | protected function addPathToLoader(Application $app) |
117 | 117 | { |
118 | 118 | $loaderKey = $this->getLoaderKey(); |
119 | - $app[$loaderKey] = $app->extend($loaderKey, function (TwigFilesystemLoader $loader) { |
|
119 | + $app[$loaderKey] = $app->extend($loaderKey, function(TwigFilesystemLoader $loader) { |
|
120 | 120 | $pathToTemplates = $this->getPathToTemplates(); |
121 | 121 | if ($pathToTemplates && method_exists($loader, 'addPath')) { |
122 | 122 | $loader->addPath($pathToTemplates); |
@@ -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 |