@@ -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\CertificatePolicy; |
6 | 6 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | { |
53 | 53 | $org = DisplayText::fromASN1($seq->at(0)->asString()); |
54 | 54 | $numbers = array_map( |
55 | - function (UnspecifiedType $el) { |
|
55 | + function(UnspecifiedType $el) { |
|
56 | 56 | return $el->asInteger()->number(); |
57 | 57 | }, |
58 | 58 | $seq->at(1) |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | { |
91 | 91 | $org = $this->_organization->toASN1(); |
92 | 92 | $nums = array_map( |
93 | - function ($number) { |
|
93 | + function($number) { |
|
94 | 94 | return new Integer($number); |
95 | 95 | }, $this->_numbers); |
96 | 96 | 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 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 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 X509\Certificate\Extension\CertificatePolicy; |
6 | 6 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $qualifiers = array(); |
67 | 67 | if (count($seq) > 1) { |
68 | 68 | $qualifiers = array_map( |
69 | - function (UnspecifiedType $el) { |
|
69 | + function(UnspecifiedType $el) { |
|
70 | 70 | return PolicyQualifierInfo::fromASN1($el->asSequence()); |
71 | 71 | }, |
72 | 72 | $seq->at(1) |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | $elements = array(new ObjectIdentifier($this->_oid)); |
191 | 191 | if (count($this->_qualifiers)) { |
192 | 192 | $qualifiers = array_map( |
193 | - function (PolicyQualifierInfo $pqi) { |
|
193 | + function(PolicyQualifierInfo $pqi) { |
|
194 | 194 | return $pqi->toASN1(); |
195 | 195 | }, array_values($this->_qualifiers)); |
196 | 196 | $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 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 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 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | protected static function _fromDER($data, $critical) |
46 | 46 | { |
47 | 47 | $dps = array_map( |
48 | - function (UnspecifiedType $el) { |
|
48 | + function(UnspecifiedType $el) { |
|
49 | 49 | return DistributionPoint::fromASN1($el->asSequence()); |
50 | 50 | }, Sequence::fromDER($data)->elements()); |
51 | 51 | if (!count($dps)) { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | throw new \LogicException("No distribution points."); |
69 | 69 | } |
70 | 70 | $elements = array_map( |
71 | - function (DistributionPoint $dp) { |
|
71 | + function(DistributionPoint $dp) { |
|
72 | 72 | return $dp->toASN1(); |
73 | 73 | }, $this->_distributionPoints); |
74 | 74 | 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 X509\Certificate\Extension; |
6 | 6 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | protected static function _fromDER($data, $critical) |
78 | 78 | { |
79 | 79 | $targets = array_map( |
80 | - function (UnspecifiedType $el) { |
|
80 | + function(UnspecifiedType $el) { |
|
81 | 81 | return Targets::fromASN1($el->asSequence()); |
82 | 82 | }, Sequence::fromDER($data)->elements()); |
83 | 83 | return new self($critical, ...$targets); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | protected function _valueASN1(): Sequence |
129 | 129 | { |
130 | 130 | $elements = array_map( |
131 | - function (Targets $targets) { |
|
131 | + function(Targets $targets) { |
|
132 | 132 | return $targets->toASN1(); |
133 | 133 | }, $this->_targets); |
134 | 134 | 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 X509\Certificate\Extension; |
6 | 6 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | protected static function _fromDER($data, $critical) |
75 | 75 | { |
76 | 76 | $purposes = array_map( |
77 | - function (UnspecifiedType $el) { |
|
77 | + function(UnspecifiedType $el) { |
|
78 | 78 | return $el->asObjectIdentifier()->oid(); |
79 | 79 | }, Sequence::fromDER($data)->elements()); |
80 | 80 | return new self($critical, ...$purposes); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | protected function _valueASN1(): Sequence |
117 | 117 | { |
118 | 118 | $elements = array_map( |
119 | - function ($oid) { |
|
119 | + function($oid) { |
|
120 | 120 | return new ObjectIdentifier($oid); |
121 | 121 | }, $this->_purposes); |
122 | 122 | return new Sequence(...$elements); |