Test Failed
Push — master ( bdd1e7...dc7229 )
by Mathieu
04:42 queued 11s
created
src/DoctrineDatatable/Column.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,8 +97,7 @@
 block discarded – undo
97 97
         $query->setParameter(
98 98
             $this->alias,
99 99
             \is_string($this->resolve) ?
100
-                str_replace(':'.$this->alias, $data, $this->resolve) :
101
-                \call_user_func($this->resolve, $data)
100
+                str_replace(':'.$this->alias, $data, $this->resolve) : \call_user_func($this->resolve, $data)
102 101
         );
103 102
     }
104 103
 
Please login to merge, or discard this patch.
src/DoctrineDatatable/Editortable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
              *
196 196
              * @return string
197 197
              */
198
-            function (array $matches): string {
198
+            function(array $matches): string {
199 199
                 return strtoupper($matches[1]);
200 200
             },
201 201
             ucfirst($field)
Please login to merge, or discard this patch.
src/DoctrineDatatable/Export.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         foreach ($this->datatable->createFinalQuery(array(
39 39
             'start' => 0,
40
-            'limit' => INF, ))->getQuery()->iterate(null, Query::HYDRATE_SCALAR) as $row) {
40
+            'limit' => INF,))->getQuery()->iterate(null, Query::HYDRATE_SCALAR) as $row) {
41 41
             $line = $row[0];
42 42
             fwrite($this->resource, implode($this->delimiter, $line));
43 43
         }
Please login to merge, or discard this patch.
src/DoctrineDatatable/Datatable.php 1 patch
Spacing   +6 added lines, -11 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $temp = array(
98 98
             'columns' => array(),
99 99
         );
100
-        array_map(function () use ($filters, &$temp) {
100
+        array_map(function() use ($filters, &$temp) {
101 101
             $temp['columns'][] = array(
102 102
                 'search' => array(
103 103
                     'value' => $filters['search'][Column::GLOBAL_ALIAS],
@@ -129,8 +129,7 @@  discard block
 block discarded – undo
129 129
                 $temp = '('.$this->columns[$index]->where($this->final_query, $filter['search']['value']).')';
130 130
 
131 131
                 $this->columns[$index]->isHaving() ?
132
-                    $having .= (!empty($having) ? ' AND ' : '').$temp :
133
-                    $where .= (!empty($where) ? ' '.($this->globalSearch ? 'OR' : 'AND').' ' : '').$temp;
132
+                    $having .= (!empty($having) ? ' AND ' : '').$temp : $where .= (!empty($where) ? ' '.($this->globalSearch ? 'OR' : 'AND').' ' : '').$temp;
134 133
             }
135 134
         }
136 135
 
@@ -209,8 +208,7 @@  discard block
 block discarded – undo
209 208
             ->getScalarResult();
210 209
 
211 210
         return !empty($result) ?
212
-            (int) $result[0]['count'] :
213
-            0;
211
+            (int) $result[0]['count'] : 0;
214 212
     }
215 213
 
216 214
     /**
@@ -236,8 +234,7 @@  discard block
 block discarded – undo
236 234
         }
237 235
 
238 236
         $conditions = isset($filters['columns']) ?
239
-            $this->createCondition($filters) :
240
-            array();
237
+            $this->createCondition($filters) : array();
241 238
 
242 239
         if (isset($conditions['where']) && !empty($conditions['where'])) {
243 240
             $this->final_query->andWhere($conditions['where']);
@@ -300,11 +297,9 @@  discard block
 block discarded – undo
300 297
         $this->createQueryResult();
301 298
         $this->orderBy(
302 299
             isset($filters['order']) ?
303
-                $filters['order'][0]['column'] :
304
-                0,
300
+                $filters['order'][0]['column'] : 0,
305 301
             isset($filters['order']) ?
306
-                $filters['order'][0]['dir'] :
307
-                'ASC'
302
+                $filters['order'][0]['dir'] : 'ASC'
308 303
         );
309 304
 
310 305
         return $this->createFoundationQuery($filters);
Please login to merge, or discard this patch.