@@ -30,7 +30,7 @@ |
||
| 30 | 30 | |
| 31 | 31 | /** @inheritdoc */ |
| 32 | 32 | public function callback(iterable $values, callable $callback):bool{ |
| 33 | - $sql = $this->sql(true); |
|
| 33 | + $sql = $this->sql(true); |
|
| 34 | 34 | |
| 35 | 35 | $this->logger->debug('MultiQueryTrait::callback()', ['method' => __METHOD__, 'sql' => $sql, 'val' => $values]); |
| 36 | 36 | |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | |
| 193 | 193 | // @todo: fixme, cleanup |
| 194 | 194 | // errors on [alias => col, alias, alias => col...] |
| 195 | - $_col = function ($expr1, $expr2 = null, $func = null):string { |
|
| 195 | + $_col = function($expr1, $expr2 = null, $func = null):string { |
|
| 196 | 196 | switch(true){ |
| 197 | 197 | case $expr2 && $func: |
| 198 | 198 | $col = sprintf('%s(%s) AS %s', strtoupper($func), $expr1, $this->quote($expr2)); |
@@ -234,12 +234,12 @@ discard block |
||
| 234 | 234 | /** @inheritdoc */ |
| 235 | 235 | public function from(array $expressions):array { |
| 236 | 236 | |
| 237 | - $_from = function (string $table, string $ref = null):string { |
|
| 237 | + $_from = function(string $table, string $ref = null):string { |
|
| 238 | 238 | // @todo: quotes |
| 239 | 239 | $from = $this->quote($table); |
| 240 | 240 | |
| 241 | 241 | if($ref){ |
| 242 | - $from = sprintf('%s AS %s', $this->quote($ref), $this->quote($table));// @todo: index hint |
|
| 242 | + $from = sprintf('%s AS %s', $this->quote($ref), $this->quote($table)); // @todo: index hint |
|
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | return $from; |
@@ -343,9 +343,9 @@ |
||
| 343 | 343 | public function seek($pos):void{ |
| 344 | 344 | $this->rewind(); |
| 345 | 345 | |
| 346 | - for( ; $this->offset < $pos; ){ |
|
| 346 | + for(; $this->offset < $pos;){ |
|
| 347 | 347 | |
| 348 | - if(!\next($this->array)) { |
|
| 348 | + if(!\next($this->array)){ |
|
| 349 | 349 | throw new \OutOfBoundsException('invalid seek position: '.$pos); |
| 350 | 350 | } |
| 351 | 351 | |
@@ -345,7 +345,7 @@ |
||
| 345 | 345 | |
| 346 | 346 | for( ; $this->offset < $pos; ){ |
| 347 | 347 | |
| 348 | - if(!\next($this->array)) { |
|
| 348 | + if(!\next($this->array)){ |
|
| 349 | 349 | throw new \OutOfBoundsException('invalid seek position: '.$pos); |
| 350 | 350 | } |
| 351 | 351 | |