@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | protected function indent($text) |
| 78 | 78 | { |
| 79 | 79 | $pad = str_pad('', $this->indent, ' '); |
| 80 | - $lines = array_map(function ($line) use ($pad) { |
|
| 80 | + $lines = array_map(function($line) use ($pad) { |
|
| 81 | 81 | return $pad . $line; |
| 82 | 82 | }, explode("\n", $text)); |
| 83 | 83 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | */ |
| 176 | 176 | protected function prepareArgsLine(ParsedMethod $method) |
| 177 | 177 | { |
| 178 | - $args = join(', ', array_map(function (ParsedParameter $param) { |
|
| 178 | + $args = join(', ', array_map(function(ParsedParameter $param) { |
|
| 179 | 179 | $byReference = $param->isPassedByReference() ? '&' : ''; |
| 180 | 180 | |
| 181 | 181 | return $byReference . '$' . $param->name; |
@@ -471,11 +471,11 @@ |
||
| 471 | 471 | ($prefix ? "$prefix " : '') . // List of class modifiers |
| 472 | 472 | 'class ' . // 'class' keyword with one space |
| 473 | 473 | $this->name . // Name of the class |
| 474 | - ' extends '. // 'extends' keyword with |
|
| 474 | + ' extends ' . // 'extends' keyword with |
|
| 475 | 475 | $this->parentClassName . // Name of the parent class |
| 476 | 476 | ($this->interfaces ? ' implements ' . join(', ', $this->interfaces) : '') . "\n" . // Interfaces list |
| 477 | 477 | "{\n" . // Start of class definition |
| 478 | - ($this->traits ? $this->indent('use ' . join(', ', $this->traits) .';'."\n") : '') . "\n" . // Traits list |
|
| 478 | + ($this->traits ? $this->indent('use ' . join(', ', $this->traits) . ';' . "\n") : '') . "\n" . // Traits list |
|
| 479 | 479 | $this->indent(join("\n", $this->propertiesCode)) . "\n" . // Property definitions |
| 480 | 480 | $this->indent(join("\n", $this->methodsCode)) . "\n" . // Method definitions |
| 481 | 481 | "}" // End of class definition |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | 'use ' . join(', ', array(-1 => $this->parentClassName) + $this->traits) . |
| 117 | 117 | $this->getMethodAliasesCode() |
| 118 | 118 | ) . "\n" . // Use traits and aliases section |
| 119 | - $this->indent(join("\n", $this->methodsCode)) . "\n". // Method definitions |
|
| 119 | + $this->indent(join("\n", $this->methodsCode)) . "\n" . // Method definitions |
|
| 120 | 120 | "}" // End of trait body |
| 121 | 121 | ); |
| 122 | 122 | |