Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Locale / TranslationStatusCommand.php
index 2d92e833dd32b51d5a0a7b8c7ecd8a1ab7299f51..95ed676fd8bd75043fe2d546768d310bbe31f2dd 100644 (file)
@@ -86,11 +86,14 @@ class TranslationStatusCommand extends Command
 
         if (!$languages) {
             $io->info($this->trans('commands.locale.translation.status.messages.no-languages'));
-            return;
-        } elseif (empty($status)) {
+            return 1;
+        }
+
+        if (empty($status)) {
             $io->info($this->trans('commands.locale.translation.status.messages.no-translations'));
-            return;
+            return 1;
         }
+
         if ($languages) {
             $projectsStatus = $this->projectsStatus();
 
@@ -109,5 +112,7 @@ class TranslationStatusCommand extends Command
                 $io->table($tableHeader, $tableRows, 'compact');
             }
         }
+
+        return 0;
     }
 }