@@ -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\CertificationPath; |
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\CertificationPath\Exception; |
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\AttributeCertificate\Validation; |
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\AttributeCertificate\Validation\Exception; |
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\AttributeCertificate; |
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\AttributeCertificate\Attribute; |
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\AttributeCertificate\Attribute; |
6 | 6 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | ++$idx; |
64 | 64 | } |
65 | 65 | $values = array_map( |
66 | - function (UnspecifiedType $el) { |
|
66 | + function(UnspecifiedType $el) { |
|
67 | 67 | return IetfAttrValue::fromASN1($el); |
68 | 68 | }, $seq->at($idx)->asSequence()->elements()); |
69 | 69 | $obj = new static(...$values); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | 0, $this->_policyAuthority->toASN1()); |
147 | 147 | } |
148 | 148 | $values = array_map( |
149 | - function (IetfAttrValue $val) { |
|
149 | + function(IetfAttrValue $val) { |
|
150 | 150 | return $val->toASN1(); |
151 | 151 | }, $this->_values); |
152 | 152 | $elements[] = new Sequence(...$values); |
@@ -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\AttributeCertificate; |
6 | 6 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public static function fromAttributeValues(AttributeValue ...$values): self |
64 | 64 | { |
65 | 65 | $attribs = array_map( |
66 | - function (AttributeValue $value) { |
|
66 | + function(AttributeValue $value) { |
|
67 | 67 | return $value->toAttribute(); |
68 | 68 | }, $values); |
69 | 69 | return new self(...$attribs); |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | public static function fromASN1(Sequence $seq): self |
80 | 80 | { |
81 | 81 | $attribs = array_map( |
82 | - function (UnspecifiedType $el) { |
|
82 | + function(UnspecifiedType $el) { |
|
83 | 83 | return Attribute::fromASN1($el->asSequence()); |
84 | 84 | }, $seq->elements()); |
85 | 85 | // cast attributes |
86 | 86 | $attribs = array_map( |
87 | - function (Attribute $attr) { |
|
87 | + function(Attribute $attr) { |
|
88 | 88 | $oid = $attr->oid(); |
89 | 89 | if (array_key_exists($oid, self::MAP_OID_TO_CLASS)) { |
90 | 90 | $cls = self::MAP_OID_TO_CLASS[$oid]; |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | { |
205 | 205 | return array_merge([], |
206 | 206 | ...array_map( |
207 | - function (Attribute $attr) { |
|
207 | + function(Attribute $attr) { |
|
208 | 208 | return $attr->values(); |
209 | 209 | }, $this->allOf(AttributeType::OID_ROLE))); |
210 | 210 | } |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | public function toASN1(): Sequence |
218 | 218 | { |
219 | 219 | $elements = array_map( |
220 | - function (Attribute $attr) { |
|
220 | + function(Attribute $attr) { |
|
221 | 221 | return $attr->toASN1(); |
222 | 222 | }, array_values($this->_attributes)); |
223 | 223 | 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\CertificationRequest; |
6 | 6 |