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.
Passed
Branch master (57785c)
by Ariel
11:54
created
src/ICalParser.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      * Add to $this->ical array one value and key.
170 170
      *
171 171
      * @param {string} $component This could be VTODO, VEVENT, VCALENDAR, ...
172
-     * @param {string} $keyword   The keyword, for example DTSTART
172
+     * @param false|string $keyword   The keyword, for example DTSTART
173 173
      * @param {string} $value     The value, for example 20110105T090000Z
174 174
      *
175 175
      * @return {None}
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     /**
232 232
      * Get a key-value pair of a string.
233 233
      *
234
-     * @param {string} $text which is like "VCALENDAR:Begin" or "LOCATION:"
234
+     * @param string $text which is like "VCALENDAR:Begin" or "LOCATION:"
235 235
      *
236 236
      * @return {array} array("VCALENDAR", "Begin")
237 237
      */
@@ -749,7 +749,7 @@  discard block
 block discarded – undo
749 749
      * Returns a boolean value whether the current calendar has events or not
750 750
      *
751 751
      * @param {array} $events    An array with events.
752
-     * @param {array} $sortOrder Either SORT_ASC, SORT_DESC, SORT_REGULAR,
752
+     * @param integer $sortOrder Either SORT_ASC, SORT_DESC, SORT_REGULAR,
753 753
      *                           SORT_NUMERIC, SORT_STRING
754 754
      *
755 755
      * @return {boolean}
Please login to merge, or discard this patch.
Spacing   +12 added lines, -13 removed lines patch added patch discarded remove patch
@@ -295,11 +295,11 @@  discard block
 block discarded – undo
295 295
         $icalDate = str_replace('T', '', $icalDate);
296 296
         $icalDate = str_replace('Z', '', $icalDate);
297 297
 
298
-        $pattern = '/([0-9]{4})';   // 1: YYYY
299
-        $pattern .= '([0-9]{2})';    // 2: MM
300
-        $pattern .= '([0-9]{2})';    // 3: DD
301
-        $pattern .= '([0-9]{0,2})';  // 4: HH
302
-        $pattern .= '([0-9]{0,2})';  // 5: MM
298
+        $pattern = '/([0-9]{4})'; // 1: YYYY
299
+        $pattern .= '([0-9]{2})'; // 2: MM
300
+        $pattern .= '([0-9]{2})'; // 3: DD
301
+        $pattern .= '([0-9]{0,2})'; // 4: HH
302
+        $pattern .= '([0-9]{0,2})'; // 5: MM
303 303
         $pattern .= '([0-9]{0,2})/'; // 6: SS
304 304
         preg_match($pattern, $icalDate, $date);
305 305
 
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
                             $anEvent['DTEND'] = date('Ymd\THis', $recurring_timestamp + $event_timestamp_offset);
439 439
 
440 440
                             $search_date = $anEvent['DTSTART'];
