@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $dataTable |
83 | 83 | ->add('picture', TextColumn::class, [ |
84 | 84 | 'label' => '', |
85 | - 'render' => function ($value, Part $context) { |
|
85 | + 'render' => function($value, Part $context) { |
|
86 | 86 | $preview_attachment = $this->previewGenerator->getTablePreviewAttachment($context); |
87 | 87 | if (null === $preview_attachment) { |
88 | 88 | return ''; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | ]) |
100 | 100 | ->add('name', TextColumn::class, [ |
101 | 101 | 'label' => $this->translator->trans('part.table.name'), |
102 | - 'render' => function ($value, Part $context) { |
|
102 | + 'render' => function($value, Part $context) { |
|
103 | 103 | return sprintf( |
104 | 104 | '<a href="%s">%s</a>', |
105 | 105 | $this->urlGenerator->infoURL($context), |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | ]) |
129 | 129 | ->add('storelocation', TextColumn::class, [ |
130 | 130 | 'label' => $this->translator->trans('part.table.storeLocations'), |
131 | - 'render' => function ($value, Part $context) { |
|
131 | + 'render' => function($value, Part $context) { |
|
132 | 132 | $tmp = []; |
133 | 133 | foreach ($context->getPartLots() as $lot) { |
134 | 134 | //Ignore lots without storelocation |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | ]) |
148 | 148 | ->add('amount', TextColumn::class, [ |
149 | 149 | 'label' => $this->translator->trans('part.table.amount'), |
150 | - 'render' => function ($value, Part $context) { |
|
150 | + 'render' => function($value, Part $context) { |
|
151 | 151 | $amount = $context->getAmountSum(); |
152 | 152 | |
153 | 153 | return $this->amountFormatter->format($amount, $context->getPartUnit()); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | ->add('minamount', TextColumn::class, [ |
157 | 157 | 'label' => $this->translator->trans('part.table.minamount'), |
158 | 158 | 'visible' => false, |
159 | - 'render' => function ($value, Part $context) { |
|
159 | + 'render' => function($value, Part $context) { |
|
160 | 160 | return $this->amountFormatter->format($value, $context->getPartUnit()); |
161 | 161 | }, |
162 | 162 | ]) |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | |
236 | 236 | $dataTable->createAdapter(ORMAdapter::class, [ |
237 | 237 | 'entity' => Part::class, |
238 | - 'query' => function (QueryBuilder $builder): void { |
|
238 | + 'query' => function(QueryBuilder $builder): void { |
|
239 | 239 | $this->getQuery($builder); |
240 | 240 | }, |
241 | 241 | ]); |