@@ -70,12 +70,12 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | if (isset($options['tag'])) { |
73 | - $builder->andWhere('part.tags LIKE :tag')->setParameter('tag', '%' . $options['tag'] . '%'); |
|
73 | + $builder->andWhere('part.tags LIKE :tag')->setParameter('tag', '%'.$options['tag'].'%'); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | if (isset($options['search'])) { |
77 | 77 | $builder->AndWhere('part.name LIKE :search')->orWhere('part.description LIKE :search')->orWhere('part.comment LIKE :search') |
78 | - ->setParameter('search', '%' . $options['search'] . '%'); |
|
78 | + ->setParameter('search', '%'.$options['search'].'%'); |
|
79 | 79 | } |
80 | 80 | } |
81 | 81 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $dataTable |
89 | 89 | ->add('name', TextColumn::class, [ |
90 | 90 | 'label' => $this->translator->trans('part.table.name'), |
91 | - 'render' => function ($value, Part $context) { |
|
91 | + 'render' => function($value, Part $context) { |
|
92 | 92 | return $this->urlGenerator->infoHTML($context); |
93 | 93 | }, |
94 | 94 | ]) |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | ->createAdapter(ORMAdapter::class, [ |
168 | 168 | 'entity' => Part::class, |
169 | 169 | 'criteria' => [ |
170 | - function (QueryBuilder $builder) use ($options) { |
|
170 | + function(QueryBuilder $builder) use ($options) { |
|
171 | 171 | $this->buildCriteria($builder, $options); |
172 | 172 | }, |
173 | 173 | new SearchCriteriaProvider() |