From d8a0948faf3d430b151cbff942bd5ed934af1dc2 Mon Sep 17 00:00:00 2001 From: denisdulici Date: Fri, 21 Feb 2020 11:12:52 +0300 Subject: [PATCH] removed construct function --- app/Console/Commands/BillReminder.php | 8 -------- app/Console/Commands/FinishUpdate.php | 8 -------- app/Console/Commands/InvoiceReminder.php | 8 -------- app/Console/Commands/RecurringCheck.php | 12 ++---------- app/Console/Commands/SampleData.php | 12 +----------- app/Console/Commands/Update.php | 8 -------- app/Console/Commands/UserSeed.php | 10 ---------- 7 files changed, 3 insertions(+), 63 deletions(-) diff --git a/app/Console/Commands/BillReminder.php b/app/Console/Commands/BillReminder.php index c0d14b9ec..b3a3df581 100644 --- a/app/Console/Commands/BillReminder.php +++ b/app/Console/Commands/BillReminder.php @@ -24,14 +24,6 @@ class BillReminder extends Command * @var string */ protected $description = 'Send reminders for bills'; - - /** - * Create a new command instance. - */ - public function __construct() - { - parent::__construct(); - } /** * Execute the console command. diff --git a/app/Console/Commands/FinishUpdate.php b/app/Console/Commands/FinishUpdate.php index 86d37f444..8d3b32f06 100644 --- a/app/Console/Commands/FinishUpdate.php +++ b/app/Console/Commands/FinishUpdate.php @@ -22,14 +22,6 @@ class FinishUpdate extends Command */ protected $description = 'Finish the update process through CLI'; - /** - * Create a new command instance. - */ - public function __construct() - { - parent::__construct(); - } - /** * Execute the console command. * diff --git a/app/Console/Commands/InvoiceReminder.php b/app/Console/Commands/InvoiceReminder.php index b03216960..7c76f1fe0 100644 --- a/app/Console/Commands/InvoiceReminder.php +++ b/app/Console/Commands/InvoiceReminder.php @@ -24,14 +24,6 @@ class InvoiceReminder extends Command * @var string */ protected $description = 'Send reminders for invoices'; - - /** - * Create a new command instance. - */ - public function __construct() - { - parent::__construct(); - } /** * Execute the console command. diff --git a/app/Console/Commands/RecurringCheck.php b/app/Console/Commands/RecurringCheck.php index bb945e904..68d0d646a 100644 --- a/app/Console/Commands/RecurringCheck.php +++ b/app/Console/Commands/RecurringCheck.php @@ -38,14 +38,6 @@ class RecurringCheck extends Command */ protected $today; - /** - * Create a new command instance. - */ - public function __construct() - { - parent::__construct(); - } - /** * Execute the console command. * @@ -118,7 +110,7 @@ class RecurringCheck extends Command if ($this->today->eq(Date::parse($model->paid_at->format('Y-m-d')))) { break; } - + $model->cloneable_relations = []; // Create new record @@ -162,7 +154,7 @@ class RecurringCheck extends Command $clone->$date_field = $this->today->format('Y-m-d'); $clone->due_at = $this->today->copy()->addDays($diff_days)->format('Y-m-d'); $clone->save(); - + return $clone; } } diff --git a/app/Console/Commands/SampleData.php b/app/Console/Commands/SampleData.php index e5017865a..43cf3d266 100755 --- a/app/Console/Commands/SampleData.php +++ b/app/Console/Commands/SampleData.php @@ -12,7 +12,7 @@ class SampleData extends Command * * @var string */ - protected $signature = 'sample-data:seed {--count=100 : total records for each item}'; + protected $signature = 'sample-data:seed {--count=100 : total records for each item}'; /** * The console command description. @@ -21,16 +21,6 @@ class SampleData extends Command */ protected $description = 'Seed for sample data'; - /** - * Create a new command instance. - * - * @return void - */ - public function __construct() - { - parent::__construct(); - } - /** * Execute the console command. * diff --git a/app/Console/Commands/Update.php b/app/Console/Commands/Update.php index 5747777d9..20cbfb2d2 100644 --- a/app/Console/Commands/Update.php +++ b/app/Console/Commands/Update.php @@ -32,14 +32,6 @@ class Update extends Command */ protected $description = 'Allows to update Akaunting and modules directly through CLI'; - /** - * Create a new command instance. - */ - public function __construct() - { - parent::__construct(); - } - /** * Execute the console command. * diff --git a/app/Console/Commands/UserSeed.php b/app/Console/Commands/UserSeed.php index f3af20276..d7e63618f 100644 --- a/app/Console/Commands/UserSeed.php +++ b/app/Console/Commands/UserSeed.php @@ -20,16 +20,6 @@ class UserSeed extends Command */ protected $description = 'Seed for specific user'; - /** - * Create a new command instance. - * - * @return void - */ - public function __construct() - { - parent::__construct(); - } - /** * Execute the console command. *