@@ -133,12 +133,12 @@ discard block |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | if (isset($options['tag'])) { |
136 | - $builder->andWhere('part.tags LIKE :tag')->setParameter('tag', '%' . $options['tag'] . '%'); |
|
136 | + $builder->andWhere('part.tags LIKE :tag')->setParameter('tag', '%'.$options['tag'].'%'); |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | if (isset($options['search'])) { |
140 | 140 | $builder->AndWhere('part.name LIKE :search')->orWhere('part.description LIKE :search')->orWhere('part.comment LIKE :search') |
141 | - ->setParameter('search', '%' . $options['search'] . '%'); |
|
141 | + ->setParameter('search', '%'.$options['search'].'%'); |
|
142 | 142 | } |
143 | 143 | } |
144 | 144 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | $dataTable |
152 | 152 | ->add('name', TextColumn::class, [ |
153 | 153 | 'label' => $this->translator->trans('part.table.name'), |
154 | - 'render' => function ($value, Part $context) { |
|
154 | + 'render' => function($value, Part $context) { |
|
155 | 155 | return sprintf( |
156 | 156 | '<a href="%s">%s</a>', |
157 | 157 | $this->urlGenerator->infoURL($context), |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | ]) |
181 | 181 | ->add('storelocation', TextColumn::class, [ |
182 | 182 | 'label' => $this->translator->trans('part.table.storeLocations'), |
183 | - 'render' => function ($value, Part $context) { |
|
183 | + 'render' => function($value, Part $context) { |
|
184 | 184 | $tmp = array(); |
185 | 185 | foreach ($context->getPartLots() as $lot) { |
186 | 186 | //Ignore lots without storelocation |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | ]) |
200 | 200 | ->add('amount', TextColumn::class, [ |
201 | 201 | 'label' => $this->translator->trans('part.table.amount'), |
202 | - 'render' => function ($value, Part $context) { |
|
202 | + 'render' => function($value, Part $context) { |
|
203 | 203 | $amount = $context->getAmountSum(); |
204 | 204 | return $this->amountFormatter->format($amount, $context->getPartUnit()); |
205 | 205 | } |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | ->add('minamount', TextColumn::class, [ |
208 | 208 | 'label' => $this->translator->trans('part.table.minamount'), |
209 | 209 | 'visible' => false, |
210 | - 'render' => function ($value, Part $context) { |
|
210 | + 'render' => function($value, Part $context) { |
|
211 | 211 | return $this->amountFormatter->format($value, $context->getPartUnit()); |
212 | 212 | } |
213 | 213 | ]) |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | }, |
272 | 272 | 'entity' => Part::class, |
273 | 273 | 'criteria' => [ |
274 | - function (QueryBuilder $builder) use ($options) { |
|
274 | + function(QueryBuilder $builder) use ($options) { |
|
275 | 275 | $this->buildCriteria($builder, $options); |
276 | 276 | }, |
277 | 277 | new SearchCriteriaProvider() |