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 1 patch
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.
src/Event/EventItemizer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -134,10 +134,10 @@  discard block
 block discarded – undo
134 134
     $start = TRUE;
135 135
 
136 136
     // Cycle through each month
137
-    foreach($daterange as $date) {
137
+    foreach ($daterange as $date) {
138 138
 
139 139
       // Check if we have
140
-      if  (($date->format('Y-n') != $old_month) || ($start)) {
140
+      if (($date->format('Y-n') != $old_month) || ($start)) {
141 141
 
142 142
         $year = $date->format("Y");
143 143
         $dayinterval = new \DateInterval('P1D');
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
       }
232 232
 
233 233
       // Deal with the end date unless it ends just before midnight at which point we don't need to go further
234
-      if ($this->event->getEndDate()->format('H:i') == '23:59' ) {
234
+      if ($this->event->getEndDate()->format('H:i') == '23:59') {
235 235
         $itemized[EventItemizer::BAT_HOUR][$ey][$em]['d' . $ed] = array();
236 236
         $itemized[EventItemizer::BAT_MINUTE][$ey][$em]['d' . $ed] = array();
237 237
       } else {
@@ -259,14 +259,14 @@  discard block
 block discarded – undo
259 259
 
260 260
     $counter = (int)$period_start->format('i');
261 261
     $start_minute = $counter;
262
-    foreach($period as $minute) {
262
+    foreach ($period as $minute) {
263 263
       // Doing minutes so set the values in the minute array
264
-      $itemized[EventItemizer::BAT_MINUTE][$minute->format('Y')][$minute->format('n')]['d'. $minute->format('j')]['h'. $minute->format('G')]['m' .$minute->format('i')] = $this->event->getValue();
264
+      $itemized[EventItemizer::BAT_MINUTE][$minute->format('Y')][$minute->format('n')]['d' . $minute->format('j')]['h' . $minute->format('G')]['m' . $minute->format('i')] = $this->event->getValue();
265 265
       // Let the hours know that it cannot determine availability
266
-      $itemized[EventItemizer::BAT_HOUR][$minute->format('Y')][$minute->format('n')]['d'. $minute->format('j')]['h'. $minute->format('G')] = -1;
266
+      $itemized[EventItemizer::BAT_HOUR][$minute->format('Y')][$minute->format('n')]['d' . $minute->format('j')]['h' . $minute->format('G')] = -1;
267 267
       $counter++;
268 268
 
269
-      if ($counter == 60 && $start_minute!==0) {
269
+      if ($counter == 60 && $start_minute !== 0) {
270 270
         // Not a real hour - leave as is and move on
271 271
         $counter = 0;
272 272
         $start_minute = 0;
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
         // Did a real whole hour so initialize the hour
276 276
         $itemized[EventItemizer::BAT_HOUR][$minute->format('Y')][$minute->format('n')]['d' . $minute->format('j')]['h' . $minute->format('G')] = $this->event->getValue();
277 277
         // We have a whole hour so get rid of the minute info
278
-        unset($itemized[EventItemizer::BAT_MINUTE][$minute->format('Y')][$minute->format('n')]['d'. $minute->format('j')]['h'. $minute->format('G')]);
278
+        unset($itemized[EventItemizer::BAT_MINUTE][$minute->format('Y')][$minute->format('n')]['d' . $minute->format('j')]['h' . $minute->format('G')]);
279 279
         $counter = 0;
280 280
         $start_minute = 0;
281 281
       }
Please login to merge, or discard this patch.