Completed
Push — master ( 4c5b5b...fe7ce3 )
by Jan
04:26
created
src/DataTables/PartsDataTable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
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
         if (isset($options['search'])) {
71 71
             $builder->AndWhere('part.name LIKE :search')->orWhere('part.description LIKE :search')->orWhere('part.comment LIKE :search')
72
-                ->setParameter('search', '%' . $options['search'] . '%');
72
+                ->setParameter('search', '%'.$options['search'].'%');
73 73
         }
74 74
     }
75 75
 
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
     {
82 82
         $dataTable//->add("id", TextColumn::class)
83 83
         ->add('name', TextColumn::class, ['label' => 'name.label',
84
-            'render' => function ($value, Part $context) {
84
+            'render' => function($value, Part $context) {
85 85
                 return $this->urlGenerator->infoHTML($context);
86
-            }, ])
86
+            },])
87 87
             ->add('description', TextColumn::class, ['label' => 'description.label'])
88 88
             ->add('category', TextColumn::class, ['field' => 'category.name', 'label' => 'category.label'])
89 89
             ->add('amountSum', TextColumn::class, ['label' => 'instock.label_short'])
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             ->createAdapter(ORMAdapter::class, [
94 94
                 'entity' => Part::class,
95 95
                 'criteria' => [
96
-                    function (QueryBuilder $builder) use ($options) {
96
+                    function(QueryBuilder $builder) use ($options) {
97 97
                         $this->buildCriteria($builder, $options);
98 98
                     },
99 99
                     new SearchCriteriaProvider()
Please login to merge, or discard this patch.