Completed
Push — master ( ae3a9a...95666a )
by Ariel
11:17
created
src/Models/Appointment.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -438,10 +438,10 @@  discard block
 block discarded – undo
438 438
     public function scopeUnarchived($query)
439 439
     {
440 440
         return $query
441
-            ->where(function ($query) {
441
+            ->where(function($query) {
442 442
                 $query->whereIn('status', [Self::STATUS_RESERVED, Self::STATUS_CONFIRMED])
443 443
                     ->where('start_at', '<=', Carbon::parse('today midnight')->timezone('UTC'))
444
-                    ->orWhere(function ($query) {
444
+                    ->orWhere(function($query) {
445 445
                         $query->where('start_at', '>=', Carbon::parse('today midnight')->timezone('UTC'));
446 446
                     });
447 447
             });
@@ -524,17 +524,17 @@  discard block
 block discarded – undo
524 524
     public function scopeAffectingInterval($query, Carbon $startAt, Carbon $finishAt)
525 525
     {
526 526
         return $query
527
-            ->where(function ($query) use ($startAt, $finishAt) {
527
+            ->where(function($query) use ($startAt, $finishAt) {
528 528
 
529
-                $query->where(function ($query) use ($startAt, $finishAt) {
529
+                $query->where(function($query) use ($startAt, $finishAt) {
530 530
                     $query->where('finish_at', '>=', $finishAt->timezone('UTC'))
531 531
                             ->where('start_at', '<', $startAt->timezone('UTC'));
532 532
                 })
533
-                ->orWhere(function ($query) use ($startAt, $finishAt) {
533
+                ->orWhere(function($query) use ($startAt, $finishAt) {
534 534
                     $query->where('finish_at', '<=', $finishAt->timezone('UTC'))
535 535
                             ->where('finish_at', '>', $startAt->timezone('UTC'));
536 536
                 })
537
-                ->orWhere(function ($query) use ($startAt, $finishAt) {
537
+                ->orWhere(function($query) use ($startAt, $finishAt) {
538 538
                     $query->where('start_at', '>=', $startAt->timezone('UTC'))
539 539
                             ->where('start_at', '<', $finishAt->timezone('UTC'));
540 540
                 });
Please login to merge, or discard this patch.