|
@@ -84,7 +84,7 @@ discard block |
|
|
block discarded – undo |
|
84
|
84
|
$myQuery = clone $this->query; |
|
85
|
85
|
// if its a normal query ( no union, having and distinct word ) |
|
86
|
86
|
// replace the select with static text to improve performance |
|
87
|
|
- if (! Str::contains(Str::lower($myQuery->toSql()), ['union', 'having', 'distinct', 'order by', 'group by'])) { |
|
|
87
|
+ if (!Str::contains(Str::lower($myQuery->toSql()), ['union', 'having', 'distinct', 'order by', 'group by'])) { |
|
88
|
88
|
$row_count = $this->connection->getQueryGrammar()->wrap('row_count'); |
|
89
|
89
|
$myQuery->select($this->connection->raw("'1' as {$row_count}")); |
|
90
|
90
|
} |
|
@@ -411,7 +411,7 @@ discard block |
|
|
block discarded – undo |
|
411
|
411
|
$joins[] = $join->table; |
|
412
|
412
|
} |
|
413
|
413
|
|
|
414
|
|
- if (! in_array($table, $joins)) { |
|
|
414
|
+ if (!in_array($table, $joins)) { |
|
415
|
415
|
$this->getQueryBuilder()->leftJoin($table, $foreign, '=', $other); |
|
416
|
416
|
} |
|
417
|
417
|
} |
Please login to merge, or discard this patch.