Completed
Push — master ( 1e48c5...7a9bc2 )
by Jan
04:07
created
src/DataTables/PartsDataTable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -129,12 +129,12 @@  discard block
 block discarded – undo
129 129
         }
130 130
 
131 131
         if (isset($options['tag'])) {
132
-            $builder->andWhere('part.tags LIKE :tag')->setParameter('tag', '%' . $options['tag'] . '%');
132
+            $builder->andWhere('part.tags LIKE :tag')->setParameter('tag', '%'.$options['tag'].'%');
133 133
         }
134 134
 
135 135
         if (isset($options['search'])) {
136 136
             $builder->AndWhere('part.name LIKE :search')->orWhere('part.description LIKE :search')->orWhere('part.comment LIKE :search')
137
-                ->setParameter('search', '%' . $options['search'] . '%');
137
+                ->setParameter('search', '%'.$options['search'].'%');
138 138
         }
139 139
     }
140 140
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         $dataTable
148 148
             ->add('name', TextColumn::class, [
149 149
                 'label' => $this->translator->trans('part.table.name'),
150
-                'render' => function ($value, Part $context) {
150
+                'render' => function($value, Part $context) {
151 151
                     return sprintf(
152 152
                         '<a href="%s">%s</a>',
153 153
                         $this->urlGenerator->infoURL($context),
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             ])
177 177
             ->add('storelocation', TextColumn::class, [
178 178
                 'label' => $this->translator->trans('part.table.storeLocations'),
179
-                'render' => function ($value, Part $context) {
179
+                'render' => function($value, Part $context) {
180 180
                     $tmp = array();
181 181
                     foreach ($context->getPartLots() as $lot) {
182 182
                         //Ignore lots without storelocation
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
                 },
262 262
                 'entity' => Part::class,
263 263
                 'criteria' => [
264
-                    function (QueryBuilder $builder) use ($options) {
264
+                    function(QueryBuilder $builder) use ($options) {
265 265
                         $this->buildCriteria($builder, $options);
266 266
                     },
267 267
                     new SearchCriteriaProvider()
Please login to merge, or discard this patch.