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 — master ( d88c83...a99e88 )
by Carlos
11:19
created
src/Abstracts/HttpDeathByCaptchaAbstract.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * contain the query string as well.
30 30
      *
31 31
      * @param string              $method  HTTP method.
32
-     * @param string|UriInterface $uri     URI object or string.
32
+     * @param string $uri     URI object or string.
33 33
      * @param array               $options Request options to apply.
34 34
      *
35 35
      * @return ResponseInterface
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace juniorb2ss\DeathByCaptcha\Abstracts;
4 4
 
5
-use Psr\Http\Message\ResponseInterface;
6 5
 use GuzzleHttp\Exception\GuzzleException;
6
+use Psr\Http\Message\ResponseInterface;
7
+use juniorb2ss\DeathByCaptcha\Abstracts\HttpHandlerResponseAbstract;
7 8
 use juniorb2ss\DeathByCaptcha\DeathByCaptcha;
8
-use juniorb2ss\DeathByCaptcha\Exceptions\ClientException;
9 9
 use juniorb2ss\DeathByCaptcha\Interfaces\ClientInterface;
10
-use juniorb2ss\DeathByCaptcha\Abstracts\HttpHandlerResponseAbstract;
11 10
 
12 11
 abstract class HttpDeathByCaptchaAbstract extends HttpHandlerResponseAbstract implements ClientInterface
13 12
 {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         $options = array_merge(['query' => $query], $this->getClientOptions($headers));
65 65
 
66
-        $response = $this->request('GET', static::API_URL . $path, $options);
66
+        $response = $this->request('GET', static::API_URL.$path, $options);
67 67
 
68 68
         return $response;
69 69
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $headers = $this->getHeadersForClientRequest($headers);
82 82
 
83 83
         $options = array_merge(['form_params' => $query], $this->getClientOptions($headers));
84
-        $response = $this->request('POST', static::API_URL . $path, $options);
84
+        $response = $this->request('POST', static::API_URL.$path, $options);
85 85
 
86 86
         return $response;
87 87
     }
Please login to merge, or discard this patch.
src/Abstracts/HttpHandlerResponseAbstract.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace juniorb2ss\DeathByCaptcha\Abstracts;
4 4
 
5
-use Psr\Http\Message\ResponseInterface;
6 5
 use juniorb2ss\DeathByCaptcha\Exceptions\AccessDeniedException;
7 6
 use juniorb2ss\DeathByCaptcha\Exceptions\CaptchaNotFoundException;
8 7
 use juniorb2ss\DeathByCaptcha\Exceptions\InvalidCaptchaException;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         // accept de json, técnicamente deverá retornar
37 37
         // o content type como json
38 38
         // mas... nunca se sabe, né?
