Skip to content

Commit

Permalink
removed construct function
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Feb 21, 2020
1 parent 2fc45ed commit d8a0948
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 63 deletions.
8 changes: 0 additions & 8 deletions app/Console/Commands/BillReminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 0 additions & 8 deletions app/Console/Commands/FinishUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
8 changes: 0 additions & 8 deletions app/Console/Commands/InvoiceReminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 2 additions & 10 deletions app/Console/Commands/RecurringCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ class RecurringCheck extends Command
*/
protected $today;

/**
* Create a new command instance.
*/
public function __construct()
{
parent::__construct();
}

/**
* Execute the console command.
*
Expand Down Expand Up @@ -118,7 +110,7 @@ protected function recur($recurring, $schedule)
if ($this->today->eq(Date::parse($model->paid_at->format('Y-m-d')))) {
break;
}

$model->cloneable_relations = [];

// Create new record
Expand Down Expand Up @@ -162,7 +154,7 @@ protected function getDocumentClone($model, $date_field)
$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;
}
}
12 changes: 1 addition & 11 deletions app/Console/Commands/SampleData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
*
Expand Down
8 changes: 0 additions & 8 deletions app/Console/Commands/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
10 changes: 0 additions & 10 deletions app/Console/Commands/UserSeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit d8a0948

Please sign in to comment.