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.
Passed
Push — master ( 2cb105...292c14 )
by Jamie
12:09
created
src/Common/JsonPath.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     /**
39 39
      * Set a node in the structure
40 40
      *
41
-     * @param $path  The XPath to use
41
+     * @param string $path  The XPath to use
42 42
      * @param $value The new value of the node
43 43
      */
44 44
     public function set($path, $value)
Please login to merge, or discard this patch.
src/Common/Resource/HasWaiterTrait.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *                              encapsulate your own logic to determine whether the resource has
45 45
      *                              successfully transitioned. When TRUE is returned by the callback,
46 46
      *                              the loop will end.
47
-     * @param int|bool $timeout     The maximum timeout in seconds. If the total time taken by the waiter has reached
47
+     * @param integer $timeout     The maximum timeout in seconds. If the total time taken by the waiter has reached
48 48
      *                              or exceed this timeout, the blocking operation will immediately cease. If FALSE
49 49
      *                              is provided, the timeout will never be considered.
50 50
      * @param int      $sleepPeriod The amount of time to pause between each HTTP request.
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * Internal method used to identify whether a timeout has been exceeded.
71 71
      *
72
-     * @param bool|int $timeout
72
+     * @param integer $timeout
73 73
      * @param int      $startTime
74 74
      *
75 75
      * @return bool
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * Convenience method providing a blocking operation until the resource transitions to an
88 88
      * ``ACTIVE`` status.
89 89
      *
90
-     * @param int|bool $timeout The maximum timeout in seconds. If the total time taken by the waiter has reached
90
+     * @param integer $timeout The maximum timeout in seconds. If the total time taken by the waiter has reached
91 91
      *                          or exceed this timeout, the blocking operation will immediately cease. If FALSE
92 92
      *                          is provided, the timeout will never be considered.
93 93
      */
Please login to merge, or discard this patch.
src/ObjectStore/v1/Models/Container.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
      *
139 139
      * @param string $name The name of the object
140 140
      *
141
-     * @return Object
141
+     * @return \OpenStack\Common\Resource\ResourceInterface
142 142
      */
143 143
     public function getObject($name)
144 144
     {
Please login to merge, or discard this patch.
src/Common/Api/Parameter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         }
124 124
 
125 125
         $this->location = $this->location ?: self::DEFAULT_LOCATION;
126
-        $this->required = (bool)$this->required;
126
+        $this->required = (bool) $this->required;
127 127
 
