@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Compolomus\LSQLQueryBuilder\System\Traits; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Compolomus\LSQLQueryBuilder\System\Traits; |
| 4 | 4 | |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | { |
| 9 | 9 | private $order; |
| 10 | 10 | |
| 11 | - public function order(?string $field = null, string $type = 'asc'): Porder |
|
| 11 | + public function order(?string $field = null, string $type = 'asc') : Porder |
|
| 12 | 12 | { |
| 13 | 13 | $this->order = new Porder($field, $type); |
| 14 | 14 | $this->order->base($this); |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Compolomus\LSQLQueryBuilder\System\Traits; |
| 4 | 4 | |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | { |
| 9 | 9 | private $group; |
| 10 | 10 | |
| 11 | - public function group(?string $field = null): PGroup |
|
| 11 | + public function group(?string $field = null) : PGroup |
|
| 12 | 12 | { |
| 13 | 13 | $this->group = new Pgroup($field); |
| 14 | 14 | $this->group->base($this); |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Compolomus\LSQLQueryBuilder\System; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Compolomus\LSQLQueryBuilder\System; |
| 4 | 4 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | $this->fields = $return; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - public function count(string $field = '*', ?string $alias = null): void |
|
| 30 | + public function count(string $field = '*', ?string $alias = null) : void |
|
| 31 | 31 | { |
| 32 | 32 | if ($field != '*') { |
| 33 | 33 | $field = $this->escapeField($field); |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Compolomus\LSQLQueryBuilder\Parts; |
| 4 | 4 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | return $this->fields->result(); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - public function join(string $table, ?array $on = null, ?string $alias = null, string $joinType = 'left'): Select |
|
| 36 | + public function join(string $table, ? array $on = null, ?string $alias = null, string $joinType = 'left') : Select |
|
| 37 | 37 | { |
| 38 | 38 | $this->join = new Join($table, $on, $alias, $joinType); |
| 39 | 39 | $this->join->setParentTable($this->table()); |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Compolomus\LSQLQueryBuilder\Parts; |
| 4 | 4 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | . (count($this->values) |
| 42 | 42 | ? implode(',', $this->values) |
| 43 | 43 | : (count($this->fields) & !count($this->values) |
| 44 | - ? implode(',', array_map(function ($field) { |
|
| 44 | + ? implode(',', array_map(function($field) { |
|
| 45 | 45 | return $this->escapeField($field) . ' = ?'; |
| 46 | 46 | ;}, $this->fields)) |
| 47 | 47 | : '') |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Compolomus\LSQLQueryBuilder\Parts; |
| 4 | 4 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | private $joinTypes = ['left', 'right', 'cross', 'inner']; |
| 27 | 27 | |
| 28 | - public function __construct(string $table, ?array $on = null, ?string $alias = null, string $joinType = 'left') |
|
| 28 | + public function __construct(string $table, ? array $on = null, ?string $alias = null, string $joinType = 'left') |
|
| 29 | 29 | { |
| 30 | 30 | $this->table = $table; |
| 31 | 31 | if (!is_null($on)) { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | private function onMap(array $array): string |
| 64 | 64 | { |
| 65 | - return ' ON ' . $this->concatWhere(array_map(function ($item) { |
|
| 65 | + return ' ON ' . $this->concatWhere(array_map(function($item) { |
|
| 66 | 66 | return $this->parentTable . '.' . $this->escapeField($item[0]) . ' = ' . $this->getTable() . '.' . $this->escapeField($item[1]); |
| 67 | 67 | }, $array)); |
| 68 | 68 | } |