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 Failed
Branch develop (5b5799)
by Toby
03:14
created
Category
src/Middleware/CheckLinkValid.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,17 +23,17 @@
 block discarded – undo
23 23
 
24 24
         $link = $request->get('link');
25 25
 
26
-        if($link->clickLimitReached()) {
26
+        if ($link->clickLimitReached()) {
27 27
             throw new LinkClickLimitReachedException;
28 28
         }
29
-        if($link->group && $link->group->clickLimitReached()) {
29
+        if ($link->group && $link->group->clickLimitReached()) {
30 30
             throw new LinkGroupClickLimitReachedException;
31 31
         }
32
-        if($link->expired()) {
32
+        if ($link->expired()) {
33 33
             throw new LinkExpiredException;
34 34
         }
35 35
 
36
-        if($link->group && $link->group->expired() && $link->expiry === null) {
36
+        if ($link->group && $link->group->expired() && $link->expiry === null) {
37 37
             throw new LinkGroupExpiredException;
38 38
         }
39 39
 
Please login to merge, or discard this patch.
src/Models/Group.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function clickLimitReached()
42 42
     {
43
-        if($this->click_limit === null) {
43
+        if ($this->click_limit === null) {
44 44
             return false;
45 45
         }
46 46
         return $this->click_limit <= $this->links->sum('clicks');
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function expired()
50 50
     {
51
-        if($this->expiry === null) {
51
+        if ($this->expiry === null) {
52 52
             return false;
53 53
         }
54 54
         return !(new Carbon($this->expiry))->isFuture();
Please login to merge, or discard this patch.
src/Models/Link.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     public static function boot()
54 54
     {
55 55
         parent::boot();
56
-        self::creating(function ($model) {
56
+        self::creating(function($model) {
57 57
             $model->uuid = $model->uuid ?: resolve(UuidCreator::class)->create();
58 58
         });
59 59
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     public function clickLimitReached()
76 76
     {
77
-        if($this->click_limit === null) {
77
+        if ($this->click_limit === null) {
78 78
             return false;
79 79
         }
80 80
         return $this->click_limit <= $this->clicks;
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     public function expired()
84 84
     {
85
-        if($this->expiry === null) {
85
+        if ($this->expiry === null) {
86 86
             return false;
87 87
         }
88 88
         return !(new Carbon($this->expiry))->isFuture();
Please login to merge, or discard this patch.
src/LinkGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             'expiry' => $expiry
51 51
         ]);
52 52
 
53
-        if($this->group !== null) {
53
+        if ($this->group !== null) {
54 54
             $this->groupRepository->pushLink($this->group, $link);
55 55
         }
56 56
 
Please login to merge, or discard this patch.
src/Support/ExpiryNormaliser/Normalisers/FromInteger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
     public function normalise($expiry)
10 10
     {
11
-        if(is_int($expiry)) {
11
+        if (is_int($expiry)) {
12 12
             return (new Carbon())->setTimestamp($expiry);
13 13
         }
14 14
 
Please login to merge, or discard this patch.
src/Support/ExpiryNormaliser/Normalisers/FromDateTime.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
     public function normalise($expiry)
9 9
     {
10
-        if($expiry instanceof \DateTime) {
10
+        if ($expiry instanceof \DateTime) {
11 11
             return $expiry;
12 12
         }
13 13
     }
Please login to merge, or discard this patch.
src/Support/ExpiryNormaliser/Normalisers/ExpiryNormaliser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
     final public function setSuccessor(ExpiryNormaliser $successor)
14 14
     {
15
-        if($this->successor === null) {
15
+        if ($this->successor === null) {
16 16
             $this->successor = $successor;
17 17
         } else {
18 18
             $this->successor->setSuccessor($successor);
Please login to merge, or discard this patch.
src/Support/ExpiryNormaliser/Normalisers/FromString.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
     public function normalise($expiry)
10 10
     {
11
-        if(is_string($expiry)) {
11
+        if (is_string($expiry)) {
12 12
             return new Carbon($expiry);
13 13
         }
14 14
 
Please login to merge, or discard this patch.
src/Support/ExpiryNormaliser/NormaliserManager.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
 
15 15
     public function pushNormaliser(ExpiryNormaliser $normaliser)
16 16
     {
17
-        if($this->normaliser === null) {
17
+        if ($this->normaliser === null) {
18 18
             $this->normaliser = $normaliser;
19 19
         } else {
20 20
             $this->normaliser->setSuccessor($normaliser);
Please login to merge, or discard this patch.