@@ -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\PolicyMappings; |
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\NameConstraints; |
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\NameConstraints; |
6 | 6 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | public static function fromASN1(Sequence $seq): self |
43 | 43 | { |
44 | 44 | $subtrees = array_map( |
45 | - function (UnspecifiedType $el) { |
|
45 | + function(UnspecifiedType $el) { |
|
46 | 46 | return GeneralSubtree::fromASN1($el->asSequence()); |
47 | 47 | }, $seq->elements()); |
48 | 48 | if (!count($subtrees)) { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | throw new \LogicException('No subtrees.'); |
74 | 74 | } |
75 | 75 | $elements = array_map( |
76 | - function (GeneralSubtree $gs) { |
|
76 | + function(GeneralSubtree $gs) { |
|
77 | 77 | return $gs->toASN1(); |
78 | 78 | }, $this->_subtrees); |
79 | 79 | return new Sequence(...$elements); |
@@ -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\AccessDescription; |
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 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | protected static function _fromDER(string $data, bool $critical): Extension |
123 | 123 | { |
124 | 124 | $policies = array_map( |
125 | - function (UnspecifiedType $el) { |
|
125 | + function(UnspecifiedType $el) { |
|
126 | 126 | return PolicyInformation::fromASN1($el->asSequence()); |
127 | 127 | }, UnspecifiedType::fromDER($data)->asSequence()->elements()); |
128 | 128 | if (!count($policies)) { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | throw new \LogicException('No policies.'); |
142 | 142 | } |
143 | 143 | $elements = array_map( |
144 | - function (PolicyInformation $pi) { |
|
144 | + function(PolicyInformation $pi) { |
|
145 | 145 | return $pi->toASN1(); |
146 | 146 | }, array_values($this->_policies)); |
147 | 147 | return new Sequence(...$elements); |
@@ -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 | |
@@ -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 @@ 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 @@ 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); |