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.
Test Setup Failed
Push — master ( c5ade0...e039e4 )
by Gabriel
05:51
created
src/Router/Generator/UrlGenerator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@
 block discarded – undo
217 217
      * Extract the query string from the given path.
218 218
      *
219 219
      * @param  string  $path
220
-     * @return array
220
+     * @return string[]
221 221
      */
222 222
     protected function extractQueryString($path)
223 223
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,8 +142,8 @@
 block discarded – undo
142 142
         $root = $this->formatRoot($this->formatScheme($secure));
143 143
         list($path, $query) = $this->extractQueryString($path);
144 144
         return $this->format(
145
-                $root, '/'.trim($path.'/'.$tail, '/')
146
-            ).$query;
145
+                $root, '/' . trim($path . '/' . $tail, '/')
146
+            ) . $query;
147 147
     }
148 148
 
149 149
     /**
Please login to merge, or discard this patch.
src/Router/Route/AbstractRoute.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     }
103 103
 
104 104
     /**
105
-     * @param $type
105
+     * @param string $type
106 106
      * @return $this
107 107
      */
108 108
     public function setType($type)
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
     /**
162 162
      * @param array $params
163
-     * @return mixed
163
+     * @return string
164 164
      */
165 165
     public function getBase($params = [])
166 166
     {
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     }
176 176
 
177 177
     /**
178
-     * @param $base
178
+     * @param string $base
179 179
      */
180 180
     public function setBase($base)
181 181
     {
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 
222 222
     /**
223 223
      * @param array $params
224
-     * @return mixed|string
224
+     * @return string
225 225
      */
226 226
     public function assemble($params = [])
227 227
     {
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     }
299 299
 
300 300
     /**
301
-     * @param mixed $request
301
+     * @param \Nip\Request $request
302 302
      */
303 303
     public function setRequest($request)
304 304
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function getParserClass()
88 88
     {
89
-        return 'Nip\Router\Parsers\\'.inflector()->camelize($this->getType());
89
+        return 'Nip\Router\Parsers\\' . inflector()->camelize($this->getType());
90 90
     }
91 91
 
92 92
     /**
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         $base = $this->getBase($params);
156 156
         $base = rtrim($base, "/");
157 157
 
158
-        return $base.$this->assemble($params);
158
+        return $base . $this->assemble($params);
159 159
     }
160 160
 
161 161
     /**
Please login to merge, or discard this patch.
src/Router/Router.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     /**
42 42
      * @param $name
43
-     * @return Route
43
+     * @return null|Route\Route
44 44
      */
45 45
     public function getRoute($name)
46 46
     {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
     /**
114 114
      * @param $name
115
-     * @param array $params
115
+     * @param boolean $params
116 116
      * @return string
117 117
      */
118 118
     public function assembleFull($name, $params = [])
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     /**
132 132
      * @param $name
133 133
      * @param array $params
134
-     * @return Route
134
+     * @return null|Route\Route
135 135
      */
136 136
     public function getDefaultRoute($name, &$params = [])
137 137
     {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     }
154 154
 
155 155
     /**
156
-     * @return mixed
156
+     * @return Request
157 157
      */
158 158
     public function getRequest()
159 159
     {
@@ -170,8 +170,8 @@  discard block
 block discarded – undo
170 170
 
171 171
     /**
172 172
      * @param $name
173
-     * @param array $params
174
-     * @return mixed|string
173
+     * @param boolean $params
174
+     * @return string|null
175 175
      */
176 176
     public function assemble($name, $params = [])
177 177
     {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     }
196 196
 
197 197
     /**
198
-     * @param $name
198
+     * @param string $name
199 199
      * @return bool
200 200
      */
201 201
     public function hasRoute($name)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
                     $module = array_shift($parts);
145 145
                     $params['controller'] = isset($parts[0]) ? $parts[0] : null;
146 146
                     $params['action'] = isset($parts[1]) ? $parts[1] : null;
147
-                    $route = $this->getRoute($module.'.default');
147
+                    $route = $this->getRoute($module . '.default');
148 148
                 }
149 149
             }
150 150
         }
Please login to merge, or discard this patch.
src/Router/RouterAwareTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     }
41 41
 
42 42
     /**
43
-     * @param bool|Router $router
43
+     * @param Router $router
44 44
      * @return $this
45 45
      */
46 46
     public function setRouter($router = false)
Please login to merge, or discard this patch.
src/Session/SessionManager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     /**
73 73
      * Public method to return the session id
74 74
      * @todo implement a verification method ( ex: adding another validation string in the sessionID )
75
-     * @return int
75
+     * @return string
76 76
      */
77 77
     public function getId()
78 78
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     public function setRootDomain($domain)
99 99
     {
100 100
         if ($domain !== 'localhost') {
101
-            ini_set('session.cookie_domain', '.'.$domain);
101
+            ini_set('session.cookie_domain', '.' . $domain);
102 102
         }
103 103
 
104 104
         CookieJar::instance()->setDefaults(
Please login to merge, or discard this patch.
src/View/Email.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
     }
154 154
 
155 155
     /**
156
-     * @param $body
156
+     * @param string|null $body
157 157
      * @return $this
158 158
      */
159 159
     public function setBody($body)
Please login to merge, or discard this patch.
src/Filesystem/FilesystemServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     protected function registerNativeFilesystem()
43 43
     {
44
-        $this->getContainer()->share('files', function () {
44
+        $this->getContainer()->share('files', function() {
45 45
             return new Filesystem;
46 46
         });
47 47
     }
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $this->registerManager();
57 57
 
58
-        $this->getContainer()->share('filesystem.disk', function () {
58
+        $this->getContainer()->share('filesystem.disk', function() {
59 59
             return app('filesystem')->disk($this->getDefaultDriver());
60 60
         });
61
-        $this->getContainer()->share('filesystem.cloud', function () {
61
+        $this->getContainer()->share('filesystem.cloud', function() {
62 62
             return app('filesystem')->disk($this->getCloudDriver());
63 63
         });
64 64
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     protected function registerManager()
72 72
     {
73
-        $this->getContainer()->share('filesystem', function () {
73
+        $this->getContainer()->share('filesystem', function() {
74 74
             return new FilesystemManager($this->getContainer()->get('app'));
75 75
         });
76 76
     }
Please login to merge, or discard this patch.
src/Container/Bridges/LeagueContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $this->aliases[$alias] = $abstract;
61 61
 //        $this->abstractAliases[$abstract][] = $alias;
62 62
 
63
-        $this->share($alias, function () use ($abstract) {
63
+        $this->share($alias, function() use ($abstract) {
64 64
             return $this->get($abstract);
65 65
         });
66 66
     }
Please login to merge, or discard this patch.
src/Container/ServicesProviders/ProviderRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
     public function getProvider($provider)
133 133
     {
134 134
         $name = is_string($provider) ? $provider : get_class($provider);
135
-        return \Nip_Helper_Arrays::first($this->providers, function ($value) use ($name) {
135
+        return \Nip_Helper_Arrays::first($this->providers, function($value) use ($name) {
136 136
             return $value instanceof $name;
137 137
         });
138 138
     }
Please login to merge, or discard this patch.