@@ -158,7 +158,9 @@ discard block |
||
158 | 158 | */ |
159 | 159 | public function dumpCreateStatement(PDO $db, $stream): void |
160 | 160 | { |
161 | - if (!$this->hasStructure()) return; |
|
161 | + if (!$this->hasStructure()) { |
|
162 | + return; |
|
163 | + } |
|
162 | 164 | |
163 | 165 | $stmt = $db->query('SHOW CREATE TABLE `'.$this->table->getName().'`'); |
164 | 166 | |
@@ -176,7 +178,9 @@ discard block |
||
176 | 178 | */ |
177 | 179 | public function dumpDropStatement($stream): void |
178 | 180 | { |
179 | - if (!$this->hasDrop()) return; |
|
181 | + if (!$this->hasDrop()) { |
|
182 | + return; |
|
183 | + } |
|
180 | 184 | |
181 | 185 | fwrite($stream, 'DROP TABLE IF EXISTS `'.$this->table->getName()."`;\r\n"); |
182 | 186 | } |
@@ -191,7 +195,9 @@ discard block |
||
191 | 195 | */ |
192 | 196 | public function dumpInsertStatement(PDO $db, $stream): void |
193 | 197 | { |
194 | - if (!$this->hasData()) return; |
|
198 | + if (!$this->hasData()) { |
|
199 | + return; |
|
200 | + } |
|
195 | 201 | |
196 | 202 | $dataDumper = new TableDataDumper($this); |
197 | 203 | $dataDumper->dump($db, $stream); |