@@ -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 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | return $this; |
37 | 37 | } |
38 | 38 | |
39 | - public function join(string $table, ?string $alias = null, array $onPairs = [], string $joinType = 'left'): Join |
|
39 | + public function join(string $table, ?string $alias = null, array $onPairs = [], string $joinType = 'left') : Join |
|
40 | 40 | { |
41 | 41 | $this->counter++; |
42 | 42 | $this->table[$this->counter] = $table; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | return $this; |
56 | 56 | } |
57 | 57 | |
58 | - public function setAlias(?string $alias): Join |
|
58 | + public function setAlias(?string $alias) : Join |
|
59 | 59 | { |
60 | 60 | if (!is_null($alias)) { |
61 | 61 | $this->alias[$this->counter] = $alias; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | if (!empty($this->onPairs)) { |
88 | 88 | $result = []; |
89 | 89 | foreach ($this->table as $counter => $join) { |
90 | - $result[] = $this->concatWhere(array_map(function ($item) use ($join, $counter) { |
|
90 | + $result[] = $this->concatWhere(array_map(function($item) use ($join, $counter) { |
|
91 | 91 | return $this->base->table() . '.' . $this->escapeField($item[0]) . ' = ' . $this->escapeField($join) . '.' . $this->escapeField($item[1]); |
92 | 92 | }, $this->onPairs[$counter])); |
93 | 93 | } |
@@ -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 $join; |
10 | 10 | |
11 | - public function join(string $table, ?string $alias = null, array $onPairs = [], string $joinType = 'left'): Pjoin |
|
11 | + public function join(string $table, ?string $alias = null, array $onPairs = [], string $joinType = 'left') : Pjoin |
|
12 | 12 | { |
13 | 13 | $this->join = new Pjoin($table, $alias, $onPairs, $joinType); |
14 | 14 | $this->join->base($this); |