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/Records/AbstractModels/Record.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      *
34 34
      * @param string $name
35 35
      * @param array $arguments
36
-     * @return mixed
36
+     * @return \Nip\Helpers\AbstractHelper|null
37 37
      */
38 38
     public function __call($name, $arguments)
39 39
     {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     }
47 47
 
48 48
     /**
49
-     * @param $name
49
+     * @param string $name
50 50
      * @return \Nip\Helpers\AbstractHelper
51 51
      */
52 52
     public function getHelper($name)
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     }
130 130
 
131 131
     /**
132
-     * @return null
132
+     * @return string
133 133
      */
134 134
     public function getManagerName()
135 135
     {
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
     /**
165 165
      * @param string $class
166
-     * @return mixed
166
+     * @return RecordManager
167 167
      * @throws Exception
168 168
      */
169 169
     protected function getManagerInstance($class)
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     /**
304 304
      * Clone the relations records from a sibling
305 305
      * @param self $from
306
-     * @return self
306
+     * @return \Nip\Records\Traits\Relations\HasRelationsRecordTrait
307 307
      */
308 308
     public function cloneRelations($from)
309 309
     {
Please login to merge, or discard this patch.
src/Records/AbstractModels/RecordManager.php 2 patches
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     }
89 89
 
90 90
     /**
91
-     * @param $name
91
+     * @param string $name
92 92
      * @param $arguments
93 93
      * @return bool
94 94
      */
@@ -106,10 +106,10 @@  discard block
 block discarded – undo
106 106
     }
107 107
 
108 108
     /**
109
-     * @param $action
109
+     * @param string $action
110 110
      * @param array $params
111 111
      * @param null $module
112
-     * @return mixed
112
+     * @return string|null
113 113
      */
114 114
     public function compileURL($action, $params = [], $module = null)
115 115
     {
@@ -242,8 +242,8 @@  discard block
 block discarded – undo
242 242
     }
243 243
 
244 244
     /**
245
-     * @param $name
246
-     * @return mixed
245
+     * @param string $name
246
+     * @return \Nip\Helpers\AbstractHelper
247 247
      */
248 248
     public function getHelper($name)
249 249
     {
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
     }
433 433
 
434 434
     /**
435
-     * @param null $class
435
+     * @param string $class
436 436
      * @return string
437 437
      */
438 438
     public function generateModelClass($class = null)
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
      * Finds Records using params array
549 549
      *
550 550
      * @param array $params
551
-     * @return mixed
551
+     * @return RecordCollection
552 552
      */
553 553
     public function findByParams($params = [])
554 554
     {
@@ -579,7 +579,7 @@  discard block
 block discarded – undo
579 579
 
580 580
     /**
581 581
      * @param int $count
582
-     * @return mixed
582
+     * @return RecordCollection
583 583
      */
584 584
     public function findLast($count = 9)
585 585
     {
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
      * Inserts a Record into the database
593 593
      * @param Record $model
594 594
      * @param array|bool $onDuplicate
595
-     * @return mixed
595
+     * @return integer
596 596
      */
597 597
     public function insert($model, $onDuplicate = false)
598 598
     {
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
     }
604 604
 
605 605
     /**
606
-     * @param $model
606
+     * @param Record $model
607 607
      * @param $onDuplicate
608 608
      * @return InsertQuery
609 609
      */
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
     }
659 659
 
660 660
     /**
661
-     * @param null $foreignKey
661
+     * @param string $foreignKey
662 662
      */
663 663
     public function setForeignKey($foreignKey)
664 664
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
                 $class = ucfirst(inflector()->singularize($class));
450 450
             }
451 451
 
452
-            return implode($nsParts, '\\').'\\'.$class;
452
+            return implode($nsParts, '\\') . '\\' . $class;
453 453
         }
454 454
 
455 455
         return ucfirst(inflector()->singularize($class));
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
         }
485 485
 
486 486
         foreach ($fields as $field) {
487
-            $params['where'][$field.'-UNQ'] = ["$field = ?", $item->{$field}];
487
+            $params['where'][$field . '-UNQ'] = ["$field = ?", $item->{$field}];
488 488
         }
489 489
 
490 490
         $pk = $this->getPrimaryKey();
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
     {
673 673
         $singularize = inflector()->singularize($this->getController());
674 674
 
675
-        return $this->getPrimaryKey()."_".inflector()->underscore($singularize);
675
+        return $this->getPrimaryKey() . "_" . inflector()->underscore($singularize);
676 676
     }
