Skip to content

Commit 4271f77

Browse files
authored
Merge pull request #2606 from schonhoff/9.0
Code cleanup in QueryDataTable class
2 parents a970ba1 + 5e0d224 commit 4271f77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/QueryDataTable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public function columnSearch()
304304
}
305305

306306
if ($this->hasFilterColumn($column)) {
307-
$keyword = $this->getColumnSearchKeyword($index, $raw = true);
307+
$keyword = $this->getColumnSearchKeyword($index, true);
308308
$this->applyFilterColumn($this->getBaseQueryBuilder(), $column, $keyword);
309309
} else {
310310
$column = $this->resolveRelationColumn($column);
@@ -567,7 +567,7 @@ public function orderColumns(array $columns, $sql, $bindings = [])
567567
* Override default column ordering.
568568
*
569569
* @param string $column
570-
* @param string $sql
570+
* @param string|\Closure $sql
571571
* @param array $bindings
572572
* @return $this
573573
* @internal string $1 Special variable that returns the requested order direction of the column.
@@ -761,7 +761,7 @@ protected function globalSearch($keyword)
761761
protected function showDebugger(array $output)
762762
{
763763
$query_log = $this->connection->getQueryLog();
764-
array_walk_recursive($query_log, function (&$item, $key) {
764+
array_walk_recursive($query_log, function (&$item) {
765765
$item = utf8_encode($item);
766766
});
767767

0 commit comments

Comments
 (0)