441
-                            $is_excluded = array_filter($anEvent['EXDATE_array'], function ($val) use ($search_date) {
441
+                            $is_excluded = array_filter($anEvent['EXDATE_array'], function($val) use ($search_date) {
442 442
                                 return is_string($val) && strpos($search_date, $val) === 0;
443 443
                             });
444 444
 
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
                                     $anEvent['DTEND'] = date('Ymd\THis', $day_recurring_timestamp + $event_timestamp_offset);
482 482
 
483 483
                                     $search_date = $anEvent['DTSTART'];
484
-                                    $is_excluded = array_filter($anEvent['EXDATE_array'], function ($val) use ($search_date) { return is_string($val) && strpos($search_date, $val) === 0; });
484
+                                    $is_excluded = array_filter($anEvent['EXDATE_array'], function($val) use ($search_date) { return is_string($val) && strpos($search_date, $val) === 0; });
485 485
 
486 486
                                     if (!$is_excluded) {
487 487
                                         $events[] = $anEvent;
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
                                     $anEvent['DTEND'] = date('Ymd\THis', $this->iCalDateToUnixTimestamp($anEvent['DTSTART']) + $event_timestamp_offset);
513 513
 
514 514
                                     $search_date = $anEvent['DTSTART'];
515
-                                    $is_excluded = array_filter($anEvent['EXDATE_array'], function ($val) use ($search_date) { return is_string($val) && strpos($search_date, $val) === 0; });
515
+                                    $is_excluded = array_filter($anEvent['EXDATE_array'], function($val) use ($search_date) { return is_string($val) && strpos($search_date, $val) === 0; });
516 516
 
517 517
                                     if (!$is_excluded) {
518 518
                                         $events[] = $anEvent;
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
                                     $anEvent['DTEND'] = date('Ymd\THis', $this->iCalDateToUnixTimestamp($anEvent['DTSTART']) + $event_timestamp_offset);
535 535
 
536 536
                                     $search_date = $anEvent['DTSTART'];
537
-                                    $is_excluded = array_filter($anEvent['EXDATE_array'], function ($val) use ($search_date) { return is_string($val) && strpos($search_date, $val) === 0; });
537
+                                    $is_excluded = array_filter($anEvent['EXDATE_array'], function($val) use ($search_date) { return is_string($val) && strpos($search_date, $val) === 0; });
538 538
 
539 539
                                     if (!$is_excluded) {
540 540
                                         $events[] = $anEvent;
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
                                     $anEvent['DTEND'] = date('Ymd\THis', $this->iCalDateToUnixTimestamp($anEvent['DTSTART']) + $event_timestamp_offset);
579 579
 
580 580
                                     $search_date = $anEvent['DTSTART'];
581
-                                    $is_excluded = array_filter($anEvent['EXDATE_array'], function ($val) use ($search_date) { return is_string($val) && strpos($search_date, $val) === 0; });
581
+                                    $is_excluded = array_filter($anEvent['EXDATE_array'], function($val) use ($search_date) { return is_string($val) && strpos($search_date, $val) === 0; });
582 582
 
583 583
                                     if (!$is_excluded) {
584 584
                                         $events[] = $anEvent;
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
                                     $anEvent['DTEND'] = date('Ymd\THis', $this->iCalDateToUnixTimestamp($anEvent['DTSTART']) + $event_timestamp_offset);
609 609
 
610 610
                                     $search_date = $anEvent['DTSTART'];
611
-                                    $is_excluded = array_filter($anEvent['EXDATE_array'], function ($val) use ($search_date) { return is_string($val) && strpos($search_date, $val) === 0; });
611
+                                    $is_excluded = array_filter($anEvent['EXDATE_array'], function($val) use ($search_date) { return is_string($val) && strpos($search_date, $val) === 0; });
612 612
 
613 613
                                     if (!$is_excluded) {
614 614
                                         $events[] = $anEvent;
@@ -722,8 +722,7 @@  discard block
 block discarded – undo
722 722
         $extendedEvents = [];
723 723
 
724 724
         $rangeStart = ($rangeStart === false) ?
725
-            new DateTime() :
726
-            new DateTime($rangeStart);
725
+            new DateTime() : new DateTime($rangeStart);
727 726
 
728 727
         if ($rangeEnd === false or $rangeEnd <= 0) {
729 728
             $rangeEnd = new DateTime('2038/01/18');
Please login to merge, or discard this patch.
ICalReaderServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     private function registerICal()
27 27
     {
28
-        $this->app->bind('ical', function ($app) {
28
+        $this->app->bind('ical', function($app) {
29 29
             return new ICalEvents($app);
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
src/ICalEvents.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $timezone = $this->timezone;
48 48
 
49
-        return collect($events)->map(function ($event) use ($timezone) {
49
+        return collect($events)->map(function($event) use ($timezone) {
50 50
             return new ICalEvent($event, $timezone);
51 51
         });
52 52
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $this->autoload();
64 64
 
65
-        $filtered = $this->events->filter(function ($event) use ($atDatetime) {
65
+        $filtered = $this->events->filter(function($event) use ($atDatetime) {
66 66
             return $event->holds($atDatetime);
67 67
         });
68 68
 
Please login to merge, or discard this patch.