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 — develop ( c0787d...9e1273 )
by Gabriel
05:23
created
src/Database/Connections/Connection.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     }
119 119
 
120 120
     /**
121
-     * @param $adapter
121
+     * @param AbstractAdapter $adapter
122 122
      */
123 123
     public function setAdapter($adapter)
124 124
     {
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     }
132 132
 
133 133
     /**
134
-     * @param $name
134
+     * @param string $name
135 135
      */
136 136
     public function setAdapterName($name)
137 137
     {
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     }
168 168
 
169 169
     /**
170
-     * @param mixed $database
170
+     * @param string $database
171 171
      */
172 172
     public function setDatabase($database)
173 173
     {
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
     }
297 297
 
298 298
     /**
299
-     * @param $table
299
+     * @param null|string $table
300 300
      * @return mixed
301 301
      */
302 302
     public function describeTable($table)
Please login to merge, or discard this patch.
src/Database/Connections/ConnectionFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      * Create a new connection instance.
77 77
      *
78 78
      * @param  string $driver
79
-     * @param  \PDO|\Closure $connection
79
+     * @param  boolean $connection
80 80
      * @param  string $database
81 81
      * @param  string $prefix
82 82
      * @param  array $config
Please login to merge, or discard this patch.
src/Database/Query/AbstractQuery.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-     * @param null $generated
83
+     * @param boolean $generated
84 84
      * @return bool
85 85
      */
86 86
     public function isGenerated($generated = null)
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     }
237 237
 
238 238
     /**
239
-     * @param $start
239
+     * @param integer $start
240 240
      * @param bool $offset
241 241
      * @return $this
242 242
      */
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     }
385 385
 
386 386
     /**
387
-     * @param $name
387
+     * @param string $name
388 388
      * @return mixed|null
389 389
      */
390 390
     public function getPart($name)
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
     }
416 416
 
417 417
     /**
418
-     * @return mixed
418
+     * @return string
419 419
      */
420 420
     protected function getTable()
421 421
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     {
151 151
         if (isset($params['where']) && is_array($params['where'])) {
152 152
             foreach ($params['where'] as $condition) {
153
-                $condition = (array)$condition;
153
+                $condition = (array) $condition;
154 154
                 $this->where(
155 155
                     $condition[0],
156 156
                     isset($condition[1]) ? $condition[1] : null
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
     public function getString()
330 330
     {
331 331
         if ($this->string === null) {
332
-            $this->string = (string)$this->assemble();
332
+            $this->string = (string) $this->assemble();
333 333
         }
334 334
 
335 335
         return $this->string;
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
      */
368 368
     protected function parseWhere()
369 369
     {
370
-        return is_object($this->parts['where']) ? (string)$this->parts['where'] : '';
370
+        return is_object($this->parts['where']) ? (string) $this->parts['where'] : '';
371 371
     }
372 372
 
373 373
     /**
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
     protected function parseHaving()
433 433
     {
434 434
         if (isset($this->parts['having'])) {
435
-            return (string)$this->parts['having'];
435
+            return (string) $this->parts['having'];
436 436
         }
437 437
 
438 438
         return '';
Please login to merge, or discard this patch.
src/Database/Query/Insert.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     protected $_values;
15 15
 
16 16
     /**
17
-     * @return null
17
+     * @return string
18 18
      */
19 19
     public function assemble()
20 20
     {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-     * @return bool|string
51
+     * @return string|false
52 52
      */
53 53
     public function parseValues()
54 54
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     public function parseValues()
54 54
     {
55 55
         if ($this->_values instanceof AbstractQuery) {
56
-            return ' ' . (string)$this->_values;
56
+            return ' ' . (string) $this->_values;
57 57
         } elseif (is_array($this->parts['data'])) {
58 58
             return $this->parseData();
59 59
         }
Please login to merge, or discard this patch.
src/Dispatcher/Dispatcher.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-     * @param $name
39
+     * @param boolean $name
40 40
      * @return mixed
41 41
      */
42 42
     public static function formatActionName($name)
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     }
129 129
 
130 130
     /**
131
-     * @param $name
131
+     * @param string $name
132 132
      * @return mixed
133 133
      */
134 134
     public function formatModuleName($name)
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     }
140 140
 
141 141
     /**
142
-     * @param $name
142
+     * @param string $name
143 143
      * @return mixed
144 144
      */
145 145
     public function formatControllerName($name)
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     }
175 175
 
176 176
     /**
177
-     * @param $namespaceClass
177
+     * @param string $namespaceClass
178 178
      * @return bool
179 179
      */
180 180
     protected function isValidControllerNamespace($namespaceClass)
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     }
191 191
 
192 192
     /**
193
-     * @param $class
193
+     * @param string $class
194 194
      * @return Controller
195 195
      */
196 196
     public function newController($class)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         if ($this->hops <= $this->maxHops) {
65 65
             if ($request->getControllerName() == null) {
66
-                throw new Exception('No valid controller name in request ['.$request->getMCA().']');
66
+                throw new Exception('No valid controller name in request [' . $request->getMCA() . ']');
67 67
             }
68 68
 
69 69
             $controller = $this->generateController($request);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                     return $return;
81 81
                 }
82 82
             } else {
83
-                throw new Exception('Error finding a valid controller for ['.$request->getMCA().']');
83
+                throw new Exception('Error finding a valid controller for [' . $request->getMCA() . ']');
84 84
             }
85 85
         } else {
86 86
             throw new Exception("Maximum number of hops ($this->maxHops) has been reached for {$request->getMCA()}");
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             }
124 124
         }
