@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | * @param string $srcPath |
| 201 | 201 | * @param string $dstPath |
| 202 | 202 | */ |
| 203 | - private function processTemplates(string $srcPath, string $dstPath){ |
|
| 203 | + private function processTemplates(string $srcPath, string $dstPath) { |
|
| 204 | 204 | $dstPath = str_replace('.tpl', '.php', $dstPath); |
| 205 | 205 | $content = $this->fs->get($srcPath); |
| 206 | 206 | $processedContent = $this->replacePlaceholders($content); |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | private function replacePlaceholders(string $content): string |
| 215 | 215 | { |
| 216 | 216 | $placeholders = [ |
| 217 | - '{{MODULE_NAMESPACE}}' => $this->getBaseNamespace() .'\\' . $this->getModuleName(), |
|
| 217 | + '{{MODULE_NAMESPACE}}' => $this->getBaseNamespace() . '\\' . $this->getModuleName(), |
|
| 218 | 218 | '{{MODULE_NAME}}' => $this->getModuleName(), |
| 219 | 219 | ]; |
| 220 | 220 | |
@@ -188,8 +188,7 @@ |
||
| 188 | 188 | } else { |
| 189 | 189 | if ($processTemplates) { |
| 190 | 190 | $this->processTemplates($srcPath, $dstPath); |
| 191 | - } |
|
| 192 | - else { |
|
| 191 | + } else { |
|
| 193 | 192 | $this->fs->copy($srcPath, $dstPath); |
| 194 | 193 | } |
| 195 | 194 | } |