Passed
Pull Request — master (#239)
by
unknown
02:56
created
src/Libraries/Module/ModuleManager.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,8 +207,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.