timegridio/timegrid

View on GitHub
app/TG/Business/Dashboard.php

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Method init has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function init()
    {
        $this->boxes = [
            'appointments_active_today' => [
                'icon'  => 'check',
Severity: Minor
Found in app/TG/Business/Dashboard.php - About 1 hr to fix

Line exceeds 120 characters; contains 144 characters
Open

        $this->counter['appointments_active_tomorrow'] = $this->business->bookings()->active()->ofDate($this->time->tomorrow())->get()->count();

Line exceeds 120 characters; contains 138 characters
Open

        $this->counter['appointments_active_today'] = $this->business->bookings()->active()->ofDate($this->time->today())->get()->count();

Line exceeds 120 characters; contains 142 characters
Open

        $this->counter['appointments_canceled_today'] = $this->business->bookings()->canceled()->ofDate($this->time->today())->get()->count();

There are no issues that match your filters.

Category
Status