@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | $result = "<?php\n"; |
| 112 | 112 | |
| 113 | 113 | if (!$this->docComment->isEmpty()) { |
| 114 | - $result .= $this->docComment->render($indentLevel) . "\n"; |
|
| 114 | + $result .= $this->docComment->render($indentLevel)."\n"; |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | if (!empty($this->namespace)) { |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | if (!empty($this->uses)) { |
| 122 | - $result .= $this->renderUses($indentLevel) . "\n\n"; |
|
| 122 | + $result .= $this->renderUses($indentLevel)."\n\n"; |
|
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | $result .= $this->elements->render($indentLevel); |
@@ -211,7 +211,7 @@ |
||
| 211 | 211 | $result = ''; |
| 212 | 212 | |
| 213 | 213 | foreach ($this->elements as $element) { |
| 214 | - $result .= $element->render($indentLevel) . "\n\n"; |
|
| 214 | + $result .= $element->render($indentLevel)."\n\n"; |
|
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | return rtrim($result, "\n"); |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | public function render(int $indentLevel = 0): string |
| 117 | 117 | { |
| 118 | 118 | $lines = $this->lines; |
| 119 | - array_walk($lines, function (&$line) use ($indentLevel) { |
|
| 119 | + array_walk($lines, function(&$line) use ($indentLevel) { |
|
| 120 | 120 | $line = $this->addIndent($line, $indentLevel); |
| 121 | 121 | }); |
| 122 | 122 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | { |
| 25 | 25 | $lines = $this->getLines(); |
| 26 | 26 | |
| 27 | - array_walk($lines, function (&$line) use ($search, $replace) { |
|
| 27 | + array_walk($lines, function(&$line) use ($search, $replace) { |
|
| 28 | 28 | $line = str_replace($search, $replace, $line); |
| 29 | 29 | }); |
| 30 | 30 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $value = ''; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - $replaces[$prefix . $key . $postfix] = $value; |
|
| 41 | + $replaces[$prefix.$key.$postfix] = $value; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | return strtr($string, $replaces); |