@@ -134,8 +134,9 @@ discard block |
||
134 | 134 | */ |
135 | 135 | protected function setTable(string $tableName, string $tableAlias = ""): self |
136 | 136 | { |
137 | - if (!empty($tableAlias)) |
|
138 | - $this->tableAlias = $tableAlias; |
|
137 | + if (!empty($tableAlias)) { |
|
138 | + $this->tableAlias = $tableAlias; |
|
139 | + } |
|
139 | 140 | $this->tableName = $tableName; |
140 | 141 | return $this; |
141 | 142 | } |
@@ -150,8 +151,9 @@ discard block |
||
150 | 151 | |
151 | 152 | public function getQueryBuilder(): QueryBuilder |
152 | 153 | { |
153 | - if (!empty($this->queryBuild)) |
|
154 | - return $this->queryBuild; |
|
154 | + if (!empty($this->queryBuild)) { |
|
155 | + return $this->queryBuild; |
|
156 | + } |
|
155 | 157 | return new QueryBuilder($this->getInstance(), $this->getTable(), $this->getClassModel()); |
156 | 158 | } |
157 | 159 |