@@ -64,14 +64,14 @@ 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 | dump($options['search']); |
71 | 71 | |
72 | 72 | if (isset($options['search'])) { |
73 | 73 | $builder->AndWhere('part.name LIKE :search')->orWhere('part.description LIKE :search')->orWhere('part.comment LIKE :search') |
74 | - ->setParameter('search', '%' . $options['search'] . '%'); |
|
74 | + ->setParameter('search', '%'.$options['search'].'%'); |
|
75 | 75 | } |
76 | 76 | } |
77 | 77 | |
@@ -83,9 +83,9 @@ discard block |
||
83 | 83 | { |
84 | 84 | $dataTable//->add("id", TextColumn::class) |
85 | 85 | ->add('name', TextColumn::class, ['label' => 'name.label', |
86 | - 'render' => function ($value, Part $context) { |
|
86 | + 'render' => function($value, Part $context) { |
|
87 | 87 | return $this->urlGenerator->infoHTML($context); |
88 | - }, ]) |
|
88 | + },]) |
|
89 | 89 | ->add('description', TextColumn::class, ['label' => 'description.label']) |
90 | 90 | ->add('category', TextColumn::class, ['field' => 'category.name', 'label' => 'category.label']) |
91 | 91 | ->add('amountSum', TextColumn::class, ['label' => 'instock.label_short']) |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | ->createAdapter(ORMAdapter::class, [ |
96 | 96 | 'entity' => Part::class, |
97 | 97 | 'criteria' => [ |
98 | - function (QueryBuilder $builder) use ($options) { |
|
98 | + function(QueryBuilder $builder) use ($options) { |
|
99 | 99 | $this->buildCriteria($builder, $options); |
100 | 100 | }, |
101 | 101 | new SearchCriteriaProvider() |