Completed
Push — master ( 41a031...01eff5 )
by Jan
03:56
created
src/DataTables/PartsDataTable.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,12 +85,12 @@  discard block
 block discarded – undo
85 85
         }
86 86
 
87 87
         if (isset($options['tag'])) {
88
-            $builder->andWhere('part.tags LIKE :tag')->setParameter('tag', '%' . $options['tag'] . '%');
88
+            $builder->andWhere('part.tags LIKE :tag')->setParameter('tag', '%'.$options['tag'].'%');
89 89
         }
90 90
 
91 91
         if (isset($options['search'])) {
92 92
             $builder->AndWhere('part.name LIKE :search')->orWhere('part.description LIKE :search')->orWhere('part.comment LIKE :search')
93
-                ->setParameter('search', '%' . $options['search'] . '%');
93
+                ->setParameter('search', '%'.$options['search'].'%');
94 94
         }
95 95
     }
96 96
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $dataTable
104 104
             ->add('name', TextColumn::class, [
105 105
                 'label' => $this->translator->trans('part.table.name'),
106
-                'render' => function ($value, Part $context) {
106
+                'render' => function($value, Part $context) {
107 107
                     return $this->urlGenerator->infoHTML($context);
108 108
                 },
109 109
             ])
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
                 },
198 198
                 'entity' => Part::class,
199 199
                 'criteria' => [
200
-                    function (QueryBuilder $builder) use ($options) {
200
+                    function(QueryBuilder $builder) use ($options) {
201 201
                         $this->buildCriteria($builder, $options);
202 202
                     },
203 203
                     new SearchCriteriaProvider()
Please login to merge, or discard this patch.