Completed
Branch master (c8bc5d)
by Jan
11:58 queued 07:17
created
src/DataTables/PartsDataTable.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,12 +107,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.