@@ -33,8 +33,9 @@ |
||
| 33 | 33 | |
| 34 | 34 | public function with($data = []) |
| 35 | 35 | { |
| 36 | - if($data) |
|
| 37 | - $this->dirty = true; |
|
| 36 | + if($data) { |
|
| 37 | + $this->dirty = true; |
|
| 38 | + } |
|
| 38 | 39 | foreach ($data as $key => $value) { |
| 39 | 40 | $this->data[$key] = $value; |
| 40 | 41 | } |
@@ -74,10 +74,11 @@ |
||
| 74 | 74 | $lines[] = $this->spaces(12) . "\$table->{$add}();"; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - if(!empty($lines)) |
|
| 78 | - return implode(PHP_EOL, $lines); |
|
| 79 | - else |
|
| 80 | - return ""; |
|
| 77 | + if(!empty($lines)) { |
|
| 78 | + return implode(PHP_EOL, $lines); |
|
| 79 | + } else { |
|
| 80 | + return ""; |
|
| 81 | + } |
|
| 81 | 82 | } |
| 82 | 83 | |
| 83 | 84 | protected function getFieldDeclaration($parts) |