Completed
Push — master ( e1bca1...4cc8d8 )
by Arjay
04:25
created
src/yajra/Datatables/Engines/QueryBuilderEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $myQuery = clone $this->query;
78 78
         // if its a normal query ( no union, having and distinct word )
79 79
         // replace the select with static text to improve performance
80
-        if (! Str::contains(Str::lower($myQuery->toSql()), ['union', 'having', 'distinct'])) {
80
+        if (!Str::contains(Str::lower($myQuery->toSql()), ['union', 'having', 'distinct'])) {
81 81
             $row_count = $this->connection->getQueryGrammar()->wrap('row_count');
82 82
             $myQuery->select($this->connection->raw("'1' as {$row_count}"));
83 83
         }
Please login to merge, or discard this patch.