GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( d1dd9b...46f6a0 )
by Ronald
03:34
created
src/Event/AbstractEvent.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -342,8 +342,7 @@  discard block
 block discarded – undo
342 342
     if ($this->dateIsEarlier($start) &&
343 343
       ($this->dateIsInRange($end) || $this->dateIsLater($end))) {
344 344
       $overlaps = TRUE;
345
-    }
346
-    elseif ($this->dateIsInRange($start) &&
345
+    } elseif ($this->dateIsInRange($start) &&
347 346
       ($this->dateIsInRange($end) || $this->dateIsLater($end))) {
348 347
       $overlaps = TRUE;
349 348
     }
@@ -478,8 +477,7 @@  discard block
 block discarded – undo
478 477
         $itemized[AbstractEvent::BAT_HOUR][$sy][$sm]['d' . $sd] = $itemized_same_day[AbstractEvent::BAT_HOUR][$sy][$sm]['d' . $sd];
479 478
         $itemized[AbstractEvent::BAT_MINUTE][$sy][$sm]['d' . $sd] = $itemized_same_day[AbstractEvent::BAT_MINUTE][$sy][$sm]['d' . $sd];
480 479
       }
481
-    }
482
-    else {
480
+    } else {
483 481
       // Deal with the start day unless it starts on midnight precisely at which point the whole day is booked
484 482
       if (!($this->start_date->format('H:i') == '00:00')) {
485 483
         $start_period = new \DatePeriod($start_date, $interval, new \DateTime($start_date->format("Y-n-j 23:59:59")));
@@ -487,8 +485,7 @@  discard block
 block discarded – undo
487 485
         $itemized[AbstractEvent::BAT_DAY][$sy][$sm]['d' . $sd] = -1;
488 486
         $itemized[AbstractEvent::BAT_HOUR][$sy][$sm]['d' . $sd] = $itemized_start[AbstractEvent::BAT_HOUR][$sy][$sm]['d' . $sd];
489 487
         $itemized[AbstractEvent::BAT_MINUTE][$sy][$sm]['d' . $sd] = $itemized_start[AbstractEvent::BAT_MINUTE][$sy][$sm]['d' . $sd];
490
-      }
491
-      else {
488
+      } else {
492 489
         // Just set an empty hour and minute
493 490
         $itemized[AbstractEvent::BAT_HOUR][$sy][$sm]['d' . $sd] = array();
494 491
         $itemized[AbstractEvent::BAT_MINUTE][$sy][$sm]['d' . $sd] = array();
@@ -533,8 +530,7 @@  discard block
 block discarded – undo
533 530
         // Not a real hour - leave as is and move on
534 531
         $counter = 0;
535 532
         $start_minute = 0;
536
-      }
537
-      elseif ($counter == 60 && $start_minute == 0) {
533
+      } elseif ($counter == 60 && $start_minute == 0) {
538 534
         // Did a real whole hour so initialize the hour
539 535
         $itemized[AbstractEvent::BAT_HOUR][$minute->format('Y')][$minute->format('n')]['d' . $minute->format('j')]['h' . $minute->format('G')] = $this->getValue();
540 536
         // We have a whole hour so get rid of the minute info
@@ -582,8 +578,7 @@  discard block
 block discarded – undo
582 578
           // If we are in the same month the end date is the end date of the event
583 579
           if ($this->isSameMonth()) {
584 580
             $dayrange = new \DatePeriod($this->start_date, $dayinterval, new \DateTime($this->end_date->format("Y-n-j 23:59:59")));
585
-          }
586
-          else { // alternatively it is the last day of the start month
581
+          } else { // alternatively it is the last day of the start month
587 582
             $dayrange = new \DatePeriod($this->start_date, $dayinterval, $this->endMonthDate($this->start_date));
588 583
           }
589 584
           foreach ($dayrange as $day) {
Please login to merge, or discard this patch.