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
Pull Request — master (#4)
by Flemming
02:51
created
src/IniParser.php 1 patch
Braces   +9 added lines, -18 removed lines patch added patch discarded remove patch
@@ -98,23 +98,19 @@  discard block
 block discarded – undo
98 98
         if (in_array($value, ['true', 'on', 'yes']))
99 99
         {
100 100
             $normalized = true;
101
-        }
102
-        elseif (in_array($value, ['false', 'off', 'no', 'none']))
101
+        } elseif (in_array($value, ['false', 'off', 'no', 'none']))
103 102
         {
104 103
             $normalized = false;
105
-        }
106
-        elseif ('null' == $value)
104
+        } elseif ('null' == $value)
107 105
         {
108 106
             $normalized = null;
109
-        }
110
-        elseif (is_numeric($value))
107
+        } elseif (is_numeric($value))
111 108
         {
112 109
             $number = $value + 0;
113 110
             if (intval($number) == $number)
114 111
             {
115 112
                 $normalized = (int)$number;
116
-            }
117
-            elseif (floatval($number) == $number)
113
+            } elseif (floatval($number) == $number)
118 114
             {
119 115
                 $normalized = (float)$number;
120 116
             }
@@ -136,28 +132,23 @@  discard block
 block discarded – undo
136 132
         if (is_bool($value))
137 133
         {
138 134
             $castedValue = (true === $value) ? 'true' : 'false';
139
-        }
140
-        elseif (is_null($value))
135
+        } elseif (is_null($value))
141 136
         {
142 137
             $castedValue = 'null';
143
-        }
144
-        elseif (is_array($value))
138
+        } elseif (is_array($value))
145 139
         {
146 140
             $castedValue = [];
147 141
             foreach ($value as $k => $v)
148 142
             {
149 143
                 $castedValue[$k] = $this->itemValuetoStringRepresentation($v);
150 144
             }
151
-        }
152
-        elseif (is_numeric($value))
145
+        } elseif (is_numeric($value))
153 146
         {
154 147
             $castedValue = (string)$value;
155
-        }
156
-        elseif (is_string($value))
148
+        } elseif (is_string($value))
157 149
         {
158 150
             $castedValue = $value;
159
-        }
160
-        else
151
+        } else
161 152
         {
162 153
             throw new InvalidDataException('Invalid item value type!');
163 154
         }
Please login to merge, or discard this patch.