Skip to content

Commit

Permalink
Clean up console commands
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Jul 7, 2023
1 parent abf8f87 commit 25f8bac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/ImportMigrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ class ImportMigrations extends Command
*/
public function __construct()
{
$this->faker = Factory::create();

parent::__construct();
}

Expand All @@ -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');
Expand Down
11 changes: 0 additions & 11 deletions app/Console/Commands/MobileLocalization.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,6 @@ private function flutterResources()
$text = str_replace(['<i>', '</i>'], '', $text);
$text = str_replace(['<strong>', '</strong>'], '', $text);

//replace the three lines above with this
// if($language->locale == 'ar') {
// $text = str_replace('\n', " ", $text);
// }

// $text = str_replace(['<strong>', '</strong>','<i>', '</i>','<b>', '</b>'], '', $text);
// $text = str_replace('"', "'", $text);




echo "'$key': '$text',\n";
}

Expand Down

0 comments on commit 25f8bac

Please sign in to comment.