@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | |
402 | 402 | $name = $this->tokens[$localID][self::TOKEN_CODE]; |
403 | 403 | if (!empty($namespace = $this->activeNamespace($tokenID))) { |
404 | - $name = $namespace . self::NS_SEPARATOR . $name; |
|
404 | + $name = $namespace.self::NS_SEPARATOR.$name; |
|
405 | 405 | } |
406 | 406 | |
407 | 407 | $this->functions[$name] = [ |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | |
427 | 427 | $name = $this->tokens[$localID][self::TOKEN_CODE]; |
428 | 428 | if (!empty($namespace = $this->activeNamespace($tokenID))) { |
429 | - $name = $namespace . self::NS_SEPARATOR . $name; |
|
429 | + $name = $namespace.self::NS_SEPARATOR.$name; |
|
430 | 430 | } |
431 | 431 | |
432 | 432 | $this->declarations[token_name($tokenType)][$name] = [ |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | $name = $context->getName(); |
41 | 41 | if ($context instanceof \ReflectionMethod) { |
42 | - $name = $context->class . '::' . $name; |
|
42 | + $name = $context->class.'::'.$name; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | parent::__construct("Unable to resolve '{$parameter->name}' argument in '{$name}'."); |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | { |
325 | 325 | $statement = ''; |
326 | 326 | foreach ($joinTokens as $table => $join) { |
327 | - $statement .= "\n" . $join['type'] . ' JOIN ' . $this->quote($table, true); |
|
327 | + $statement .= "\n".$join['type'].' JOIN '.$this->quote($table, true); |
|
328 | 328 | $statement .= $this->optional("\n ON", $this->compileWhere($join['on'])); |
329 | 329 | } |
330 | 330 | |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | { |
364 | 364 | $result = []; |
365 | 365 | foreach ($ordering as $order) { |
366 | - $result[] = $this->quote($order[0]) . ' ' . strtoupper($order[1]); |
|
366 | + $result[] = $this->quote($order[0]).' '.strtoupper($order[1]); |
|
367 | 367 | } |
368 | 368 | |
369 | 369 | return join(', ', $result); |
@@ -525,7 +525,7 @@ discard block |
||
525 | 525 | $prefix .= ' '; |
526 | 526 | } |
527 | 527 | |
528 | - return $prefix . $expression . $postfix; |
|
528 | + return $prefix.$expression.$postfix; |
|
529 | 529 | } |
530 | 530 | |
531 | 531 | /** |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | { |
582 | 582 | if ($context instanceof QueryBuilder) { |
583 | 583 | //Nested queries has to be wrapped with braces |
584 | - return '(' . $context->sqlStatement($this) . ')'; |
|
584 | + return '('.$context->sqlStatement($this).')'; |
|
585 | 585 | } |
586 | 586 | |
587 | 587 | if ($context instanceof ExpressionInterface) { |
@@ -93,7 +93,7 @@ |
||
93 | 93 | */ |
94 | 94 | public function realName() |
95 | 95 | { |
96 | - return $this->database->getPrefix() . $this->name; |
|
96 | + return $this->database->getPrefix().$this->name; |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | $key = md5(serialize([$query, $parameters, $this->name, $this->prefix])); |
263 | 263 | } |
264 | 264 | |
265 | - $data = $store->remember($key, $lifetime, function () use ($query, $parameters) { |
|
265 | + $data = $store->remember($key, $lifetime, function() use ($query, $parameters) { |
|
266 | 266 | return $this->query($query, $parameters)->fetchAll(); |
267 | 267 | }); |
268 | 268 | |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | */ |
379 | 379 | public function hasTable($name) |
380 | 380 | { |
381 | - return $this->driver->hasTable($this->prefix . $name); |
|
381 | + return $this->driver->hasTable($this->prefix.$name); |
|
382 | 382 | } |
383 | 383 | |
384 | 384 | /** |
@@ -198,7 +198,6 @@ |
||
198 | 198 | /** |
199 | 199 | * {@inheritdoc} |
200 | 200 | * |
201 | - * @param string $class Class to be used to represent PDOStatement. |
|
202 | 201 | * @param array $args Class construction arguments, by default array of parameters. |
203 | 202 | * |
204 | 203 | * @return PDOResult |
@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | public function identifier($identifier) |
59 | 59 | { |
60 | - return $identifier == '*' ? '*' : '`' . str_replace('`', '``', $identifier) . '`'; |
|
60 | + return $identifier == '*' ? '*' : '`'.str_replace('`', '``', $identifier).'`'; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | public function getPrimary($table) |
118 | 118 | { |
119 | 119 | if (!empty($this->memory) && empty($this->primaryKeys)) { |
120 | - $this->primaryKeys = (array)$this->memory->loadData($this->getSource() . '-primary'); |
|
120 | + $this->primaryKeys = (array)$this->memory->loadData($this->getSource().'-primary'); |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | if (!empty($this->primaryKeys) && array_key_exists($table, $this->primaryKeys)) { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | |
141 | 141 | //Caching |
142 | 142 | if (!empty($this->memory)) { |
143 | - $this->memory->saveData($this->getSource() . '-primary', $this->primaryKeys); |
|
143 | + $this->memory->saveData($this->getSource().'-primary', $this->primaryKeys); |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | return $this->primaryKeys[$table]; |
@@ -137,7 +137,7 @@ |
||
137 | 137 | $offset = $offset + 1; |
138 | 138 | |
139 | 139 | if (!empty($limit)) { |
140 | - $statement .= "BETWEEN {$offset} AND " . ($offset + $limit - 1); |
|
140 | + $statement .= "BETWEEN {$offset} AND ".($offset + $limit - 1); |
|
141 | 141 | } else { |
142 | 142 | $statement .= ">= {$offset}"; |
143 | 143 | } |
@@ -84,7 +84,7 @@ |
||
84 | 84 | */ |
85 | 85 | public function identifier($identifier) |
86 | 86 | { |
87 | - return $identifier == '*' ? '*' : '[' . str_replace('[', '[[', $identifier) . ']'; |
|
87 | + return $identifier == '*' ? '*' : '['.str_replace('[', '[[', $identifier).']'; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |