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

PSR-2 fixes

This commit is contained in:
Toby Zerner
2015-07-05 21:46:57 +09:30
parent b792fd2efd
commit 01ec661c3f
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);