summaryrefslogtreecommitdiff
path: root/app/Console/LocaleSync.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Console/LocaleSync.php')
-rw-r--r--app/Console/LocaleSync.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/Console/LocaleSync.php b/app/Console/LocaleSync.php
index bc3918da..d62b40b5 100644
--- a/app/Console/LocaleSync.php
+++ b/app/Console/LocaleSync.php
@@ -23,9 +23,7 @@ class LocaleSync extends Base
$reference = include $reference_file;
foreach (new DirectoryIterator('app/Locale') as $fileInfo) {
-
if (! $fileInfo->isDot() && $fileInfo->isDir() && $fileInfo->getFilename() !== self::REF_LOCALE) {
-
$filename = 'app/Locale/'.$fileInfo->getFilename().'/translations.php';
echo $fileInfo->getFilename().' ('.$filename.')'.PHP_EOL;
@@ -42,11 +40,9 @@ class LocaleSync extends Base
$output .= 'return array('.PHP_EOL;
foreach ($reference as $key => $value) {
-
if (! empty($outdated[$key])) {
$output .= " '".str_replace("'", "\'", $key)."' => '".str_replace("'", "\'", $outdated[$key])."',\n";
- }
- else {
+ } else {
$output .= " // '".str_replace("'", "\'", $key)."' => '',\n";
}
}