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
Push — master ( 405cf3...79c9ba )
by Joni
04:48
created
lib/X509/GeneralName/IPv6Address.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Sop\X509\GeneralName;
6 6
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     protected static function _wordsToIPv6String(array $words): string
44 44
     {
45 45
         $groups = array_map(
46
-            function ($word) {
46
+            function($word) {
47 47
                 return sprintf('%04x', $word);
48 48
             }, $words);
49 49
         return implode(':', $groups);
Please login to merge, or discard this patch.
Switch Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -20,15 +20,15 @@
 block discarded – undo
20 20
         $mask = null;
21 21
         $words = unpack('n*', $octets) ?: [];
22 22
         switch (count($words)) {
23
-            case 8:
24
-                $ip = self::_wordsToIPv6String($words);
25
-                break;
26
-            case 16:
27
-                $ip = self::_wordsToIPv6String(array_slice($words, 0, 8));
28
-                $mask = self::_wordsToIPv6String(array_slice($words, 8, 8));
29
-                break;
30
-            default:
31
-                throw new \UnexpectedValueException('Invalid IPv6 octet length.');
23
+        case 8:
24
+            $ip = self::_wordsToIPv6String($words);
25
+            break;
26
+        case 16:
27
+            $ip = self::_wordsToIPv6String(array_slice($words, 0, 8));
28
+            $mask = self::_wordsToIPv6String(array_slice($words, 8, 8));
29
+            break;
30
+        default:
31
+            throw new \UnexpectedValueException('Invalid IPv6 octet length.');
32 32
         }
33 33
         return new self($ip, $mask);
34 34
     }
Please login to merge, or discard this patch.
lib/X509/GeneralName/IPAddress.php 2 patches
Switch Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -55,15 +55,15 @@
 block discarded – undo
55 55
     {
56 56
         $octets = $el->asOctetString()->string();
57 57
         switch (strlen($octets)) {
58
-            case 4:
59
-            case 8:
60
-                return IPv4Address::fromOctets($octets);
61
-            case 16:
62
-            case 32:
63
-                return IPv6Address::fromOctets($octets);
64
-            default:
65
-                throw new \UnexpectedValueException(
66
-                    'Invalid octet length for IP address.');
58
+        case 4:
59
+        case 8:
60
+            return IPv4Address::fromOctets($octets);
61
+        case 16:
62
+        case 32:
63
+            return IPv6Address::fromOctets($octets);
64
+        default:
65
+            throw new \UnexpectedValueException(
66
+                'Invalid octet length for IP address.');
67 67
         }
68 68
     }
69 69
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Sop\X509\GeneralName;
6 6
 
Please login to merge, or discard this patch.
lib/X509/GeneralName/GeneralNames.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Sop\X509\GeneralName;
6 6
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                 'GeneralNames must have at least one GeneralName.');
52 52
         }
