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 ( 721d75...27e207 )
by Ronald
03:05
created
src/Event/AbstractEvent.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -455,6 +455,7 @@  discard block
 block discarded – undo
455 455
   /**
456 456
    * Transforms the event in a breakdown of days, hours and minutes with associated states.
457 457
    *
458
+   * @param EventItemizer $itemizer
458 459
    * @return array
459 460
    */
460 461
   public function itemize($itemizer) {
@@ -465,7 +466,7 @@  discard block
 block discarded – undo
465 466
   /**
466 467
    * Saves an event using the Store object
467 468
    *
468
-   * @param \Roomify\Bat\\Store\Store $store
469
+   * @param Store $store
469 470
    * @param string $granularity
470 471
    *
471 472
    * @return boolean
Please login to merge, or discard this patch.
src/Event/EventItemizer.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
262 262
       $itemized[EventItemizer::BAT_HOUR][$minute->format('Y')][$minute->format('n')]['d' . $minute->format('j')]['h' . $minute->format('G')] = -1;
263 263
       $counter++;
264 264
 
265
-      if ($counter == 60 && $start_minute!==0) {
265
+      if ($counter == 60 && $start_minute !== 0) {
266 266
         // Not a real hour - leave as is and move on
267 267
         $counter = 0;
268 268
         $start_minute = 0;
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -211,8 +211,7 @@  discard block
 block discarded – undo
211 211
         $itemized[EventItemizer::BAT_HOUR][$sy][$sm]['d' . $sd] = $itemized_same_day[EventItemizer::BAT_HOUR][$sy][$sm]['d' . $sd];
212 212
         $itemized[EventItemizer::BAT_MINUTE][$sy][$sm]['d' . $sd] = $itemized_same_day[EventItemizer::BAT_MINUTE][$sy][$sm]['d' . $sd];
213 213
       }
214
-    }
215
-    else {
214
+    } else {
216 215
       // Deal with the start day unless it starts on midnight precisely at which point the whole day is booked
217 216
       if (!($this->event->getStartDate()->format('H:i') == '00:00')) {
218 217
         $start_period = new \DatePeriod($start_date, $interval, new \DateTime($start_date->format("Y-n-j 23:59:59")));
@@ -266,8 +265,7 @@  discard block
 block discarded – undo
266 265
         // Not a real hour - leave as is and move on
267 266
         $counter = 0;
268 267
         $start_minute = 0;
269
-      }
270
-      elseif ($counter == 60 && $start_minute == 0) {
268
+      } elseif ($counter == 60 && $start_minute == 0) {
271 269
         // Did a real whole hour so initialize the hour
272 270
         $itemized[EventItemizer::BAT_HOUR][$minute->format('Y')][$minute->format('n')]['d' . $minute->format('j')]['h' . $minute->format('G')] = $this->event->getValue();
273 271
         // We have a whole hour so get rid of the minute info
Please login to merge, or discard this patch.