@@ -97,8 +97,7 @@ |
||
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 |
@@ -195,7 +195,7 @@ |
||
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) |
@@ -37,7 +37,7 @@ |
||
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 | } |
@@ -35,8 +35,7 @@ |
||
35 | 35 | $index = 0; |
36 | 36 | foreach ($this->getSumableColumns() as $alias => $column) { |
37 | 37 | 0 == $index ? |
38 | - $query->select("$column as $alias") : |
|
39 | - $query->addSelect("$column as $alias"); |
|
38 | + $query->select("$column as $alias") : $query->addSelect("$column as $alias"); |
|
40 | 39 | |
41 | 40 | ++$index; |
42 | 41 | } |
@@ -97,7 +97,7 @@ discard block |
||
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 |
||
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 | |
@@ -210,8 +209,7 @@ discard block |
||
210 | 209 | ->getScalarResult(); |
211 | 210 | |
212 | 211 | return !empty($result) ? |
213 | - (int) $result[0]['count'] : |
|
214 | - 0; |
|
212 | + (int) $result[0]['count'] : 0; |
|
215 | 213 | } |
216 | 214 | |
217 | 215 | /** |
@@ -237,8 +235,7 @@ discard block |
||
237 | 235 | } |
238 | 236 | |
239 | 237 | $conditions = isset($filters['columns']) ? |
240 | - $this->createCondition($filters) : |
|
241 | - array(); |
|
238 | + $this->createCondition($filters) : array(); |
|
242 | 239 | |
243 | 240 | if (isset($conditions['where']) && !empty($conditions['where'])) { |
244 | 241 | $this->final_query->andWhere($conditions['where']); |