@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function bindLabel(string $prefix = null): string |
| 68 | 68 | { |
| 69 | - if($this->bind_label !== null) |
|
| 69 | + if ($this->bind_label !== null) |
|
| 70 | 70 | return $this->bind_label; |
| 71 | 71 | |
| 72 | 72 | if (is_string($this->right)) { |
@@ -77,8 +77,8 @@ discard block |
||
| 77 | 77 | $this->bind_label = $this->left; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - if($prefix !== null) |
|
| 81 | - $this->bind_label = $prefix . '_' . $this->bind_label; |
|
| 80 | + if ($prefix !== null) |
|
| 81 | + $this->bind_label = $prefix.'_'.$this->bind_label; |
|
| 82 | 82 | |
| 83 | 83 | return $this->bind_label; |
| 84 | 84 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | public function withValue($value, string $bind_prefix = null): self |
| 87 | 87 | { |
| 88 | 88 | $this->bindings[$this->bindLabel($bind_prefix)] = $value; |
| 89 | - $this->right = ':' . $this->bindLabel($bind_prefix); |
|
| 89 | + $this->right = ':'.$this->bindLabel($bind_prefix); |
|
| 90 | 90 | return $this; |
| 91 | 91 | } |
| 92 | 92 | |
@@ -98,11 +98,11 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | $bind_label = $this->bindLabel($bind_prefix); |
| 100 | 100 | foreach ($values as $index => $val) { |
| 101 | - $this->bindings[sprintf('%s_%d',$bind_label, $index)] = $val; |
|
| 101 | + $this->bindings[sprintf('%s_%d', $bind_label, $index)] = $val; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | $this->operator = 'IN'; |
| 105 | - $this->right = '(:' . implode(',:', array_keys($this->bindings)) . ')'; |
|
| 105 | + $this->right = '(:'.implode(',:', array_keys($this->bindings)).')'; |
|
| 106 | 106 | |
| 107 | 107 | return $this; |
| 108 | 108 | } |
@@ -66,8 +66,9 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function bindLabel(string $prefix = null): string |
| 68 | 68 | { |
| 69 | - if($this->bind_label !== null) |
|
| 70 | - return $this->bind_label; |
|
| 69 | + if($this->bind_label !== null) { |
|
| 70 | + return $this->bind_label; |
|
| 71 | + } |
|
| 71 | 72 | |
| 72 | 73 | if (is_string($this->right)) { |
| 73 | 74 | $this->bind_label = $this->right; |
@@ -77,8 +78,9 @@ discard block |
||
| 77 | 78 | $this->bind_label = $this->left; |
| 78 | 79 | } |
| 79 | 80 | |
| 80 | - if($prefix !== null) |
|
| 81 | - $this->bind_label = $prefix . '_' . $this->bind_label; |
|
| 81 | + if($prefix !== null) { |
|
| 82 | + $this->bind_label = $prefix . '_' . $this->bind_label; |
|
| 83 | + } |
|
| 82 | 84 | |
| 83 | 85 | return $this->bind_label; |
| 84 | 86 | } |