@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace X509\Certificate\Extension\DistributionPoint; |
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 X509\Certificate\Extension\DistributionPoint; |
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 X509\Certificate\Extension\DistributionPoint; |
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 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 X509\Certificate\Extension; |
6 | 6 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | ->asImplicit(Element::TYPE_SEQUENCE) |
94 | 94 | ->asSequence(); |
95 | 95 | $permitted = array_map( |
96 | - function (UnspecifiedType $el) { |
|
96 | + function(UnspecifiedType $el) { |
|
97 | 97 | return $el->asObjectIdentifier()->oid(); |
98 | 98 | }, $attr_seq->elements()); |
99 | 99 | $idx++; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | ->asImplicit(Element::TYPE_SEQUENCE) |
104 | 104 | ->asSequence(); |
105 | 105 | $excluded = array_map( |
106 | - function (UnspecifiedType $el) { |
|
106 | + function(UnspecifiedType $el) { |
|
107 | 107 | return $el->asObjectIdentifier()->oid(); |
108 | 108 | }, $attr_seq->elements()); |
109 | 109 | $idx++; |
@@ -213,14 +213,14 @@ discard block |
||
213 | 213 | } |
214 | 214 | if (isset($this->_permittedAttrs)) { |
215 | 215 | $oids = array_map( |
216 | - function ($oid) { |
|
216 | + function($oid) { |
|
217 | 217 | return new ObjectIdentifier($oid); |
218 | 218 | }, $this->_permittedAttrs); |
219 | 219 | $elements[] = new ImplicitlyTaggedType(0, new Sequence(...$oids)); |
220 | 220 | } |
221 | 221 | if (isset($this->_excludedAttrs)) { |
222 | 222 | $oids = array_map( |
223 | - function ($oid) { |
|
223 | + function($oid) { |
|
224 | 224 | return new ObjectIdentifier($oid); |
225 | 225 | }, $this->_excludedAttrs); |
226 | 226 | $elements[] = new ImplicitlyTaggedType(1, new Sequence(...$oids)); |
@@ -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 X509\Certificate\Extension; |
6 | 6 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | protected static function _fromDER($data, $critical) |
46 | 46 | { |
47 | 47 | $mappings = array_map( |
48 | - function (UnspecifiedType $el) { |
|
48 | + function(UnspecifiedType $el) { |
|
49 | 49 | return PolicyMapping::fromASN1($el->asSequence()); |
50 | 50 | }, Sequence::fromDER($data)->elements()); |
51 | 51 | if (!count($mappings)) { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | throw new \LogicException("No mappings."); |
67 | 67 | } |
68 | 68 | $elements = array_map( |
69 | - function (PolicyMapping $mapping) { |
|
69 | + function(PolicyMapping $mapping) { |
|
70 | 70 | return $mapping->toASN1(); |
71 | 71 | }, $this->_mappings); |
72 | 72 | return new Sequence(...$elements); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | public function issuerDomainPolicies(): array |
132 | 132 | { |
133 | 133 | $idps = array_map( |
134 | - function (PolicyMapping $mapping) { |
|
134 | + function(PolicyMapping $mapping) { |
|
135 | 135 | return $mapping->issuerDomainPolicy(); |
136 | 136 | }, $this->_mappings); |
137 | 137 | return array_values(array_unique($idps)); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace X509\Certificate\Extension; |
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 X509\Certificate\Extension; |
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 X509\Certificate\Extension; |
6 | 6 |