125 125
         throw new Exception(
126
-            'Error finding a valid controller ['.$namespaceClass.']['.$classicClass.'] for ['.$request->getMCA().']'
126
+            'Error finding a valid controller [' . $namespaceClass . '][' . $classicClass . '] for [' . $request->getMCA() . ']'
127 127
         );
128 128
     }
129 129
 
Please login to merge, or discard this patch.
src/Filesystem/File.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -79,6 +79,7 @@
 block discarded – undo
79 79
 
80 80
     /**
81 81
      * @inheritdoc
82
+     * @param string $path
82 83
      */
83 84
     public function setPath($path)
84 85
     {
Please login to merge, or discard this patch.
src/Filesystem/Image.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
     }
292 292
 
293 293
     /**
294
-     * @param $x
295
-     * @param $y
294
+     * @param double $x
295
+     * @param double $y
296 296
      * @param $dwidth
297 297
      * @param $dheight
298 298
      * @param $swidth
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
     }
458 458
 
459 459
     /**
460
-     * @return mixed
460
+     * @return string
461 461
      */
462 462
     public function getFile()
463 463
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -271,10 +271,10 @@
 block discarded – undo
271 271
 
272 272
         if ($sourceRatio > $target_ratio) {
273 273
             $new_height = $max_height;
274
-            $new_width = ( int )($max_height * $sourceRatio);
274
+            $new_width = (int) ($max_height * $sourceRatio);
275 275
         } else {
276 276
             $new_width = $max_width;
277
-            $new_height = ( int )($max_width / $sourceRatio);
277
+            $new_height = (int) ($max_width / $sourceRatio);
278 278
         }
279 279
 
280 280
         $image = imagecreatetruecolor($new_width, $new_height);
Please login to merge, or discard this patch.
src/form/Elements/Abstract.php 2 patches
Doc Comments   +10 added lines, -7 removed lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@  discard block
 block discarded – undo
59 59
         return $this->getAttrib('id');
60 60
     }
61 61
 
62
+    /**
63
+     * @param string $key
64
+     */
62 65
     public function getAttrib($key)
63 66
     {
64 67
         $key = (string)$key;
@@ -70,7 +73,7 @@  discard block
 block discarded – undo
70 73
     }
71 74
 
72 75
     /**
73
-     * @return mixed
76
+     * @return string
74 77
      */
75 78
     public function getJSID()
76 79
     {
@@ -206,7 +209,7 @@  discard block
 block discarded – undo
206 209
     }
207 210
 
208 211
     /**
209
-     * @param $isRequired
212
+     * @param boolean $isRequired
210 213
      * @return $this
211 214
      */
212 215
     public function setRequired($isRequired)
@@ -217,7 +220,7 @@  discard block
 block discarded – undo
217 220
     }
218 221
 
219 222
     /**
220
-     * @param $isRendered
223
+     * @param boolean $isRendered
221 224
      * @return $this
222 225
      */
223 226
     public function setRendered($isRendered)
@@ -303,7 +306,7 @@  discard block
 block discarded – undo
303 306
     }
304 307
 
305 308
     /**
306
-     * @return null
309
+     * @return string
307 310
      */
308 311
     public function getLabel()
309 312
     {
@@ -354,7 +357,7 @@  discard block
 block discarded – undo
354 357
     }
355 358
 
356 359
     /**
357
-     * @param $key
360
+     * @param string $key
358 361
      * @return bool
359 362
      */
