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
Pull Request — master (#85)
by Martin
06:35
created
src/Provider/Http/UdgerCom.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
          * an empty UserAgent makes no sense
98 98
          */
99 99
         if ($userAgent == '') {
100
-            throw new Exception\NoResultFoundException('No result found for user agent: ' . $userAgent);
100
+            throw new Exception\NoResultFoundException('No result found for user agent: '.$userAgent);
101 101
         }
102 102
 
103 103
         $params = [
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
          * no json returned?
118 118
          */
119 119
         $contentType = $response->getHeader('Content-Type');
120
-        if (! isset($contentType[0]) || $contentType[0] != 'application/json') {
121
-            throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
120
+        if (!isset($contentType[0]) || $contentType[0] != 'application/json') {
121
+            throw new Exception\RequestException('Could not get valid "application/json" response from "'.$request->getUri().'". Response is "'.$response->getBody()->getContents().'"');
122 122
         }
123 123
 
124 124
         $content = json_decode($response->getBody()->getContents());
@@ -127,29 +127,29 @@  discard block
 block discarded – undo
127 127
          * No result found?
128 128
          */
129 129
         if (isset($content->flag) && $content->flag == 3) {
130
-            throw new Exception\NoResultFoundException('No result found for user agent: ' . $userAgent);
130
+            throw new Exception\NoResultFoundException('No result found for user agent: '.$userAgent);
131 131
         }
132 132
 
133 133
         /*
134 134
          * Errors
135 135
          */
136 136
         if (isset($content->flag) && $content->flag == 4) {
137
-            throw new Exception\InvalidCredentialsException('Your API key "' . $this->apiKey . '" is not valid for ' . $this->getName());
137
+            throw new Exception\InvalidCredentialsException('Your API key "'.$this->apiKey.'" is not valid for '.$this->getName());
138 138
         }
139 139
 
140 140
         if (isset($content->flag) && $content->flag == 6) {
141
-            throw new Exception\LimitationExceededException('Exceeded the maximum number of request with API key "' . $this->apiKey . '" for ' . $this->getName());
141
+            throw new Exception\LimitationExceededException('Exceeded the maximum number of request with API key "'.$this->apiKey.'" for '.$this->getName());
142 142
         }
143 143
 
144 144
         if (isset($content->flag) && $content->flag > 3) {
145
-            throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
145
+            throw new Exception\RequestException('Could not get valid response from "'.$request->getUri().'". Response is "'.$response->getBody()->getContents().'"');
146 146
         }
147 147
 
148 148
         /*
149 149
          * Missing data?
150 150
          */
151
-        if (! $content instanceof stdClass || ! isset($content->info)) {
152
-            throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"');
151
+        if (!$content instanceof stdClass || !isset($content->info)) {
152
+            throw new Exception\RequestException('Could not get valid response from "'.$request->getUri().'". Response is "'.$response->getBody()->getContents().'"');
153 153
         }
154 154
 
155 155
         return $content;
Please login to merge, or discard this patch.
src/Provider/SinergiBrowserDetector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function __construct()
110 110
     {
111
-        if (! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) {
112
-            throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider');
111
+        if (!file_exists('vendor/'.$this->getPackageName().'/composer.json')) {
112
+            throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider');
113 113
         }
114 114
     }
115 115
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
          * No result found?
244 244
          */
245 245
         if ($this->hasResult($browserRaw, $osRaw, $deviceRaw) !== true) {
246
-            throw new NoResultFoundException('No result found for user agent: ' . $userAgent);
246
+            throw new NoResultFoundException('No result found for user agent: '.$userAgent);
247 247
         }
248 248
 
249 249
         /*
Please login to merge, or discard this patch.
src/Provider/AbstractBrowscap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         }
74 74
 
75 75
         if ($expectedType !== $parser->getCache()->getType()) {
76
-            throw new InvalidArgumentException('Expected the "' . $expectedType . '" data file. Instead got the "' . $parser->getCache()->getType() . '" data file');
76
+            throw new InvalidArgumentException('Expected the "'.$expectedType.'" data file. Instead got the "'.$parser->getCache()->getType().'" data file');
77 77
         }
78 78
     }
79 79
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
          * No result found?
240 240
          */
241 241
         if ($this->hasResult($resultRaw) !== true) {
242
-            throw new NoResultFoundException('No result found for user agent: ' . $userAgent);
242
+            throw new NoResultFoundException('No result found for user agent: '.$userAgent);
243 243
         }
244 244
 
245 245
         /*
Please login to merge, or discard this patch.
src/Provider/PiwikDeviceDetector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function __construct(DeviceDetector $parser = null)
97 97
     {
98
-        if ($parser === null && ! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) {
99
-            throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider');
98
+        if ($parser === null && !file_exists('vendor/'.$this->getPackageName().'/composer.json')) {
99
+            throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider');
100 100
         }
101 101
 
102 102
         $this->parser = $parser;
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
          * No result found?
304 304
          */
305 305
         if ($this->hasResult($dd) !== true) {
306
-            throw new NoResultFoundException('No result found for user agent: ' . $userAgent);
306
+            throw new NoResultFoundException('No result found for user agent: '.$userAgent);
307 307
         }
308 308
 
309 309
         /*
Please login to merge, or discard this patch.
src/Provider/JenssegersAgent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function __construct()
94 94
     {
95
-        if (! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) {
96
-            throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider');
95
+        if (!file_exists('vendor/'.$this->getPackageName().'/composer.json')) {
96
+            throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider');
97 97
         }
98 98
     }
99 99
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
          * No result found?
219 219
          */
220 220
         if ($this->hasResult($resultCache) !== true) {
221
-            throw new NoResultFoundException('No result found for user agent: ' . $userAgent);
221
+            throw new NoResultFoundException('No result found for user agent: '.$userAgent);
222 222
         }
223 223
 
224 224
         /*
Please login to merge, or discard this patch.
src/Provider/DonatjUAParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
 
72 72
     public function __construct()
73 73
     {
74
-        if (! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) {
75
-            throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider');
74
+        if (!file_exists('vendor/'.$this->getPackageName().'/composer.json')) {
75
+            throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider');
76 76
         }
77 77
     }
78 78
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         $resultRaw = $functionName($userAgent);
115 115
 
116 116
         if ($this->hasResult($resultRaw) !== true) {
117
-            throw new NoResultFoundException('No result found for user agent: ' . $userAgent);
117
+            throw new NoResultFoundException('No result found for user agent: '.$userAgent);
118 118
         }
119 119
 
120 120
         /*
Please login to merge, or discard this patch.
src/Provider/Woothee.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,8 +96,8 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function __construct()
98 98
     {
99
-        if (! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) {
100
-            throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider');
99
+        if (!file_exists('vendor/'.$this->getPackageName().'/composer.json')) {
100
+            throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider');
101 101
         }
102 102
     }
103 103
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
          * No result found?
202 202
          */
203 203
         if ($this->hasResult($resultRaw) !== true) {
204
-            throw new NoResultFoundException('No result found for user agent: ' . $userAgent);
204
+            throw new NoResultFoundException('No result found for user agent: '.$userAgent);
205 205
         }
206 206
 
207 207
         /*
Please login to merge, or discard this patch.
src/Provider/Chain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,6 +54,6 @@
 block discarded – undo
54 54
             }
55 55
         }
56 56
 
57
-        throw new Exception\NoResultFoundException('No result found for user agent: ' . $userAgent);
57
+        throw new Exception\NoResultFoundException('No result found for user agent: '.$userAgent);
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
src/Provider/Zsxsoft.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function __construct(UserAgent $parser = null)
99 99
     {
100
-        if ($parser === null && ! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) {
101
-            throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider');
100
+        if ($parser === null && !file_exists('vendor/'.$this->getPackageName().'/composer.json')) {
101
+            throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider');
102 102
         }
103 103
 
104 104
         $this->parser = $parser;
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
          * No result found?
211 211
          */
212 212
         if ($this->hasResult($browser, $os, $device) !== true) {
213
-            throw new NoResultFoundException('No result found for user agent: ' . $userAgent);
213
+            throw new NoResultFoundException('No result found for user agent: '.$userAgent);
214 214
         }
215 215
 
216 216
         /*
Please login to merge, or discard this patch.