@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | $dataTable |
| 162 | 162 | ->add('picture', TextColumn::class, [ |
| 163 | 163 | 'label' => '', |
| 164 | - 'render' => function ($value, Part $context) { |
|
| 164 | + 'render' => function($value, Part $context) { |
|
| 165 | 165 | $preview_attachment = $this->previewGenerator->getTablePreviewAttachment($context); |
| 166 | 166 | if (null === $preview_attachment) { |
| 167 | 167 | return ''; |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | ]) |
| 179 | 179 | ->add('name', TextColumn::class, [ |
| 180 | 180 | 'label' => $this->translator->trans('part.table.name'), |
| 181 | - 'render' => function ($value, Part $context) { |
|
| 181 | + 'render' => function($value, Part $context) { |
|
| 182 | 182 | return sprintf( |
| 183 | 183 | '<a href="%s">%s</a>', |
| 184 | 184 | $this->urlGenerator->infoURL($context), |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | ]) |
| 208 | 208 | ->add('storelocation', TextColumn::class, [ |
| 209 | 209 | 'label' => $this->translator->trans('part.table.storeLocations'), |
| 210 | - 'render' => function ($value, Part $context) { |
|
| 210 | + 'render' => function($value, Part $context) { |
|
| 211 | 211 | $tmp = []; |
| 212 | 212 | foreach ($context->getPartLots() as $lot) { |
| 213 | 213 | //Ignore lots without storelocation |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | ]) |
| 227 | 227 | ->add('amount', TextColumn::class, [ |
| 228 | 228 | 'label' => $this->translator->trans('part.table.amount'), |
| 229 | - 'render' => function ($value, Part $context) { |
|
| 229 | + 'render' => function($value, Part $context) { |
|
| 230 | 230 | $amount = $context->getAmountSum(); |
| 231 | 231 | |
| 232 | 232 | return $this->amountFormatter->format($amount, $context->getPartUnit()); |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | ->add('minamount', TextColumn::class, [ |
| 236 | 236 | 'label' => $this->translator->trans('part.table.minamount'), |
| 237 | 237 | 'visible' => false, |
| 238 | - 'render' => function ($value, Part $context) { |
|
| 238 | + 'render' => function($value, Part $context) { |
|
| 239 | 239 | return $this->amountFormatter->format($value, $context->getPartUnit()); |
| 240 | 240 | }, |
| 241 | 241 | ]) |
@@ -298,12 +298,12 @@ discard block |
||
| 298 | 298 | |
| 299 | 299 | ->addOrderBy('name') |
| 300 | 300 | ->createAdapter(CustomORMAdapter::class, [ |
| 301 | - 'query' => function (QueryBuilder $builder) { |
|
| 301 | + 'query' => function(QueryBuilder $builder) { |
|
| 302 | 302 | $this->getQuery($builder); |
| 303 | 303 | }, |
| 304 | 304 | 'entity' => Part::class, |
| 305 | 305 | 'criteria' => [ |
| 306 | - function (QueryBuilder $builder) use ($options) { |
|
| 306 | + function(QueryBuilder $builder) use ($options) { |
|
| 307 | 307 | $this->buildCriteria($builder, $options); |
| 308 | 308 | }, |
| 309 | 309 | new SearchCriteriaProvider(), |