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 ( 172650...cb4957 )
by Brad
03:13
created
src/Methods/LongestCommon.php 2 patches
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
             if ($char == UTF8::substr($otherStr, -$i, 1, $this->encoding))
62 62
             {
63
-                $longestCommonSuffix = $char . $longestCommonSuffix;
63
+                $longestCommonSuffix = $char.$longestCommonSuffix;
64 64
             }
65 65
             else
66 66
             {
@@ -117,8 +117,7 @@  discard block
 block discarded – undo
117 117
             }
118 118
         }
119 119
 
120
-        return $this->newSelf(UTF8::substr
121
-        (
120
+        return $this->newSelf(UTF8::substr(
122 121
             $this->scalarString,
123 122
             $end - $len,
124 123
             $len,
Please login to merge, or discard this patch.
Braces   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@  discard block
 block discarded – undo
33 33
             if ($char == UTF8::substr($otherStr, $i, 1, $this->encoding))
34 34
             {
35 35
                 $longestCommonPrefix .= $char;
36
-            }
37
-            else
36
+            } else
38 37
             {
39 38
                 break;
40 39
             }
@@ -61,8 +60,7 @@  discard block
 block discarded – undo
61 60
             if ($char == UTF8::substr($otherStr, -$i, 1, $this->encoding))
62 61
             {
63 62
                 $longestCommonSuffix = $char . $longestCommonSuffix;
64
-            }
65
-            else
63
+            } else
66 64
             {
67 65
                 break;
68 66
             }
@@ -88,7 +86,9 @@  discard block
 block discarded – undo
88 86
         $otherLength = UTF8::strlen($otherStr, $this->encoding);
89 87
 
90 88
         // Return if either string is empty
91
-        if ($strLength == 0 || $otherLength == 0) return $this->newSelf('');
89
+        if ($strLength == 0 || $otherLength == 0) {
90
+            return $this->newSelf('');
91
+        }
92 92
 
93 93
         $len = 0; $end = 0;
94 94
         $table = array_fill(0, $strLength + 1, array_fill(0, $otherLength + 1, 0));
@@ -109,8 +109,7 @@  discard block
 block discarded – undo
109 109
                         $len = $table[$i][$j];
110 110
                         $end = $i;
111 111
                     }
112
-                }
113
-                else
112
+                } else
114 113
                 {
115 114
                     $table[$i][$j] = 0;
116 115
                 }
Please login to merge, or discard this patch.
src/Methods/Contains.php 1 patch
Braces   +13 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@  discard block
 block discarded – undo
32 32
         if ($caseSensitive)
33 33
         {
34 34
             return (UTF8::strpos($this->scalarString, $needle, 0, $this->encoding) !== false);
35
-        }
36
-        else
35
+        } else
37 36
         {
38 37
             return (UTF8::stripos($this->scalarString, $needle, 0, $this->encoding) !== false);
39 38
         }
@@ -53,11 +52,15 @@  discard block
 block discarded – undo
53 52
      */
54 53
     public function containsAll($needles, $caseSensitive = true)
55 54
     {
56
-        if (empty($needles)) return false;
55
+        if (empty($needles)) {
56
+            return false;
57
+        }
57 58
 
58 59
         foreach ($needles as $needle)
59 60
         {
60
-            if (!$this->contains($needle, $caseSensitive)) return false;
61
+            if (!$this->contains($needle, $caseSensitive)) {
62
+                return false;
63
+            }
61 64
         }
62 65
 
63 66
         return true;
@@ -77,11 +80,15 @@  discard block
 block discarded – undo
77 80
      */
78 81
     public function containsAny($needles, $caseSensitive = true)
79 82
     {
80
-        if (empty($needles)) return false;
83
+        if (empty($needles)) {
84
+            return false;
85
+        }
81 86
 
82 87
         foreach ($needles as $needle)
83 88
         {
84
-            if ($this->contains($needle, $caseSensitive)) return true;
89
+            if ($this->contains($needle, $caseSensitive)) {
90
+                return true;
91
+            }
85 92
         }
86 93
 
87 94
         return false;
Please login to merge, or discard this patch.