mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 13:54:34 -04:00
Clean up console commands
This commit is contained in:
parent
abf8f87b68
commit
25f8bac85f
@ -64,8 +64,6 @@ class ImportMigrations extends Command
|
|||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->faker = Factory::create();
|
|
||||||
|
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,6 +74,8 @@ class ImportMigrations extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
$this->faker = Factory::create();
|
||||||
|
|
||||||
$this->buildCache();
|
$this->buildCache();
|
||||||
|
|
||||||
$path = $this->option('path') ?? public_path('storage/migrations/import');
|
$path = $this->option('path') ?? public_path('storage/migrations/import');
|
||||||
|
@ -93,17 +93,6 @@ class MobileLocalization extends Command
|
|||||||
$text = str_replace(['<i>', '</i>'], '', $text);
|
$text = str_replace(['<i>', '</i>'], '', $text);
|
||||||
$text = str_replace(['<strong>', '</strong>'], '', $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";
|
echo "'$key': '$text',\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user