removed construct function

This commit is contained in:
denisdulici 2020-02-21 11:12:52 +03:00
parent 2fc45ed581
commit d8a0948faf
7 changed files with 3 additions and 63 deletions

View File

@ -24,14 +24,6 @@ class BillReminder extends Command
* @var string * @var string
*/ */
protected $description = 'Send reminders for bills'; protected $description = 'Send reminders for bills';
/**
* Create a new command instance.
*/
public function __construct()
{
parent::__construct();
}
/** /**
* Execute the console command. * Execute the console command.

View File

@ -22,14 +22,6 @@ class FinishUpdate extends Command
*/ */
protected $description = 'Finish the update process through CLI'; protected $description = 'Finish the update process through CLI';
/**
* Create a new command instance.
*/
public function __construct()
{
parent::__construct();
}
/** /**
* Execute the console command. * Execute the console command.
* *

View File

@ -24,14 +24,6 @@ class InvoiceReminder extends Command
* @var string * @var string
*/ */
protected $description = 'Send reminders for invoices'; protected $description = 'Send reminders for invoices';
/**
* Create a new command instance.
*/
public function __construct()
{
parent::__construct();
}
/** /**
* Execute the console command. * Execute the console command.

View File

@ -38,14 +38,6 @@ class RecurringCheck extends Command
*/ */
protected $today; protected $today;
/**
* Create a new command instance.
*/
public function __construct()
{
parent::__construct();
}
/** /**
* Execute the console command. * 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')))) { if ($this->today->eq(Date::parse($model->paid_at->format('Y-m-d')))) {
break; break;
} }
$model->cloneable_relations = []; $model->cloneable_relations = [];
// Create new record // Create new record
@ -162,7 +154,7 @@ class RecurringCheck extends Command
$clone->$date_field = $this->today->format('Y-m-d'); $clone->$date_field = $this->today->format('Y-m-d');
$clone->due_at = $this->today->copy()->addDays($diff_days)->format('Y-m-d'); $clone->due_at = $this->today->copy()->addDays($diff_days)->format('Y-m-d');
$clone->save(); $clone->save();
return $clone; return $clone;
} }
} }

View File

@ -12,7 +12,7 @@ class SampleData extends Command
* *
* @var string * @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. * The console command description.
@ -21,16 +21,6 @@ class SampleData extends Command
*/ */
protected $description = 'Seed for sample data'; protected $description = 'Seed for sample data';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/** /**
* Execute the console command. * Execute the console command.
* *

View File

@ -32,14 +32,6 @@ class Update extends Command
*/ */
protected $description = 'Allows to update Akaunting and modules directly through CLI'; 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. * Execute the console command.
* *

View File

@ -20,16 +20,6 @@ class UserSeed extends Command
*/ */
protected $description = 'Seed for specific user'; protected $description = 'Seed for specific user';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/** /**
* Execute the console command. * Execute the console command.
* *