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
Branch 0.x (f91465)
by Jakub
08:30
created
src/Exceptions/VippsException.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     }
93 93
 
94 94
     /**
95
-     * @return mixed
95
+     * @return integer
96 96
      */
97 97
     public function getErrorCode()
98 98
     {
Please login to merge, or discard this patch.
src/Vipps.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -231,8 +231,8 @@
 block discarded – undo
231 231
 
232 232
     /**
233 233
      * Return request for method
234
-     * @param $method
235
-     * @param $uri
234
+     * @param string $method
235
+     * @param string $uri
236 236
      * @param array $payload
237 237
      * @return RequestInterface
238 238
      */
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -264,12 +264,12 @@  discard block
 block discarded – undo
264 264
     protected function getHeaders($method)
265 265
     {
266 266
         $headers = [
267
-          'Content-Type' => 'application/json',
268
-          'X-UserId' => $this->merchantID,
269
-          'Authorization' => 'Secret ' . $this->token,
270
-          'X-Request-Id' => (string) $this->requestID,
271
-          'X-TimeStamp' => (string) new DataTime(),
272
-          'X-Source-Address' => getenv('HTTP_CLIENT_IP')
267
+            'Content-Type' => 'application/json',
268
+            'X-UserId' => $this->merchantID,
269
+            'Authorization' => 'Secret ' . $this->token,
270
+            'X-Request-Id' => (string) $this->requestID,
271
+            'X-TimeStamp' => (string) new DataTime(),
272
+            'X-Source-Address' => getenv('HTTP_CLIENT_IP')
273 273
             ?:getenv('HTTP_X_FORWARDED_FOR')
274 274
             ?:getenv('HTTP_X_FORWARDED')
275 275
             ?:getenv('HTTP_FORWARDED_FOR')
@@ -296,9 +296,9 @@  discard block
 block discarded – undo
296 296
     protected function getPayload(array $payload)
297 297
     {
298 298
         $payload = array_merge_recursive($payload, [
299
-          'merchantInfo' => [
299
+            'merchantInfo' => [
300 300
             'merchantSerialNumber' => $this->merchantSerialNumber,
301
-          ],
301
+            ],
302 302
         ]);
303 303
         return json_encode($payload, JSON_UNESCAPED_SLASHES);
304 304
     }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -270,12 +270,12 @@
 block discarded – undo
270 270
           'X-Request-Id' => (string) $this->requestID,
271 271
           'X-TimeStamp' => (string) new DataTime(),
272 272
           'X-Source-Address' => getenv('HTTP_CLIENT_IP')
273
-            ?:getenv('HTTP_X_FORWARDED_FOR')
274
-            ?:getenv('HTTP_X_FORWARDED')
275
-            ?:getenv('HTTP_FORWARDED_FOR')
276
-            ?:getenv('HTTP_FORWARDED')
277
-            ?:getenv('REMOTE_ADDR')
278
-            ?:gethostname(),
273
+            ?: getenv('HTTP_X_FORWARDED_FOR')
274
+            ?: getenv('HTTP_X_FORWARDED')
275
+            ?: getenv('HTTP_FORWARDED_FOR')
276
+            ?: getenv('HTTP_FORWARDED')
277
+            ?: getenv('REMOTE_ADDR')
278
+            ?: gethostname(),
279 279
         ];
280 280
 
281 281
         // @todo: Investigate more why it's like that.
Please login to merge, or discard this patch.
examples/get_payment.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 include __DIR__ . '/../vendor/autoload.php';
4 4
 $yaml = new \Symfony\Component\Yaml\Parser();
5
-$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__.'/settings.yml'));
5
+$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__ . '/settings.yml'));
6 6
 
