app/TG/Business/Dashboard.php
Method init
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function init()
{
$this->boxes = [
'appointments_active_today' => [
'icon' => 'check',
- Create a ticketCreate a ticket
Line exceeds 120 characters; contains 144 characters Open
Open
$this->counter['appointments_active_tomorrow'] = $this->business->bookings()->active()->ofDate($this->time->tomorrow())->get()->count();
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 138 characters Open
Open
$this->counter['appointments_active_today'] = $this->business->bookings()->active()->ofDate($this->time->today())->get()->count();
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 142 characters Open
Open
$this->counter['appointments_canceled_today'] = $this->business->bookings()->canceled()->ofDate($this->time->today())->get()->count();
- Create a ticketCreate a ticket
- Exclude checks