128 128
         if (isset($data['items'])) {
129 129
             $this->itemSchema = new Parameter($data['items']);
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
     private function hasCorrectType($userValue)
226 226
     {
227 227
         // Helper fn to see whether an array is associative (i.e. a JSON object)
228
-        $isAssociative = function ($value) {
229
-            return is_array($value) && (bool)count(array_filter(array_keys($value), 'is_string'));
228
+        $isAssociative = function($value) {
229
+            return is_array($value) && (bool) count(array_filter(array_keys($value), 'is_string'));
230 230
         };
231 231
 
232 232
         // For params defined as objects, we'll let the user get away with
Please login to merge, or discard this patch.
src/Common/Transport/Middleware.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
 {
14 14
     public static function httpErrors()
15 15
     {
16
-        return function (callable $handler) {
17
-            return function ($request, array $options) use ($handler) {
16
+        return function(callable $handler) {
17
+            return function($request, array $options) use ($handler) {
18 18
                 return $handler($request, $options)->then(
19
-                    function (ResponseInterface $response) use ($request, $handler) {
19
+                    function(ResponseInterface $response) use ($request, $handler) {
20 20
                         if ($response->getStatusCode() < 400) {
21 21
                             return $response;
22 22
                         }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     public static function authHandler(callable $tokenGenerator, Token $token = null)
31 31
     {
32
-        return function (callable $handler) use ($tokenGenerator, $token) {
32
+        return function(callable $handler) use ($tokenGenerator, $token) {
33 33
             return new AuthHandler($handler, $tokenGenerator, $token);
34 34
         };
35 35
     }
Please login to merge, or discard this patch.
src/Common/Api/Operator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function __call($methodName, $args)
140 140
     {
141
-        $e = function ($name) {
141
+        $e = function($name) {
142 142
             return new \RuntimeException(sprintf('%s::%s is not defined', $name, get_class($this)));
143 143
         };
144 144
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             }
150 150
 
151 151
             $promise = new Promise(
152
-                function () use (&$promise, $realMethod, $args) {
152
+                function() use (&$promise, $realMethod, $args) {
153 153
                     $value = call_user_func_array([$this, $realMethod], $args);
154 154
                     $promise->resolve($value);
155 155
                 }
Please login to merge, or discard this patch.
src/Common/Resource/AbstractResource.php 2 patches
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,6 +96,9 @@  discard block
 block discarded – undo
96 96
         }
97 97
     }
98 98
 
99
+    /**
100
+     * @param string $type
101
+     */
99 102
     private function parseDocBlockValue($type, $val)
100 103
     {
101 104
         if (strpos($type, '[]') === 0 && is_array($val)) {
@@ -120,6 +123,9 @@  discard block
 block discarded – undo
120 123
         ]);
121 124
     }
122 125
 
126
+    /**
127
+     * @return string
128
+     */
123 129
     private function normalizeModelClass($class)
124 130
     {
125 131
         if (strpos($class, '\\') === false) {
@@ -166,7 +172,7 @@  discard block
 block discarded – undo
166 172
     /**
167 173
      * @param array $definition
168 174
      *
169
-     * @return mixed
175
+     * @return ResponseInterface
170 176
      */
171 177
     public function executeWithState(array $definition)
172 178
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -180,14 +180,14 @@
 block discarded – undo
180 180
     {
181 181
         $operation = $this->getOperation($def);
182 182
 
183
-        $requestFn = function ($marker) use ($operation, $userVals) {
183
+        $requestFn = function($marker) use ($operation, $userVals) {
184 184
             if ($operation->hasParam('marker') && $marker) {
185 185
                 $userVals['marker'] = $marker;
186 186
             }
187 187
             return $this->sendRequest($operation, $userVals);
188 188
         };
189 189
 
190
-        $resourceFn = function (array $data) {
190
+        $resourceFn = function(array $data) {
191 191
             $resource = $this->newInstance();
192 192
             $resource->populateFromArray($data);
193 193
             return $resource;
Please login to merge, or discard this patch.
src/Common/Service/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * @codeCoverageIgnore
110 110
      */
111
-    private function addDebugMiddleware(array $options, HandlerStack &$stack)
111
+    private function addDebugMiddleware(array $options, HandlerStack & $stack)
112 112
     {
113 113
         if (!empty($options['debugLog'])
114 114
             && !empty($options['logger'])
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     private function stockAuthHandler(array &$options)
134 134
     {
135 135
         if (!isset($options['authHandler'])) {
136
-            $options['authHandler'] = function () use ($options) {
136
+            $options['authHandler'] = function() use ($options) {
137 137
                 return $options['identityService']->generateToken($options);
138 138
             };
139 139
         }
Please login to merge, or discard this patch.
src/Common/Error/Builder.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * Internal method used when outputting headers in the error description.
46 46
      *
47
-     * @param $name
47
+     * @param string $name
48 48
      *
49 49
      * @return string
50 50
      */
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * Before outputting custom links, it is validated to ensure that the user is not
58 58
      * directed off to a broken link. If a 404 is detected, it is hidden.
59 59
      *
60
-     * @param $link The proposed link
60
+     * @param string $link The proposed link
61 61
      *
62 62
      * @return bool
63 63
      */
@@ -107,6 +107,9 @@  discard block
 block discarded – undo
107 107
         return $e;
108 108
     }
109 109
 
110
+    /**
111
+     * @param integer $statusCode
112
+     */
110 113
     private function getStatusCodeMessage($statusCode)
111 114
     {
112 115
         $errors = [
Please login to merge, or discard this patch.