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 ( 46f6a0...4503bb )
by Ronald
02:31
created
src/Event/AbstractEvent.php 2 patches
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
   /**
91 91
    * Returns the start date.
92 92
    *
93
-   * @return DateTime
93
+   * @return \DateTime
94 94
    */
95 95
   public function getStartDate() {
96 96
     return clone($this->start_date);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
   /**
108 108
    * Set the start date.
109 109
    *
110
-   * @param DateTime $start_date
110
+   * @param \DateTime $start_date
111 111
    */
112 112
   public function setStartDate(\DateTime $start_date) {
113 113
     $this->start_date = clone($start_date);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
   /**
117 117
    * Returns the end date.
118 118
    *
119
-   * @return DateTime
119
+   * @return \DateTime
120 120
    */
121 121
   public function getEndDate() {
122 122
     return clone($this->end_date);
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
   /**
134 134
    * Set the end date.
135 135
    *
136
-   * @param DateTime $end_date
136
+   * @param \DateTime $end_date
137 137
    */
138 138
   public function setEndDate(\DateTime $end_date) {
139 139
     $this->end_date = clone($end_date);
@@ -451,6 +451,7 @@  discard block
 block discarded – undo
451 451
   /**
452 452
    * Transforms the event in a breakdown of days, hours and minutes with associated states.
453 453
    *
454
+   * @param EventItemizer $itemizer
454 455
    * @return array
455 456
    */
456 457
   public function itemize($itemizer, $granularity = AbstractEvent::BAT_HOURLY) {
@@ -461,7 +462,7 @@  discard block
 block discarded – undo
461 462
   /**
462 463
    * Saves an event using the Store object
463 464
    *
464
-   * @param \Roomify\Bat\\Store\Store $store
465
+   * @param Store $store
465 466
    * @param string $granularity
466 467
    *
467 468
    * @return boolean
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -342,8 +342,7 @@
 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
     }
Please login to merge, or discard this patch.
src/Event/EventItemizer.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -147,8 +147,7 @@  discard block
 block discarded – undo
147 147
           // If we are in the same month the end date is the end date of the event
148 148
           if ($this->event->isSameMonth()) {
149 149
             $dayrange = new \DatePeriod($this->event->getStartDate(), $dayinterval, new \DateTime($this->event->getEndDate()->format("Y-n-j 23:59:59")));
150
-          }
151
-          else { // alternatively it is the last day of the start month
150
+          } else { // alternatively it is the last day of the start month
152 151
             $dayrange = new \DatePeriod($this->event->getStartDate(), $dayinterval, $this->event->endMonthDate($this->event->getStartDate()));
153 152
           }
154 153
           foreach ($dayrange as $day) {
@@ -214,8 +213,7 @@  discard block
 block discarded – undo
214 213
         $itemized[EventItemizer::BAT_HOUR][$sy][$sm]['d' . $sd] = $itemized_same_day[EventItemizer::BAT_HOUR][$sy][$sm]['d' . $sd];
215 214
         $itemized[EventItemizer::BAT_MINUTE][$sy][$sm]['d' . $sd] = $itemized_same_day[EventItemizer::BAT_MINUTE][$sy][$sm]['d' . $sd];
216 215
       }
217
-    }
218
-    else {
216
+    } else {
219 217
       // Deal with the start day unless it starts on midnight precisely at which point the whole day is booked
220 218
       if (!($this->event->getStartDate()->format('H:i') == '00:00')) {
221 219
         $start_period = new \DatePeriod($start_date, $interval, new \DateTime($start_date->format("Y-n-j 23:59:59")));
@@ -223,8 +221,7 @@  discard block
 block discarded – undo
223 221
         $itemized[EventItemizer::BAT_DAY][$sy][$sm]['d' . $sd] = -1;
224 222
         $itemized[EventItemizer::BAT_HOUR][$sy][$sm]['d' . $sd] = $itemized_start[EventItemizer::BAT_HOUR][$sy][$sm]['d' . $sd];
225 223
         $itemized[EventItemizer::BAT_MINUTE][$sy][$sm]['d' . $sd] = $itemized_start[EventItemizer::BAT_MINUTE][$sy][$sm]['d' . $sd];
226
-      }
227
-      else {
224
+      } else {
228 225
         // Just set an empty hour and minute
229 226
         $itemized[EventItemizer::BAT_HOUR][$sy][$sm]['d' . $sd] = array();
230 227
         $itemized[EventItemizer::BAT_MINUTE][$sy][$sm]['d' . $sd] = array();
@@ -270,8 +267,7 @@  discard block
 block discarded – undo
270 267
         // Not a real hour - leave as is and move on
271 268
         $counter = 0;
272 269
         $start_minute = 0;
273
-      }
274
-      elseif ($counter == 60 && $start_minute == 0) {
270
+      } elseif ($counter == 60 && $start_minute == 0) {
275 271
         // Did a real whole hour so initialize the hour
276 272
         $itemized[EventItemizer::BAT_HOUR][$minute->format('Y')][$minute->format('n')]['d' . $minute->format('j')]['h' . $minute->format('G')] = $this->event->getValue();
277 273
         // We have a whole hour so get rid of the minute info
Please login to merge, or discard this patch.