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
03:53
created
src/IniParser.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -175,14 +175,14 @@  discard block
 block discarded – undo
175 175
         {
176 176
             $valid = false;
177 177
             $message = sprintf('Item name is not allowed! Not allowed item names: %s',
178
-                               implode(', ', $this->invalidItemNames));
178
+                                implode(', ', $this->invalidItemNames));
179 179
         }
180 180
 
181 181
         if (preg_match(sprintf('/[%s]/', $this->invalidCharsForItemNames), $name) > 0)
182 182
         {
183 183
             $valid = false;
184 184
             $message = sprintf('Invalid name for ini item! Provided item name contains not ' .
185
-                               'allowed chars (%s).', $this->invalidCharsForItemNames);
185
+                                'allowed chars (%s).', $this->invalidCharsForItemNames);
186 186
         }
187 187
 
188 188
         return [$valid, $message];
@@ -205,8 +205,8 @@  discard block
 block discarded – undo
205 205
             if (!is_array($sectionContents))
206 206
             {
207 207
                 throw new InvalidDataException(sprintf('Orphan fields are not allowed! ' .
208
-                                                       'Please define a section for field "%s".',
209
-                                                       $sectionName));
208
+                                                        'Please define a section for field "%s".',
209
+                                                        $sectionName));
210 210
             }
211 211
             $parsedContents[$sectionName] = new IniSection($sectionName);
212 212
             $parsedContents[$sectionName]->setContents($sectionContents);
@@ -216,8 +216,8 @@  discard block
 block discarded – undo
216 216
                 if (!isset($parsedContents[$parentName]))
217 217
                 {
218 218
                     throw new InvalidDataException(sprintf('Parent section not found! ' .
219
-                                                           'Define "%s" section before "%s" section.',
220
-                                                           $parentName, $sectionName));
219
+                                                            'Define "%s" section before "%s" section.',
220
+                                                            $parentName, $sectionName));
221 221
                 }
222 222
                 $parsedContents[$sectionName]->setParent($parsedContents[$parentName]);
223 223
             }
Please login to merge, or discard this 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.
src/IniSection.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         if (!is_array($data))
58 58
         {
59 59
             throw new InvalidDataException('Invalid section contents! ' .
60
-                                           'Section contents must be an array.');
60
+                                            'Section contents must be an array.');
61 61
         }
62 62
         $this->contents = IniParser::i()->itemValuetoStringRepresentation($data);
63 63
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -208,8 +208,7 @@  discard block
 block discarded – undo
208 208
         if ($this->hasParent())
209 209
         {
210 210
             $line = [sprintf('[%s : %s]', $this->getName(), $this->getParent()->getName())];
211
-        }
212
-        else
211
+        } else
213 212
         {
214 213
             $line = [sprintf('[%s]', $this->getName())];
215 214
         }
@@ -227,8 +226,7 @@  discard block
 block discarded – undo
227 226
         if (is_array($value))
228 227
         {
229 228
             $lines = $this->renderArrayItem($name, $value);
230
-        }
231
-        else
229
+        } else
232 230
         {
233 231
             $lines = $this->renderStringItem($name, $value);
234 232
         }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 
150 150
     /**
151 151
      * @param string $itemName
152
-     * @param string|array|bool|null $itemValue
152
+     * @param string $itemValue
153 153
      *
154 154
      * @return $this
155 155
      * @throws InvalidDataException
Please login to merge, or discard this patch.
src/IniFileLocator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@
 block discarded – undo
89 89
         }
90 90
 
91 91
         $localFileName = $pathInfo['dirname'] . DIRECTORY_SEPARATOR
92
-                         . $this->composeLocalFileName($pathInfo['filename'],
93
-                                                       $pathInfo['extension']);
92
+                            . $this->composeLocalFileName($pathInfo['filename'],
93
+                                                        $pathInfo['extension']);
94 94
         if (is_file($localFileName) && is_readable($localFileName))
95 95
         {
96 96
             $file = $localFileName;
Please login to merge, or discard this patch.
src/IniFile.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         if ($this->hasSection($section->getName()))
90 90
         {
91 91
             throw new InvalidDataException(sprintf('Section "%s" already exists!',
92
-                                                   $section->getName()));
92
+                                                    $section->getName()));
93 93
         }
94 94
 
95 95
         if ($section->hasParent())
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             if (!isset($this->sections[$section->getParent()->getName()]))
98 98
             {
99 99
                 throw new InvalidDataException(sprintf('Parent section "%s" does not exists!',
100
-                                                       $section->getParent()->getName()));
100
+                                                        $section->getParent()->getName()));
101 101
             }
102 102
         }
103 103
 
Please login to merge, or discard this patch.