Completed
Pull Request — master (#552)
by
unknown
02:30
created
src/Engines/QueryBuilderEngine.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,8 +216,8 @@
 block discarded – undo
216 216
         $myQuery = clone $this->query;
217 217
         $myQuery->orWhereHas($relation, function ($q) use ($column, $keyword, $query) {
218 218
             $sql = $q->select($this->connection->raw('count(1)'))
219
-                     ->where($column, 'like', $keyword)
220
-                     ->toSql();
219
+                        ->where($column, 'like', $keyword)
220
+                        ->toSql();
221 221
             $sql = "($sql) >= 1";
222 222
             $query->orWhereRaw($sql, [$keyword]);
223 223
         });
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -282,8 +282,7 @@
 block discarded – undo
282 282
         $column = $this->connection->getQueryGrammar()->wrap($column);
283 283
         if ($this->database === 'pgsql') {
284 284
             $column = 'CAST(' . $column . ' as TEXT)';
285
-        }
286
-        elseif ($this->database === 'firebird') {
285
+        } elseif ($this->database === 'firebird') {
287 286
             $column = 'CAST(' . $column . ' as VARCHAR(255))';
288 287
         }
289 288
 
Please login to merge, or discard this patch.