From 25f8bac85fa2b2e3b205c7afe5ea6b26a63da0bb Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 7 Jul 2023 15:36:49 +1000 Subject: [PATCH] Clean up console commands --- app/Console/Commands/ImportMigrations.php | 4 ++-- app/Console/Commands/MobileLocalization.php | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/app/Console/Commands/ImportMigrations.php b/app/Console/Commands/ImportMigrations.php index 7e07073e2cf..9e227c72bd3 100644 --- a/app/Console/Commands/ImportMigrations.php +++ b/app/Console/Commands/ImportMigrations.php @@ -64,8 +64,6 @@ class ImportMigrations extends Command */ public function __construct() { - $this->faker = Factory::create(); - parent::__construct(); } @@ -76,6 +74,8 @@ public function __construct() */ public function handle() { + $this->faker = Factory::create(); + $this->buildCache(); $path = $this->option('path') ?? public_path('storage/migrations/import'); diff --git a/app/Console/Commands/MobileLocalization.php b/app/Console/Commands/MobileLocalization.php index e4d12c98bc3..482cf9042ad 100644 --- a/app/Console/Commands/MobileLocalization.php +++ b/app/Console/Commands/MobileLocalization.php @@ -93,17 +93,6 @@ private function flutterResources() $text = str_replace(['', ''], '', $text); $text = str_replace(['', ''], '', $text); -//replace the three lines above with this -// if($language->locale == 'ar') { -// $text = str_replace('\n', " ", $text); -// } - -// $text = str_replace(['', '','', '','', ''], '', $text); -// $text = str_replace('"', "'", $text); - - - - echo "'$key': '$text',\n"; }