@@ -64,12 +64,12 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | if (isset($options['tag'])) { |
| 67 | - $builder->andWhere('part.tags LIKE :tag')->setParameter('tag', '%' . $options['tag'] . '%'); |
|
| 67 | + $builder->andWhere('part.tags LIKE :tag')->setParameter('tag', '%'.$options['tag'].'%'); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | if (isset($options['search'])) { |
| 71 | 71 | $builder->AndWhere('part.name LIKE :search')->orWhere('part.description LIKE :search')->orWhere('part.comment LIKE :search') |
| 72 | - ->setParameter('search', '%' . $options['search'] . '%'); |
|
| 72 | + ->setParameter('search', '%'.$options['search'].'%'); |
|
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | |
@@ -81,9 +81,9 @@ discard block |
||
| 81 | 81 | { |
| 82 | 82 | $dataTable//->add("id", TextColumn::class) |
| 83 | 83 | ->add('name', TextColumn::class, ['label' => 'name.label', |
| 84 | - 'render' => function ($value, Part $context) { |
|
| 84 | + 'render' => function($value, Part $context) { |
|
| 85 | 85 | return $this->urlGenerator->infoHTML($context); |
| 86 | - }, ]) |
|
| 86 | + },]) |
|
| 87 | 87 | ->add('description', TextColumn::class, ['label' => 'description.label']) |
| 88 | 88 | ->add('category', TextColumn::class, ['field' => 'category.name', 'label' => 'category.label']) |
| 89 | 89 | ->add('amountSum', TextColumn::class, ['label' => 'instock.label_short']) |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | ->createAdapter(ORMAdapter::class, [ |
| 94 | 94 | 'entity' => Part::class, |
| 95 | 95 | 'criteria' => [ |
| 96 | - function (QueryBuilder $builder) use ($options) { |
|
| 96 | + function(QueryBuilder $builder) use ($options) { |
|
| 97 | 97 | $this->buildCriteria($builder, $options); |
| 98 | 98 | }, |
| 99 | 99 | new SearchCriteriaProvider() |