@@ -40,7 +40,7 @@ |
||
40 | 40 | public function register(Application $app) |
41 | 41 | { |
42 | 42 | $app['twig.global.variables'] = $app->share( |
43 | - $app->extend('twig.global.variables', function (array $variables) { |
|
43 | + $app->extend('twig.global.variables', function(array $variables) { |
|
44 | 44 | $variables['username'] = $this->getUsername(); |
45 | 45 | |
46 | 46 | return $variables; |
@@ -74,7 +74,7 @@ |
||
74 | 74 | $resolver->setDefaults([ |
75 | 75 | 'data_class' => NavigationNodeLocalizedAttributesTransfer::class, |
76 | 76 | 'required' => false, |
77 | - 'validation_groups' => function (FormInterface $form) { |
|
77 | + 'validation_groups' => function(FormInterface $form) { |
|
78 | 78 | $nodeType = $form->getParent() |
79 | 79 | ->getParent() |
80 | 80 | ->get(NavigationNodeFormType::FIELD_NODE_TYPE) |
@@ -73,7 +73,7 @@ |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | foreach ($stateMachineItems as $stateMachineItemTransfer) { |
76 | - $this->handleDatabaseTransaction(function () use ($processes, $sourceStates, $stateMachineItemTransfer) { |
|
76 | + $this->handleDatabaseTransaction(function() use ($processes, $sourceStates, $stateMachineItemTransfer) { |
|
77 | 77 | $this->executeUpdateItemStateTransaction($processes, $sourceStates, $stateMachineItemTransfer); |
78 | 78 | }); |
79 | 79 | } |
@@ -76,7 +76,7 @@ |
||
76 | 76 | |
77 | 77 | $response = $this->getFacade()->drawProcess($stateMachineProcessTransfer, $highlightState, $format, $fontSize); |
78 | 78 | |
79 | - $callback = function () use ($response) { |
|
79 | + $callback = function() use ($response) { |
|
80 | 80 | echo $response; |
81 | 81 | }; |
82 | 82 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | "1": "one", |
30 | 30 | "2": "two" |
31 | 31 | } |
32 | -JSON; |
|
32 | +json; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * @var array |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function fillNullValues($hasQueryParameter, array $mca) |
44 | 44 | { |
45 | - $mapCallback = function ($value) use ($hasQueryParameter) { |
|
45 | + $mapCallback = function($value) use ($hasQueryParameter) { |
|
46 | 46 | return ($value) ?: (($hasQueryParameter) ? 'index' : null); |
47 | 47 | }; |
48 | 48 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | protected function removeNullValues(array $mca) |
59 | 59 | { |
60 | - $filterCallback = function ($value) { |
|
60 | + $filterCallback = function($value) { |
|
61 | 61 | return $value !== null; |
62 | 62 | }; |
63 | 63 |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | $discountEntity = $this->createDiscountEntity(); |
65 | 65 | $this->hydrateDiscountEntity($discountConfiguratorTransfer, $discountEntity); |
66 | 66 | |
67 | - $this->handleDatabaseTransaction(function () use ($discountEntity, $discountConfiguratorTransfer) { |
|
67 | + $this->handleDatabaseTransaction(function() use ($discountEntity, $discountConfiguratorTransfer) { |
|
68 | 68 | $this->executeSaveDiscountTransaction($discountEntity, $discountConfiguratorTransfer); |
69 | 69 | }); |
70 | 70 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | ); |
123 | 123 | } |
124 | 124 | |
125 | - $affectedRows = $this->handleDatabaseTransaction(function () use ($discountEntity, $discountConfiguratorTransfer) { |
|
125 | + $affectedRows = $this->handleDatabaseTransaction(function() use ($discountEntity, $discountConfiguratorTransfer) { |
|
126 | 126 | return $this->executeUpdateDiscountTransaction($discountEntity, $discountConfiguratorTransfer); |
127 | 127 | }); |
128 | 128 |
@@ -136,7 +136,7 @@ |
||
136 | 136 | return $productLabelCollection; |
137 | 137 | } |
138 | 138 | |
139 | - usort($productLabelCollection, function ( |
|
139 | + usort($productLabelCollection, function( |
|
140 | 140 | StorageProductLabelTransfer $productLabelTransferA, |
141 | 141 | StorageProductLabelTransfer $productLabelTransferB |
142 | 142 | ) { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function save(ArrayObject $localizedAttributesTransferCollection) |
50 | 50 | { |
51 | - $this->handleDatabaseTransaction(function () use ($localizedAttributesTransferCollection) { |
|
51 | + $this->handleDatabaseTransaction(function() use ($localizedAttributesTransferCollection) { |
|
52 | 52 | $this->executeSetTransaction($localizedAttributesTransferCollection); |
53 | 53 | }); |
54 | 54 | } |