@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | } |
281 | 281 | |
282 | 282 | if (Query::HYDRATE_ARRAY === $this->hydrationMode) { |
283 | - return '[' . implode('][', array_reverse($path)) . ']'; |
|
283 | + return '['.implode('][', array_reverse($path)).']'; |
|
284 | 284 | } else { |
285 | 285 | return implode('.', array_reverse($path)); |
286 | 286 | } |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | |
289 | 289 | protected function configureOptions(OptionsResolver $resolver) |
290 | 290 | { |
291 | - $providerNormalizer = function (Options $options, $value) { |
|
291 | + $providerNormalizer = function(Options $options, $value) { |
|
292 | 292 | return array_map([$this, 'normalizeProcessor'], (array) $value); |
293 | 293 | }; |
294 | 294 | |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | ->setDefaults([ |
297 | 297 | 'hydrate' => Query::HYDRATE_OBJECT, |
298 | 298 | 'query' => [], |
299 | - 'criteria' => function (Options $options) { |
|
299 | + 'criteria' => function(Options $options) { |
|
300 | 300 | return [new SearchCriteriaProvider()]; |
301 | 301 | }, |
302 | 302 | ]) |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $dataTable |
81 | 81 | ->add('picture', TextColumn::class, [ |
82 | 82 | 'label' => '', |
83 | - 'render' => function ($value, Part $context) { |
|
83 | + 'render' => function($value, Part $context) { |
|
84 | 84 | $preview_attachment = $this->previewGenerator->getTablePreviewAttachment($context); |
85 | 85 | if (null === $preview_attachment) { |
86 | 86 | return ''; |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | ]) |
98 | 98 | ->add('name', TextColumn::class, [ |
99 | 99 | 'label' => $this->translator->trans('part.table.name'), |
100 | - 'render' => function ($value, Part $context) { |
|
100 | + 'render' => function($value, Part $context) { |
|
101 | 101 | return sprintf( |
102 | 102 | '<a href="%s">%s</a>', |
103 | 103 | $this->urlGenerator->infoURL($context), |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | ]) |
127 | 127 | ->add('storelocation', TextColumn::class, [ |
128 | 128 | 'label' => $this->translator->trans('part.table.storeLocations'), |
129 | - 'render' => function ($value, Part $context) { |
|
129 | + 'render' => function($value, Part $context) { |
|
130 | 130 | $tmp = []; |
131 | 131 | foreach ($context->getPartLots() as $lot) { |
132 | 132 | //Ignore lots without storelocation |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | ]) |
146 | 146 | ->add('amount', TextColumn::class, [ |
147 | 147 | 'label' => $this->translator->trans('part.table.amount'), |
148 | - 'render' => function ($value, Part $context) { |
|
148 | + 'render' => function($value, Part $context) { |
|
149 | 149 | $amount = $context->getAmountSum(); |
150 | 150 | |
151 | 151 | return $this->amountFormatter->format($amount, $context->getPartUnit()); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | ->add('minamount', TextColumn::class, [ |
155 | 155 | 'label' => $this->translator->trans('part.table.minamount'), |
156 | 156 | 'visible' => false, |
157 | - 'render' => function ($value, Part $context) { |
|
157 | + 'render' => function($value, Part $context) { |
|
158 | 158 | return $this->amountFormatter->format($value, $context->getPartUnit()); |
159 | 159 | }, |
160 | 160 | ]) |
@@ -218,12 +218,12 @@ discard block |
||
218 | 218 | ->addOrderBy('name') |
219 | 219 | ->createAdapter(FetchJoinORMAdapter::class, [ |
220 | 220 | 'simple_total_query' => true, |
221 | - 'query' => function (QueryBuilder $builder): void { |
|
221 | + 'query' => function(QueryBuilder $builder): void { |
|
222 | 222 | $this->getQuery($builder); |
223 | 223 | }, |
224 | 224 | 'entity' => Part::class, |
225 | 225 | 'criteria' => [ |
226 | - function (QueryBuilder $builder) use ($options): void { |
|
226 | + function(QueryBuilder $builder) use ($options): void { |
|
227 | 227 | $this->buildCriteria($builder, $options); |
228 | 228 | }, |
229 | 229 | new SearchCriteriaProvider(), |