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 ( c4b8bb...191f74 )
by Sébastien
03:11
created
src/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      *
24 24
      * @return Collection
25 25
      */
26
-    public static function create($items = [], $className = 'Novactive\Collection\Collection')
26
+    public static function create($items = [ ], $className = 'Novactive\Collection\Collection')
27 27
     {
28 28
         $options = null;
29 29
         if (getenv('DEBUG_COLLECTION_CLASS') && getenv('DEBUG_COLLECTION_CLASS') != '') {
Please login to merge, or discard this patch.
src/Collection.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      *
34 34
      * @param array $items
35 35
      */
36
-    public function __construct(array $items = [])
36
+    public function __construct(array $items = [ ])
37 37
     {
38 38
         $this->items = $items;
39 39
         $this->rewind();
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function set($key, $value)
59 59
     {
60
-        $this->items[$key] = $value;
60
+        $this->items[ $key ] = $value;
61 61
 
62 62
         return $this;
63 63
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     public function get($key, $default = null)
74 74
     {
75 75
         if ($this->containsKey($key)) {
76
-            return $this->items[$key];
76
+            return $this->items[ $key ];
77 77
         }
78 78
 
79 79
         return $default;
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function containsKey($key)
147 147
     {
148
-        return isset($this->items[$key]) || array_key_exists($key, $this->items);
148
+        return isset($this->items[ $key ]) || array_key_exists($key, $this->items);
149 149
     }
150 150
 
151 151
     /**
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     public function add($item)
173 173
     {
174
-        $this->items[] = $item;
174
+        $this->items[ ] = $item;
175 175
 
176 176
         return $this;
177 177
     }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public function clear()
205 205
     {
206
-        $this->items = [];
206
+        $this->items = [ ];
207 207
 
208 208
         return $this;
209 209
     }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      */
218 218
     public function remove($key)
219 219
     {
220
-        unset($this->items[$key]);
220
+        unset($this->items[ $key ]);
221 221
 
222 222
         return $this;
223 223
     }
@@ -234,8 +234,8 @@  discard block
 block discarded – undo
234 234
         if (!$this->containsKey($key)) {
235 235
             return null;
236 236
         }
237
-        $removed = $this->items[$key];
238
-        unset($this->items[$key]);
237
+        $removed = $this->items[ $key ];
238
+        unset($this->items[ $key ]);
239 239
 
240 240
         return $removed;
241 241
     }
@@ -728,8 +728,8 @@  discard block
 block discarded – undo
728 728
         $collection = Factory::create($items);
729 729
 
730 730
         return $this->map(
731
-            function ($value, $key, $index) use ($collection) {
732
-                return [$value, $collection->atIndex($index)];
731
+            function($value, $key, $index) use ($collection) {
732
+                return [ $value, $collection->atIndex($index) ];
733 733
             }
734 734
         );
735 735
     }
@@ -840,7 +840,7 @@  discard block
 block discarded – undo
840 840
         }
841 841
 
842 842
         return $this->prune(
843
-            function ($value, $key, $index) use ($offset, $length) {
843
+            function($value, $key, $index) use ($offset, $length) {
844 844
                 return !(($index >= $offset) && ($index < $offset + $length));
845 845
             }
846 846
         );
Please login to merge, or discard this patch.