@@ -112,8 +112,9 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | private function bindLabel(string $prefix = null): string |
| 114 | 114 | { |
| 115 | - if ($this->bind_label !== null) |
|
| 116 | - return $this->bind_label; |
|
| 115 | + if ($this->bind_label !== null) { |
|
| 116 | + return $this->bind_label; |
|
| 117 | + } |
|
| 117 | 118 | |
| 118 | 119 | if (is_string($this->right)) { |
| 119 | 120 | $this->bind_label = $this->right; |
@@ -123,8 +124,9 @@ discard block |
||
| 123 | 124 | $this->bind_label = $this->left; |
| 124 | 125 | } |
| 125 | 126 | |
| 126 | - if ($prefix !== null) |
|
| 127 | - $this->bind_label = $prefix . '_' . $this->bind_label; |
|
| 127 | + if ($prefix !== null) { |
|
| 128 | + $this->bind_label = $prefix . '_' . $this->bind_label; |
|
| 129 | + } |
|
| 128 | 130 | |
| 129 | 131 | return $this->bind_label; |
| 130 | 132 | } |
@@ -12,10 +12,11 @@ |
||
| 12 | 12 | { |
| 13 | 13 | if ($predicates !== null){ |
| 14 | 14 | foreach ($predicates as $predicate) { |
| 15 | - if (is_string($predicate)) |
|
| 16 | - $this->and($predicate); |
|
| 17 | - else |
|
| 18 | - $this->and($predicate, $predicate->bindings()); |
|
| 15 | + if (is_string($predicate)) { |
|
| 16 | + $this->and($predicate); |
|
| 17 | + } else { |
|
| 18 | + $this->and($predicate, $predicate->bindings()); |
|
| 19 | + } |
|
| 19 | 20 | } |
| 20 | 21 | } |
| 21 | 22 | } |
@@ -39,8 +39,9 @@ discard block |
||
| 39 | 39 | Clause::LIMIT |
| 40 | 40 | ] as $clause |
| 41 | 41 | ) { |
| 42 | - if($this->clause($clause) === null) |
|
| 43 | - continue; |
|
| 42 | + if($this->clause($clause) === null) { |
|
| 43 | + continue; |
|
| 44 | + } |
|
| 44 | 45 | |
| 45 | 46 | $ret .= ' ' . $this->clause($clause); |
| 46 | 47 | } |
@@ -71,8 +72,9 @@ discard block |
||
| 71 | 72 | */ |
| 72 | 73 | public function selectAlso(array $setter): self |
| 73 | 74 | { |
| 74 | - if (empty($setter)) |
|
| 75 | - throw new \InvalidArgumentException('EMPTY_SETTER_ARRAY'); |
|
| 75 | + if (empty($setter)) { |
|
| 76 | + throw new \InvalidArgumentException('EMPTY_SETTER_ARRAY'); |
|
| 77 | + } |
|
| 76 | 78 | |
| 77 | 79 | foreach ($setter as $alias => $column) { |
| 78 | 80 | |