@@ -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; |
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; |
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\CertificationRequest; |
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\CertificationRequest\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\CertificationRequest; |
6 | 6 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | public static function fromAttributeValues(AttributeValue ...$values): Attributes |
54 | 54 | { |
55 | 55 | $attribs = array_map( |
56 | - function (AttributeValue $value) { |
|
56 | + function(AttributeValue $value) { |
|
57 | 57 | return $value->toAttribute(); |
58 | 58 | }, $values); |
59 | 59 | return new self(...$attribs); |
@@ -69,12 +69,12 @@ discard block |
||
69 | 69 | public static function fromASN1(Set $set): Attributes |
70 | 70 | { |
71 | 71 | $attribs = array_map( |
72 | - function (UnspecifiedType $el) { |
|
72 | + function(UnspecifiedType $el) { |
|
73 | 73 | return Attribute::fromASN1($el->asSequence()); |
74 | 74 | }, $set->elements()); |
75 | 75 | // cast attributes |
76 | 76 | $attribs = array_map( |
77 | - function (Attribute $attr) { |
|
77 | + function(Attribute $attr) { |
|
78 | 78 | $oid = $attr->oid(); |
79 | 79 | if (array_key_exists($oid, self::MAP_OID_TO_CLASS)) { |
80 | 80 | $cls = self::MAP_OID_TO_CLASS[$oid]; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | public function toASN1(): Set |
119 | 119 | { |
120 | 120 | $elements = array_map( |
121 | - function (Attribute $attr) { |
|
121 | + function(Attribute $attr) { |
|
122 | 122 | return $attr->toASN1(); |
123 | 123 | }, array_values($this->_attributes)); |
124 | 124 | $set = new Set(...$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 |
@@ -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\Exception; |
6 | 6 |