@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\X509\Certificate\Extension\CertificatePolicy; |
6 | 6 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | { |
54 | 54 | $org = DisplayText::fromASN1($seq->at(0)->asString()); |
55 | 55 | $numbers = array_map( |
56 | - function (UnspecifiedType $el) { |
|
56 | + function(UnspecifiedType $el) { |
|
57 | 57 | return $el->asInteger()->intNumber(); |
58 | 58 | }, $seq->at(1)->asSequence()->elements()); |
59 | 59 | return new self($org, ...$numbers); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | { |
89 | 89 | $org = $this->_organization->toASN1(); |
90 | 90 | $nums = array_map( |
91 | - function ($number) { |
|
91 | + function($number) { |
|
92 | 92 | return new Integer($number); |
93 | 93 | }, $this->_numbers); |
94 | 94 | return new Sequence($org, new Sequence(...$nums)); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\X509\Certificate\Extension\CertificatePolicy; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\X509\Certificate\Extension\CertificatePolicy; |
6 | 6 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $qualifiers = []; |
66 | 66 | if (count($seq) > 1) { |
67 | 67 | $qualifiers = array_map( |
68 | - function (UnspecifiedType $el) { |
|
68 | + function(UnspecifiedType $el) { |
|
69 | 69 | return PolicyQualifierInfo::fromASN1($el->asSequence()); |
70 | 70 | }, $seq->at(1)->asSequence()->elements()); |
71 | 71 | } |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | $elements = [new ObjectIdentifier($this->_oid)]; |
192 | 192 | if (count($this->_qualifiers)) { |
193 | 193 | $qualifiers = array_map( |
194 | - function (PolicyQualifierInfo $pqi) { |
|
194 | + function(PolicyQualifierInfo $pqi) { |
|
195 | 195 | return $pqi->toASN1(); |
196 | 196 | }, array_values($this->_qualifiers)); |
197 | 197 | $elements[] = new Sequence(...$qualifiers); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\X509\Certificate\Extension\CertificatePolicy; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\X509\Certificate\Extension\CertificatePolicy; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
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 |
@@ -1,6 +1,6 @@ discard block |
||
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 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | protected static function _fromDER(string $data, bool $critical): Extension |
38 | 38 | { |
39 | 39 | $attribs = array_map( |
40 | - function (UnspecifiedType $el) { |
|
40 | + function(UnspecifiedType $el) { |
|
41 | 41 | return Attribute::fromASN1($el->asSequence()); |
42 | 42 | }, UnspecifiedType::fromDER($data)->asSequence()->elements()); |
43 | 43 | if (!count($attribs)) { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | throw new \LogicException('No attributes'); |
57 | 57 | } |
58 | 58 | $elements = array_map( |
59 | - function (Attribute $attr) { |
|
59 | + function(Attribute $attr) { |
|
60 | 60 | return $attr->toASN1(); |
61 | 61 | }, array_values($this->_attributes)); |
62 | 62 | return new Sequence(...$elements); |
@@ -1,6 +1,6 @@ discard block |
||
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 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | protected static function _fromDER(string $data, bool $critical): Extension |
77 | 77 | { |
78 | 78 | $access = array_map( |
79 | - function (UnspecifiedType $el) { |
|
79 | + function(UnspecifiedType $el) { |
|
80 | 80 | return AuthorityAccessDescription::fromASN1($el->asSequence()); |
81 | 81 | }, UnspecifiedType::fromDER($data)->asSequence()->elements()); |
82 | 82 | return new self($critical, ...$access); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | protected function _valueASN1(): Element |
89 | 89 | { |
90 | 90 | $elements = array_map( |
91 | - function (AccessDescription $access) { |
|
91 | + function(AccessDescription $access) { |
|
92 | 92 | return $access->toASN1(); |
93 | 93 | }, $this->_accessDescriptions); |
94 | 94 | return new Sequence(...$elements); |
@@ -1,6 +1,6 @@ discard block |
||
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 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | protected static function _fromDER(string $data, bool $critical): Extension |
125 | 125 | { |
126 | 126 | $purposes = array_map( |
127 | - function (UnspecifiedType $el) { |
|
127 | + function(UnspecifiedType $el) { |
|
128 | 128 | return $el->asObjectIdentifier()->oid(); |
129 | 129 | }, UnspecifiedType::fromDER($data)->asSequence()->elements()); |
130 | 130 | return new self($critical, ...$purposes); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | protected function _valueASN1(): Element |
137 | 137 | { |
138 | 138 | $elements = array_map( |
139 | - function ($oid) { |
|
139 | + function($oid) { |
|
140 | 140 | return new ObjectIdentifier($oid); |
141 | 141 | }, $this->_purposes); |
142 | 142 | return new Sequence(...$elements); |