@@ -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 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $this->join($table, $alias, $onPairs, $joinType); |
31 | 31 | } |
32 | 32 | |
33 | - public function join(string $table, ?string $alias = null, array $onPairs = [], string $joinType = 'left'): Join |
|
33 | + public function join(string $table, ?string $alias = null, array $onPairs = [], string $joinType = 'left') : Join |
|
34 | 34 | { |
35 | 35 | $this->counter++; |
36 | 36 | $this->table[$this->counter] = $table; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | return $this; |
50 | 50 | } |
51 | 51 | |
52 | - public function setAlias(?string $alias): Join |
|
52 | + public function setAlias(?string $alias) : Join |
|
53 | 53 | { |
54 | 54 | if (!is_null($alias)) { |
55 | 55 | $this->alias[$this->counter] = $alias; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | if (!empty($this->onPairs)) { |
82 | 82 | $result = []; |
83 | 83 | foreach ($this->table as $counter => $join) { |
84 | - $result[] = $this->concatWhere(array_map(function ($item) use ($join) { |
|
84 | + $result[] = $this->concatWhere(array_map(function($item) use ($join) { |
|
85 | 85 | return $this->base->table() . '.' . $this->escapeField($item[0]) . ' = ' . $this->escapeField($join) . '.' . $this->escapeField($item[1]); |
86 | 86 | }, $this->onPairs[$counter])); |
87 | 87 | } |