360 363
     public function delAttrib($key)
@@ -435,7 +438,7 @@  discard block
 block discarded – undo
435 438
     }
436 439
 
437 440
     /**
438
-     * @param $key
441
+     * @param string $key
439 442
      * @return null
440 443
      */
441 444
     public function getOption($key)
@@ -480,7 +483,7 @@  discard block
 block discarded – undo
480 483
     }
481 484
 
482 485
     /**
483
-     * @param $position
486
+     * @param boolean $position
484 487
      * @return mixed
485 488
      */
486 489
     public function getDecoratorsByPosition($position)
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function setAttrib($key, $value)
50 50
     {
51
-        $key = (string)$key;
51
+        $key = (string) $key;
52 52
         $this->_attribs[$key] = $value;
53 53
 
54 54
         return $this;
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function getAttrib($key)
63 63
     {
64
-        $key = (string)$key;
64
+        $key = (string) $key;
65 65
         if (!isset($this->_attribs[$key])) {
66 66
             return null;
67 67
         }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     protected function generateUniqueId()
111 111
     {
112 112
         $name = $this->getName();
113
-        $registeredNames = (array)$this->getForm()->getCache('elements_names');
113
+        $registeredNames = (array) $this->getForm()->getCache('elements_names');
114 114
         if (in_array($name, $registeredNames)) {
115 115
             $name = uniqid($name);
116 116
         }
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      */
212 212
     public function setRequired($isRequired)
213 213
     {
214
-        $this->_isRequired = (bool)$isRequired;
214
+        $this->_isRequired = (bool) $isRequired;
215 215
 
216 216
         return $this;
217 217
     }
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      */
223 223
     public function setRendered($isRendered)
224 224
     {
225
-        $this->_isRendered = (bool)$isRendered;
225
+        $this->_isRendered = (bool) $isRendered;
226 226
 
227 227
         return $this;
228 228
     }
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     public function isRendered()
234 234
     {
235
-        return (bool)$this->_isRendered;
235
+        return (bool) $this->_isRendered;
236 236
     }
237 237
 
238 238
     /**
@@ -273,12 +273,12 @@  discard block
 block discarded – undo
273 273
     public function validate()
274 274
     {
275 275
         if ($this->isRequired() && !$this->getValue()) {
276
-            $message = $this->getForm()->getMessageTemplate('no-'.$this->getName());
276
+            $message = $this->getForm()->getMessageTemplate('no-' . $this->getName());
277 277
             if (!$message) {
278 278
                 $translateSlug = 'general.form.errors.required';
279 279
                 $message = app('translator')->translate($translateSlug, array('label' => $this->getLabel()));
280 280
                 if ($message == $translateSlug) {
281
-                    $message = $message ? $message : 'The field `'.$this->getLabel().'` is mandatory.';
281
+                    $message = $message ? $message : 'The field `' . $this->getLabel() . '` is mandatory.';
282 282
                 }
283 283
             }
284 284
             $this->addError($message);
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
      */
291 291
     public function isRequired()
292 292
     {
293
-        return (bool)$this->_isRequired;
293
+        return (bool) $this->_isRequired;
294 294
     }
295 295
 
296 296
     /**
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
      */
360 360
     public function delAttrib($key)
361 361
     {
362
-        $key = (string)$key;
362
+        $key = (string) $key;
363 363
         unset($this->_attribs[$key]);
364 364
 
365 365
         return true;
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
      */
429 429
     public function setOption($key, $value)
430 430
     {
431
-        $key = (string)$key;
431
+        $key = (string) $key;
432 432
         $this->_options[$key] = $value;
433 433
 
434 434
         return $this;
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
      */
441 441
     public function getOption($key)
442 442
     {
443
-        $key = (string)$key;
443
+        $key = (string) $key;
444 444
         if (!isset($this->_options[$key])) {
445 445
             return null;
446 446
         }
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
      */
455 455
     public function newDecorator($type = '')
456 456
     {
457
-        $name = 'Nip_Form_Decorator_Elements_'.ucfirst($type);
457
+        $name = 'Nip_Form_Decorator_Elements_' . ucfirst($type);
458 458
         $decorator = new $name();
459 459
         $decorator->setElement($this);
460 460
 
Please login to merge, or discard this patch.
src/form/Elements/Checkbox.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     }
23 23
 
24 24
     /**
25
-     * @param $checked
25
+     * @param boolean $checked
26 26
      * @return $this
27 27
      */
28 28
     public function setChecked($checked)
Please login to merge, or discard this patch.