Skip to content

Commit 0026b88

Browse files
author
Afonso Gloeden
committed
" changed to '
1 parent 303bd7e commit 0026b88

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Database/Connection.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private function compileForSelect(Builder $builder, $bindings) {
148148

149149
foreach ($builder->wheres as $w) {
150150
switch ($w['type']) {
151-
case "Nested":
151+
case 'Nested':
152152
$wheres += $w['query']->wheres;
153153
break;
154154
default:
@@ -294,28 +294,28 @@ private function compileBindings($query, $bindings)
294294
$newFormat = [];
295295

296296
switch (explode(' ', $query)[0]) {
297-
case "select":
297+
case 'select':
298298
$builder = $this->queryGrammar->getBuilder();
299299
if ($builder != NULL && $builder->wheres != NULL) {
300300
return $this->compileForSelect($builder, $bindings);
301301
} else {
302302
return $bindings;
303303
}
304-
case "insert":
304+
case 'insert':
305305
preg_match(
306306
"/(?'tables'.*) \((?'attributes'.*)\) values/i",
307307
$query,
308308
$matches
309309
);
310310
break;
311-
case "update":
311+
case 'update':
312312
preg_match(
313313
"/(?'tables'.*) set (?'attributes'.*)/i",
314314
$query,
315315
$matches
316316
);
317317
break;
318-
case "delete":
318+
case 'delete':
319319
preg_match(
320320
"/(?'tables'.*) where (?'attributes'.*)/i",
321321
$query,
@@ -483,7 +483,7 @@ private function queryStringForCompileBindings($table)
483483
*/
484484
private function compileNewQuery($query, $bindings)
485485
{
486-
$newQuery = "";
486+
$newQuery = '';
487487
$bindings = $this->compileBindings($query, $bindings);
488488
$partQuery = explode("?", $query);
489489
for ($i = 0; $i < count($partQuery); $i++) {
@@ -501,14 +501,14 @@ private function compileNewQuery($query, $bindings)
501501
}
502502
}
503503
}
504-
$newQuery = str_replace( "[]", '', $newQuery);
504+
$newQuery = str_replace( '[]', '', $newQuery);
505505
return $newQuery;
506506
}
507507

508508
public function compileOffset($offset, $query, $bindings = [], $me)
509509
{
510510
$limit = $this->queryGrammar->getBuilder()->limit;
511-
$from = explode(" ", $this->queryGrammar->getBuilder()->from)[0];
511+
$from = explode(' ', $this->queryGrammar->getBuilder()->from)[0];
512512
if (!isset($limit)) {
513513
$limit = 999999999999999999999999999;
514514
}
@@ -536,7 +536,7 @@ public function compileOffset($offset, $query, $bindings = [], $me)
536536
' = #tmpTable.' . $identity->column;
537537
// Offset operation
538538
$this->getPdo()->query(str_replace(
539-
" from ",
539+
' from ',
540540
" into #tmpPaginate from ",
541541
$this->compileNewQuery($query, $bindings)
542542
));

src/Database/Schema/Grammar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ protected function modifyNullable(Blueprint $blueprint, Fluent $column)
596596
protected function modifyDefault(Blueprint $blueprint, Fluent $column)
597597
{
598598
if (!is_null($column->default)) {
599-
return " default " . $this->getDefaultValue($column->default);
599+
return ' default ' . $this->getDefaultValue($column->default);
600600
}
601601
}
602602

0 commit comments

Comments
 (0)