1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 02:01:19 +02:00

PSR-2 fixes

This commit is contained in:
Toby Zerner
2015-07-05 21:46:57 +09:30
parent 9e58a30e16
commit 6fe1c73a49
11 changed files with 18 additions and 19 deletions

View File

@@ -112,8 +112,7 @@ class GenerateExtensionCommand extends Command
if ($file != '.' && $file != '..') {
if (is_dir($src.'/'.$file)) {
$this->recursiveCopy($src.'/'.$file, $dst.'/'.$file, $replacements);
}
else {
} else {
$contents = file_get_contents($src.'/'.$file);
$contents = str_replace(array_keys($replacements), array_values($replacements), $contents);