39
-        if (($contentType !== $this->contentTypeOk) or (empty((string)$response->getBody()))) {
39
+        if (($contentType !== $this->contentTypeOk) or (empty((string) $response->getBody()))) {
40 40
             throw new InvalidServiceResponseException;
41 41
         }
42 42
 
Please login to merge, or discard this patch.
src/Abstracts/ServiceAbstract.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Psr\Http\Message\ResponseInterface;
6 6
 use juniorb2ss\DeathByCaptcha\DeathByCaptcha;
7
-use juniorb2ss\DeathByCaptcha\Interfaces\ServiceInterface;
8 7
 use juniorb2ss\DeathByCaptcha\Exceptions\InvalidResponseAttributeException;
8
+use juniorb2ss\DeathByCaptcha\Interfaces\ServiceInterface;
9 9
 
10 10
 abstract class ServiceAbstract implements ServiceInterface
11 11
 {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function setResponse(ResponseInterface $response)
13 13
     {
14
-        $bodyResponse = (string)$response->getBody();
14
+        $bodyResponse = (string) $response->getBody();
15 15
 
16 16
         $this->objectResponse = json_decode(rtrim($bodyResponse));
17 17
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function getResponse(): \StdClass
22 22
     {
23
-        return (object)$this->objectResponse;
23
+        return (object) $this->objectResponse;
24 24
     }
25 25
 
26 26
     public function getResponseAttribute(string $attribute)
@@ -34,6 +34,6 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function toArray(): array
36 36
     {
37
-        return (array)$this->getResponse();
37
+        return (array) $this->getResponse();
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/DeathByCaptcha.php 2 patches
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -37,9 +37,6 @@
 block discarded – undo
37 37
     /**
38 38
      * @param string                $username
39 39
      * @param string                $password
40
-     * @param ClientInterface|null  $client
41
-     * @param AccountInterface|null $account
42
-     * @param StatusInterface|null  $status
43 40
      */
44 41
     public function __construct(
45 42
         string $username,
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use GuzzleHttp\Client as GuzzleClient;
6 6
 use GuzzleHttp\ClientInterface;
7
-use GuzzleHttp\Psr7\Response;
8 7
 use juniorb2ss\DeathByCaptcha\Abstracts\HttpDeathByCaptchaAbstract;
9 8
 use juniorb2ss\DeathByCaptcha\Interfaces\AccountInterface;
10 9
 use juniorb2ss\DeathByCaptcha\Interfaces\DeathByCaptchaInterface;
Please login to merge, or discard this patch.
src/Interfaces/DeathByCaptchaInterface.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
     /**
24 24
      * Envia o captcha pro serviço ou recupera o resultado
25 25
      * de um captcha previamente enviado
26
-     * @param  $mix $captcha ID do captcha ou imagem
27 26
      * @return ResolverInterface
28 27
      */
29 28
     public function resolver($mix): ResolverInterface;
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace juniorb2ss\DeathByCaptcha\Interfaces;
4 4
 
5
-use juniorb2ss\DeathByCaptcha\Interfaces\StatusInterface;
6 5
 use juniorb2ss\DeathByCaptcha\Interfaces\AccountInterface;
7 6
 use juniorb2ss\DeathByCaptcha\Interfaces\ResolverInterface;
7
+use juniorb2ss\DeathByCaptcha\Interfaces\StatusInterface;
8 8
 
9 9
 interface DeathByCaptchaInterface
10 10
 {
Please login to merge, or discard this patch.
src/Services/StatusService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,21 +10,21 @@
 block discarded – undo
10 10
 {
11 11
     public function status(): int
12 12
     {
13
-        return (int)$this->getResponseAttribute('status');
13
+        return (int) $this->getResponseAttribute('status');
14 14
     }
15 15
 
16 16
     public function todaysAccuracy(): float
17 17
     {
18
-        return (float)$this->getResponseAttribute('todays_accuracy');
18
+        return (float) $this->getResponseAttribute('todays_accuracy');
19 19
     }
20 20
 
21 21
     public function solvedIn(): int
22 22
     {
23
-        return (int)$this->getResponseAttribute('solved_in');
23
+        return (int) $this->getResponseAttribute('solved_in');
24 24
     }
25 25
 
26 26
     public function isServiceOverloaded(): bool
27 27
     {
28
-        return (bool)$this->getResponseAttribute('is_service_overloaded');
28
+        return (bool) $this->getResponseAttribute('is_service_overloaded');
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
src/Services/ImageService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         try {
15 15
             $image = Image::make($content);
16 16
 
17
-            return (string)$image->encode();
17
+            return (string) $image->encode();
18 18
         } catch (ImageException $e) {
19 19
             throw new InvalidCaptchaException;
20 20
         }
Please login to merge, or discard this patch.
src/Services/ReportService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,16 +10,16 @@
 block discarded – undo
10 10
 {
11 11
     public function isCorrect(): bool
12 12
     {
13
-        return (bool)$this->getResponseAttribute('is_correct');
13
+        return (bool) $this->getResponseAttribute('is_correct');
14 14
     }
15 15
 
16 16
     public function text(): string
17 17
     {
18
-        return (string)$this->getResponseAttribute('text');
18
+        return (string) $this->getResponseAttribute('text');
19 19
     }
20 20
 
21 21
     public function status(): int
22 22
     {
23
-        return (int)$this->getResponseAttribute('status');
23
+        return (int) $this->getResponseAttribute('status');
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
src/Services/AccountService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,26 +10,26 @@
 block discarded – undo
10 10
 {
11 11
     public function isBanned(): bool
12 12
     {
13
-        return (bool)$this->getResponseAttribute('is_banned');
13
+        return (bool) $this->getResponseAttribute('is_banned');
14 14
     }
15 15
 
16 16
     public function getStatus(): int
17 17
     {
18
-        return (int)$this->getResponseAttribute('status');
18
+        return (int) $this->getResponseAttribute('status');
19 19
     }
20 20
 
21 21
     public function getRate(): int
22 22
     {
23
-        return (int)$this->getResponseAttribute('rate');
23
+        return (int) $this->getResponseAttribute('rate');
24 24
     }
25 25
 
26 26
     public function getBalance(): float
27 27
     {
28
-        return (double)$this->getResponseAttribute('balance');
28
+        return (double) $this->getResponseAttribute('balance');
29 29
     }
30 30
 
31 31
     public function getUser(): int
32 32
     {
33
-        return (int)$this->getResponseAttribute('user');
33
+        return (int) $this->getResponseAttribute('user');
34 34
     }
35 35
 }
Please login to merge, or discard this patch.