Skip to content

Commit

Permalink
Auto Fix PSR12 Style
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-butti committed Feb 26, 2021
1 parent f3a7093 commit 290d1a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 0 additions & 1 deletion app/Http/Controllers/ConfiguratorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Http\Controllers;


class ConfiguratorController extends Controller
{
public function index()
Expand Down
1 change: 0 additions & 1 deletion app/Http/Controllers/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Http\Controllers;


class DashboardController extends Controller
{
public function index()
Expand Down
15 changes: 10 additions & 5 deletions app/Http/Livewire/Dashboard/Metrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,21 @@ public function mount()
{
$this->count = Configuration::count();
$this->total = Configuration::sum('counts');
$this->last4hours = Configuration::where('updated_at', '>',
$this->last4hours = Configuration::where(
'updated_at',
'>',
Carbon::now()->subHours(3)->toDateTimeString()
)->count();
$this->last24hours = Configuration::where('updated_at', '>',
$this->last24hours = Configuration::where(
'updated_at',
'>',
Carbon::now()->subHours(24)->toDateTimeString()
)->count();
$this->last3days = Configuration::where('updated_at', '>',
Carbon::now()->subHours(24*3)->toDateTimeString()
$this->last3days = Configuration::where(
'updated_at',
'>',
Carbon::now()->subHours(24 * 3)->toDateTimeString()
)->count();

}

public function render()
Expand Down

0 comments on commit 290d1a9

Please sign in to comment.