7 7
 try {
8 8
     $httpClient = new Http\Adapter\Guzzle6\Client(new \GuzzleHttp\Client([
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
     var_dump($payment->getStatus());
21 21
     // Get transaction details.
22 22
     var_dump($payment->getDetails());
23
-}
24
-catch (Exception $e) {
23
+} catch (Exception $e) {
25 24
     print '<pre>' . var_dump($e) . '</pre>';
26 25
 }
Please login to merge, or discard this patch.
examples/refund_payment.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 include __DIR__ . '/../vendor/autoload.php';
4 4
 $yaml = new \Symfony\Component\Yaml\Parser();
5
-$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__.'/settings.yml'));
5
+$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__ . '/settings.yml'));
6 6
 
7 7
 try {
8 8
     $httpClient = new Http\Adapter\Guzzle6\Client(new \GuzzleHttp\Client([
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
     $payment->refund('refunded', 50);
21 21
     // Dump status.
22 22
     var_dump($payment->getLastResponse());
23
-}
24
-catch (Exception $e) {
23
+} catch (Exception $e) {
25 24
     print '<pre>' . var_dump($e) . '</pre>';
26 25
 }
Please login to merge, or discard this patch.
examples/cancel_payment.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 include __DIR__ . '/../vendor/autoload.php';
4 4
 $yaml = new \Symfony\Component\Yaml\Parser();
5
-$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__.'/settings.yml'));
5
+$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__ . '/settings.yml'));
6 6
 
7 7
 try {
8 8
     $httpClient = new Http\Adapter\Guzzle6\Client(new \GuzzleHttp\Client([
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
     $payment->cancel('canceled');
21 21
     // Dump status.
22 22
     var_dump($payment->getLastResponse());
23
-}
24
-catch (Exception $e) {
23
+} catch (Exception $e) {
25 24
     print '<pre>' . var_dump($e) . '</pre>';
26 25
 }
Please login to merge, or discard this patch.
examples/capture_payment.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 include __DIR__ . '/../vendor/autoload.php';
4 4
 $yaml = new \Symfony\Component\Yaml\Parser();
5
-$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__.'/settings.yml'));
5
+$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__ . '/settings.yml'));
6 6
 
7 7
 try {
8 8
     $httpClient = new Http\Adapter\Guzzle6\Client(new \GuzzleHttp\Client([
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
     $payment->capture('captured', 100);
21 21
     // Dump status.
22 22
     var_dump($payment->getLastResponse());
23
-}
24
-catch (Exception $e) {
23
+} catch (Exception $e) {
25 24
     print '<pre>' . var_dump($e) . '</pre>';
26 25
 }
Please login to merge, or discard this patch.
examples/create_payment.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@
 block discarded – undo
18 18
     $payment->setOrderID($settings['transaction']['orderId']);
19 19
     // Get transaction status.
20 20
     $payment->create(
21
-      $settings['transaction']['mobilePhone'],
22
-      $settings['transaction']['amount'],
23
-      $settings['transaction']['text'],
24
-      $settings['transaction']['callback']
21
+        $settings['transaction']['mobilePhone'],
22
+        $settings['transaction']['amount'],
23
+        $settings['transaction']['text'],
24
+        $settings['transaction']['callback']
25 25
     );
26 26
     // Dump last response.
27 27
     var_dump($payment->getLastResponse());
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 include __DIR__ . '/../vendor/autoload.php';
4 4
 $yaml = new \Symfony\Component\Yaml\Parser();
5
-$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__.'/settings.yml'));
5
+$settings = \Symfony\Component\Yaml\Yaml::parse(file_get_contents(__DIR__ . '/settings.yml'));
6 6
 
7 7
 try {
8 8
     $httpClient = new Http\Adapter\Guzzle6\Client(new \GuzzleHttp\Client([
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
     );
26 26
     // Dump last response.
27 27
     var_dump($payment->getLastResponse());
28
-}
29
-catch (Exception $e) {
28
+} catch (Exception $e) {
30 29
     print '<pre>' . var_dump($e) . '</pre>';
31 30
 }
Please login to merge, or discard this patch.