@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | $this->logger()->info("Transaction: new savepoint 'SVP{$name}'"); |
329 | 329 | } |
330 | 330 | |
331 | - $this->statement('SAVEPOINT ' . $this->identifier("SVP{$name}")); |
|
331 | + $this->statement('SAVEPOINT '.$this->identifier("SVP{$name}")); |
|
332 | 332 | } |
333 | 333 | |
334 | 334 | /** |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | $this->logger()->info("Transaction: release savepoint 'SVP{$name}'"); |
346 | 346 | } |
347 | 347 | |
348 | - $this->statement('RELEASE SAVEPOINT ' . $this->identifier("SVP{$name}")); |
|
348 | + $this->statement('RELEASE SAVEPOINT '.$this->identifier("SVP{$name}")); |
|
349 | 349 | } |
350 | 350 | |
351 | 351 | /** |
@@ -362,6 +362,6 @@ discard block |
||
362 | 362 | $this->logger()->info("Transaction: rollback savepoint 'SVP{$name}'"); |
363 | 363 | } |
364 | 364 | |
365 | - $this->statement('ROLLBACK TO SAVEPOINT ' . $this->identifier("SVP{$name}")); |
|
365 | + $this->statement('ROLLBACK TO SAVEPOINT '.$this->identifier("SVP{$name}")); |
|
366 | 366 | } |
367 | 367 | } |
@@ -90,7 +90,7 @@ |
||
90 | 90 | { |
91 | 91 | if (defined('static::GUARD_NAMESPACE')) { |
92 | 92 | //Yay! Isolation |
93 | - $permission = constant(get_called_class() . '::' . 'GUARD_NAMESPACE') . '.' . $permission; |
|
93 | + $permission = constant(get_called_class().'::'.'GUARD_NAMESPACE').'.'.$permission; |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | return $permission; |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $migration = $migration->withCapsule($capsule); |
137 | 137 | |
138 | 138 | //Executing migration inside global transaction |
139 | - $this->execute(function () use ($migration) { |
|
139 | + $this->execute(function() use ($migration) { |
|
140 | 140 | $migration->up(); |
141 | 141 | }); |
142 | 142 | |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | $migration = $migration->withCapsule($capsule); |
183 | 183 | |
184 | 184 | //Executing migration inside global transaction |
185 | - $this->execute(function () use ($migration) { |
|
185 | + $this->execute(function() use ($migration) { |
|
186 | 186 | $migration->down(); |
187 | 187 | }); |
188 | 188 |
@@ -116,7 +116,7 @@ |
||
116 | 116 | public function render(int $indentLevel = 0): string |
117 | 117 | { |
118 | 118 | $lines = $this->lines; |
119 | - array_walk($lines, function (&$line) use ($indentLevel) { |
|
119 | + array_walk($lines, function(&$line) use ($indentLevel) { |
|
120 | 120 | $line = $this->addIndent($line, $indentLevel); |
121 | 121 | }); |
122 | 122 |
@@ -107,7 +107,7 @@ |
||
107 | 107 | { |
108 | 108 | $result = ''; |
109 | 109 | if (!$this->docComment->isEmpty()) { |
110 | - $result .= $this->docComment->render($indentLevel) . "\n"; |
|
110 | + $result .= $this->docComment->render($indentLevel)."\n"; |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | $result .= $this->addIndent("{$this->access} \${$this->getName()}", $indentLevel); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | protected function addIndent(string $string, int $indent = 0): string |
33 | 33 | { |
34 | - return str_repeat(self::INDENT, max($indent, 0)) . $string; |
|
34 | + return str_repeat(self::INDENT, max($indent, 0)).$string; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | $name = $context->getName(); |
42 | 42 | if ($context instanceof \ReflectionMethod) { |
43 | - $name = $context->class . '::' . $name; |
|
43 | + $name = $context->class.'::'.$name; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | parent::__construct("Unable to resolve '{$parameter->name}' argument in '{$name}'"); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | */ |
114 | 114 | protected function expression(string $identifier): string |
115 | 115 | { |
116 | - return preg_replace_callback('/([a-z][0-9_a-z\.]*\(?)/i', function ($match) { |
|
116 | + return preg_replace_callback('/([a-z][0-9_a-z\.]*\(?)/i', function($match) { |
|
117 | 117 | $identifier = $match[1]; |
118 | 118 | |
119 | 119 | //Function name |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | protected function aliasing(string $identifier, string $alias, bool $isTable): string |
138 | 138 | { |
139 | - $quoted = $this->quote($identifier, $isTable) . ' AS ' . $this->driver->identifier($alias); |
|
139 | + $quoted = $this->quote($identifier, $isTable).' AS '.$this->driver->identifier($alias); |
|
140 | 140 | |
141 | 141 | if ($isTable && strpos($identifier, '.') === false) { |
142 | 142 | //We have to apply operation post factum to prevent self aliasing (name AS name) |
@@ -173,12 +173,12 @@ discard block |
||
173 | 173 | protected function unpaired(string $identifier, bool $isTable): string |
174 | 174 | { |
175 | 175 | if ($isTable && !isset($this->aliases[$identifier])) { |
176 | - if (!isset($this->aliases[$this->prefix . $identifier])) { |
|
176 | + if (!isset($this->aliases[$this->prefix.$identifier])) { |
|
177 | 177 | //Generating our alias |
178 | - $this->registerAlias($this->prefix . $identifier, $identifier); |
|
178 | + $this->registerAlias($this->prefix.$identifier, $identifier); |
|
179 | 179 | } |
180 | 180 | |
181 | - $identifier = $this->prefix . $identifier; |
|
181 | + $identifier = $this->prefix.$identifier; |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | return $this->driver->identifier($identifier); |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | |
325 | 325 | if (!empty($join['alias'])) { |
326 | 326 | $this->quoter->registerAlias($join['alias'], (string)$join['outer']); |
327 | - $statement .= " AS " . $this->quote($join['alias']); |
|
327 | + $statement .= " AS ".$this->quote($join['alias']); |
|
328 | 328 | } |
329 | 329 | |
330 | 330 | $statement .= $this->optional("\n ON", $this->compileWhere($join['on'])); |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | throw new CompilerException("Invalid sorting direction, only ASC and DESC are allowed"); |
379 | 379 | } |
380 | 380 | |
381 | - $result[] = $this->quote($order[0]) . ' ' . $direction; |
|
381 | + $result[] = $this->quote($order[0]).' '.$direction; |
|
382 | 382 | } |
383 | 383 | |
384 | 384 | return implode(', ', $result); |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | $prefix .= ' '; |
545 | 545 | } |
546 | 546 | |
547 | - return $prefix . $expression . $postfix; |
|
547 | + return $prefix.$expression.$postfix; |
|
548 | 548 | } |
549 | 549 | |
550 | 550 | /** |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | { |
604 | 604 | if ($context instanceof QueryBuilder) { |
605 | 605 | //Nested queries has to be wrapped with braces |
606 | - return '(' . $context->sqlStatement($this) . ')'; |
|
606 | + return '('.$context->sqlStatement($this).')'; |
|
607 | 607 | } |
608 | 608 | |
609 | 609 | if ($context instanceof ExpressionInterface) { |