@@ -107,12 +107,12 @@ discard block |
||
107 | 107 | } |
108 | 108 | |
109 | 109 | if (isset($options['tag'])) { |
110 | - $builder->andWhere('part.tags LIKE :tag')->setParameter('tag', '%' . $options['tag'] . '%'); |
|
110 | + $builder->andWhere('part.tags LIKE :tag')->setParameter('tag', '%'.$options['tag'].'%'); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | if (isset($options['search'])) { |
114 | 114 | $builder->AndWhere('part.name LIKE :search')->orWhere('part.description LIKE :search')->orWhere('part.comment LIKE :search') |
115 | - ->setParameter('search', '%' . $options['search'] . '%'); |
|
115 | + ->setParameter('search', '%'.$options['search'].'%'); |
|
116 | 116 | } |
117 | 117 | } |
118 | 118 | |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | $dataTable |
126 | 126 | ->add('name', TextColumn::class, [ |
127 | 127 | 'label' => $this->translator->trans('part.table.name'), |
128 | - 'render' => function ($value, Part $context) { |
|
128 | + 'render' => function($value, Part $context) { |
|
129 | 129 | return sprintf( |
130 | 130 | '<a href="%s">%s</a>', |
131 | 131 | $this->urlGenerator->infoURL($context), |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | }, |
224 | 224 | 'entity' => Part::class, |
225 | 225 | 'criteria' => [ |
226 | - function (QueryBuilder $builder) use ($options) { |
|
226 | + function(QueryBuilder $builder) use ($options) { |
|
227 | 227 | $this->buildCriteria($builder, $options); |
228 | 228 | }, |
229 | 229 | new SearchCriteriaProvider() |