677 677
 
678 678
     /**
Please login to merge, or discard this patch.
src/Records/Collections/Associated.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     protected $_item;
22 22
 
23 23
     /**
24
-     * @param Relation|HasCollectionResults $relation
24
+     * @param HasCollectionResults $relation
25 25
      */
26 26
     public function initFromRelation($relation)
27 27
     {
Please login to merge, or discard this patch.
src/Records/Filters/FilterManager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     }
141 141
 
142 142
     /**
143
-     * @return null|RecordManager|RecordsTrait
143
+     * @return null|RecordManager
144 144
      */
145 145
     public function getRecordManager()
146 146
     {
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     }
149 149
 
150 150
     /**
151
-     * @param RecordManager|RecordsTrait $recordManager
151
+     * @param RecordsTrait $recordManager
152 152
      */
153 153
     public function setRecordManager($recordManager)
154 154
     {
Please login to merge, or discard this patch.
src/Records/Relations/HasOneOrMany.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
     /**
69 69
      * @param RecordCollection $collection
70
-     * @param $items
70
+     * @param Collection $items
71 71
      */
72 72
     public function populateCollection(RecordCollection $collection, $items)
73 73
     {
Please login to merge, or discard this patch.
src/Records/Relations/Relation.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     }
147 147
 
148 148
     /**
149
-     * @return mixed
149
+     * @return string
150 150
      */
151 151
     public function getWithClass()
152 152
     {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     }
163 163
 
164 164
     /**
165
-     * @param mixed $name
165
+     * @param string $name
166 166
      */
167 167
     public function setName($name)
168 168
     {
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     }
199 199
 
200 200
     /**
201
-     * @param RecordManager|HasRelationsRecordsTrait $manager
201
+     * @param HasRelationsRecordsTrait $manager
202 202
      */
203 203
     public function setManager($manager)
204 204
     {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 
267 267
     /**
268 268
      * @param $key
269
-     * @return mixed
269
+     * @return boolean
270 270
      */
271 271
     public function hasParam($key)
272 272
     {
@@ -515,8 +515,8 @@  discard block
 block discarded – undo
515 515
 
516 516
     /**
517 517
      * @param $dictionary
518
-     * @param $collection
519
-     * @param $record
518
+     * @param Collection $collection
519
+     * @param Record $record
520 520
      * @return mixed
521 521
      */
522 522
     abstract public function getResultsFromCollectionDictionary($dictionary, $collection, $record);
Please login to merge, or discard this patch.
src/Records/Traits/ActiveRecord/ActiveRecordsTrait.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     }
134 134
 
135 135
     /**
136
-     * @param null $table
136
+     * @param string $table
137 137
      */
138 138
     public function setTable($table)
139 139
     {
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
     /**
347 347
      * Delete a Record's database entry
348 348
      *
349
-     * @param mixed|Record $input
349
+     * @param Record $input
350 350
      */
351 351
     public function delete($input)
352 352
     {
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
     }
497 497
 
498 498
     /**
499
-     * @param $query
499
+     * @param Query $query
500 500
      * @param array $params
501 501
      * @return RecordCollection
502 502
      */
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
     }
578 578
 
579 579
     /**
580
-     * @param $name
580
+     * @param string $name
581 581
      * @param $arguments
582 582
      * @return RecordCollection|null
583 583
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
         if (isset($where)) {
541 541
             if (is_array($where)) {
542 542
                 foreach ($where as $condition) {
543
-                    $condition = (array)$condition;
543
+                    $condition = (array) $condition;
544 544
                     $query->where($condition[0], $condition[1]);
545 545
                 }
546 546
             } else {
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
 
723 723
         if ($result->numRows()) {
724 724
             $row = $result->fetchResult();
725
-            return (int)$row['count'];
725
+            return (int) $row['count'];
726 726
         }
727 727
 
728 728
         return false;
Please login to merge, or discard this patch.
src/Records/Traits/HasFilters/RecordsTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 
97 97
     /**
98 98
      * @param $query
99
-     * @return mixed
99
+     * @return SelectQuery
100 100
      * @internal param array $filters
101 101
      */
102 102
     public function filter($query)
Please login to merge, or discard this patch.
src/Records/Traits/Relations/HasRelationsRecordsTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     }
68 68
 
69 69
     /**
70
-     * @param $type
70
+     * @param string $type
71 71
      * @param $array
72 72
      */
73 73
     public function initRelationsFromArray($type, $array)
Please login to merge, or discard this patch.