@@ -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\AttributeCertificate; |
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; |
6 | 6 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | public static function fromPEMs(PEM ...$pems) |
40 | 40 | { |
41 | 41 | $certs = array_map( |
42 | - function (PEM $pem) { |
|
42 | + function(PEM $pem) { |
|
43 | 43 | return Certificate::fromPEM($pem); |
44 | 44 | }, $pems); |
45 | 45 | return new self(...$certs); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | { |
116 | 116 | return implode("\n", |
117 | 117 | array_map( |
118 | - function (Certificate $cert) { |
|
118 | + function(Certificate $cert) { |
|
119 | 119 | return $cert->toPEM()->string(); |
120 | 120 | }, $this->_certs)); |
121 | 121 | } |
@@ -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\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 X509\Certificate\Extension\NameConstraints; |
6 | 6 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | public static function fromASN1(Sequence $seq) |
42 | 42 | { |
43 | 43 | $subtrees = array_map( |
44 | - function (UnspecifiedType $el) { |
|
44 | + function(UnspecifiedType $el) { |
|
45 | 45 | return GeneralSubtree::fromASN1($el->asSequence()); |
46 | 46 | }, $seq->elements()); |
47 | 47 | if (!count($subtrees)) { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | throw new \LogicException("No subtrees."); |
73 | 73 | } |
74 | 74 | $elements = array_map( |
75 | - function (GeneralSubtree $gs) { |
|
75 | + function(GeneralSubtree $gs) { |
|
76 | 76 | return $gs->toASN1(); |
77 | 77 | }, $this->_subtrees); |
78 | 78 | 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 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 @@ 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 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | protected static function _fromDER($data, $critical) |
48 | 48 | { |
49 | 49 | $policies = array_map( |
50 | - function (UnspecifiedType $el) { |
|
50 | + function(UnspecifiedType $el) { |
|
51 | 51 | return PolicyInformation::fromASN1($el->asSequence()); |
52 | 52 | }, Sequence::fromDER($data)->elements()); |
53 | 53 | if (!count($policies)) { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | throw new \LogicException("No policies."); |
120 | 120 | } |
121 | 121 | $elements = array_map( |
122 | - function (PolicyInformation $pi) { |
|
122 | + function(PolicyInformation $pi) { |
|
123 | 123 | return $pi->toASN1(); |
124 | 124 | }, array_values($this->_policies)); |
125 | 125 | 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 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 |