@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | * @param string $srcPath |
221 | 221 | * @param string $dstPath |
222 | 222 | */ |
223 | - private function processTemplates(string $srcPath, string &$dstPath){ |
|
223 | + private function processTemplates(string $srcPath, string &$dstPath) { |
|
224 | 224 | $dstPath = str_replace('.tpl', '.php', $dstPath); |
225 | 225 | $content = $this->fs->get($srcPath); |
226 | 226 | $processedContent = $this->replacePlaceholders($content); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | private function replacePlaceholders(string $content): string |
235 | 235 | { |
236 | 236 | $placeholders = [ |
237 | - '{{MODULE_NAMESPACE}}' => $this->getBaseNamespace() .'\\' . $this->getModuleName(), |
|
237 | + '{{MODULE_NAMESPACE}}' => $this->getBaseNamespace() . '\\' . $this->getModuleName(), |
|
238 | 238 | '{{MODULE_NAME}}' => $this->getModuleName(), |
239 | 239 | ]; |
240 | 240 |
@@ -207,8 +207,7 @@ |
||
207 | 207 | } else { |
208 | 208 | if ($processTemplates) { |
209 | 209 | $this->processTemplates($srcPath, $dstPath); |
210 | - } |
|
211 | - else { |
|
210 | + } else { |
|
212 | 211 | $this->fs->copy($srcPath, $dstPath); |
213 | 212 | } |
214 | 213 | $copiedFiles[] = $dstPath; |