53 53
         $names = array_map(
54
-            function (UnspecifiedType $el) {
54
+            function(UnspecifiedType $el) {
55 55
                 return GeneralName::fromASN1($el->asTagged());
56 56
             }, $seq->elements());
57 57
         return new self(...$names);
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     public function allOf(int $tag): array
98 98
     {
99 99
         $names = array_filter($this->_names,
100
-            function (GeneralName $name) use ($tag) {
100
+            function(GeneralName $name) use ($tag) {
101 101
                 return $name->tag() === $tag;
102 102
             });
103 103
         return array_values($names);
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 'GeneralNames must have at least one GeneralName.');
161 161
         }
162 162
         $elements = array_map(
163
-            function (GeneralName $name) {
163
+            function(GeneralName $name) {
164 164
                 return $name->toASN1();
165 165
             }, $this->_names);
166 166
         return new Sequence(...$elements);
Please login to merge, or discard this patch.
lib/X509/GeneralName/GeneralName.php 2 patches
Switch Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -76,43 +76,43 @@
 block discarded – undo
76 76
     {
77 77
         switch ($el->tag()) {
78 78
             // otherName
79
-            case self::TAG_OTHER_NAME:
80
-                return OtherName::fromChosenASN1(
81
-                    $el->asImplicit(Element::TYPE_SEQUENCE));
82
-            // rfc822Name
83
-            case self::TAG_RFC822_NAME:
84
-                return RFC822Name::fromChosenASN1(
85
-                    $el->asImplicit(Element::TYPE_IA5_STRING));
86
-            // dNSName
87
-            case self::TAG_DNS_NAME:
88
-                return DNSName::fromChosenASN1(
89
-                    $el->asImplicit(Element::TYPE_IA5_STRING));
90
-            // x400Address
91
-            case self::TAG_X400_ADDRESS:
92
-                return X400Address::fromChosenASN1(
93
-                    $el->asImplicit(Element::TYPE_SEQUENCE));
94
-            // directoryName
95
-            case self::TAG_DIRECTORY_NAME:
96
-                // because Name is a CHOICE, albeit having only one option,
97
-                // explicit tagging must be used
98
-                // (see X.680 07/2002 30.6.c)
99
-                return DirectoryName::fromChosenASN1($el->asExplicit());
100
-            // ediPartyName
101
-            case self::TAG_EDI_PARTY_NAME:
102
-                return EDIPartyName::fromChosenASN1(
103
-                    $el->asImplicit(Element::TYPE_SEQUENCE));
104
-            // uniformResourceIdentifier
105
-            case self::TAG_URI:
106
-                return UniformResourceIdentifier::fromChosenASN1(
107
-                    $el->asImplicit(Element::TYPE_IA5_STRING));
108
-            // iPAddress
109
-            case self::TAG_IP_ADDRESS:
110
-                return IPAddress::fromChosenASN1(
111
-                    $el->asImplicit(Element::TYPE_OCTET_STRING));
112
-            // registeredID
113
-            case self::TAG_REGISTERED_ID:
114
-                return RegisteredID::fromChosenASN1(
115
-                    $el->asImplicit(Element::TYPE_OBJECT_IDENTIFIER));
79
+        case self::TAG_OTHER_NAME:
80
+            return OtherName::fromChosenASN1(
81
+                $el->asImplicit(Element::TYPE_SEQUENCE));
82
+        // rfc822Name
83
+        case self::TAG_RFC822_NAME:
84
+            return RFC822Name::fromChosenASN1(
85
+                $el->asImplicit(Element::TYPE_IA5_STRING));
86
+        // dNSName
87
+        case self::TAG_DNS_NAME:
88
+            return DNSName::fromChosenASN1(
89
+                $el->asImplicit(Element::TYPE_IA5_STRING));
90
+        // x400Address
91
+        case self::TAG_X400_ADDRESS:
92
+            return X400Address::fromChosenASN1(
93
+                $el->asImplicit(Element::TYPE_SEQUENCE));
94
+        // directoryName
95
+        case self::TAG_DIRECTORY_NAME:
96
+            // because Name is a CHOICE, albeit having only one option,
97
+            // explicit tagging must be used
98
+            // (see X.680 07/2002 30.6.c)
99
+            return DirectoryName::fromChosenASN1($el->asExplicit());
100
+        // ediPartyName
101
+        case self::TAG_EDI_PARTY_NAME:
102
+            return EDIPartyName::fromChosenASN1(
103
+                $el->asImplicit(Element::TYPE_SEQUENCE));
104
+        // uniformResourceIdentifier
105
+        case self::TAG_URI:
106
+            return UniformResourceIdentifier::fromChosenASN1(
107
+                $el->asImplicit(Element::TYPE_IA5_STRING));
108
+        // iPAddress
109
+        case self::TAG_IP_ADDRESS:
110
+            return IPAddress::fromChosenASN1(
111
+                $el->asImplicit(Element::TYPE_OCTET_STRING));
112
+        // registeredID
113
+        case self::TAG_REGISTERED_ID:
114
+            return RegisteredID::fromChosenASN1(
115
+                $el->asImplicit(Element::TYPE_OBJECT_IDENTIFIER));
116 116
         }
117 117
         throw new \UnexpectedValueException(
118 118
             'GeneralName type ' . $el->tag() . ' not supported.');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Sop\X509\GeneralName;
6 6
 
Please login to merge, or discard this patch.
lib/X509/Certificate/Validity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Sop\X509\Certificate;
6 6
 
Please login to merge, or discard this patch.
lib/X509/Certificate/Extensions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Sop\X509\Certificate;
6 6
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     public static function fromASN1(Sequence $seq): Extensions
62 62
     {
63 63
         $extensions = array_map(
64
-            function (UnspecifiedType $el) {
64
+            function(UnspecifiedType $el) {
65 65
                 return Extension::fromASN1($el->asSequence());
66 66
             }, $seq->elements());
67 67
         return new self(...$extensions);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $elements = array_values(
78 78
             array_map(
79
-                function ($ext) {
79
+                function($ext) {
80 80
                     return $ext->toASN1();
81 81
                 }, $this->_extensions));
82 82
         return new Sequence(...$elements);
Please login to merge, or discard this patch.
lib/X509/Certificate/Extension/KeyUsageExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Sop\X509\Certificate\Extension;
6 6
 
Please login to merge, or discard this patch.
lib/X509/Certificate/Extension/DistributionPoint/RelativeName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Sop\X509\Certificate\Extension\DistributionPoint;
6 6
 
Please login to merge, or discard this patch.
lib/X509/Certificate/Extension/DistributionPoint/DistributionPointName.php 2 patches
Switch Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -40,16 +40,16 @@
 block discarded – undo
40 40
     public static function fromTaggedType(TaggedType $el): self
41 41
     {
42 42
         switch ($el->tag()) {
43
-            case self::TAG_FULL_NAME:
44
-                return new FullName(
45
-                    GeneralNames::fromASN1(
46
-                        $el->asImplicit(Element::TYPE_SEQUENCE)->asSequence()));
47
-            case self::TAG_RDN:
48
-                return new RelativeName(
49
-                    RDN::fromASN1($el->asImplicit(Element::TYPE_SET)->asSet()));
50
-            default:
51
-                throw new \UnexpectedValueException(
52
-                    'DistributionPointName tag ' . $el->tag() . ' not supported.');
43
+        case self::TAG_FULL_NAME:
44
+            return new FullName(
45
+                GeneralNames::fromASN1(
46
+                    $el->asImplicit(Element::TYPE_SEQUENCE)->asSequence()));
47
+        case self::TAG_RDN:
48
+            return new RelativeName(
49
+                RDN::fromASN1($el->asImplicit(Element::TYPE_SET)->asSet()));
50
+        default:
51
+            throw new \UnexpectedValueException(
52
+                'DistributionPointName tag ' . $el->tag() . ' not supported.');
53 53
         }
54 54
     }
55 55
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Sop\X509\Certificate\Extension\DistributionPoint;
6 6
 
Please login to merge, or discard this patch.