@@ -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\Exception; |
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\AttributeCertificate; |
6 | 6 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | public static function fromAttributeValues(AttributeValue ...$values) |
65 | 65 | { |
66 | 66 | $attribs = array_map( |
67 | - function (AttributeValue $value) { |
|
67 | + function(AttributeValue $value) { |
|
68 | 68 | return $value->toAttribute(); |
69 | 69 | }, $values); |
70 | 70 | return new self(...$attribs); |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | public static function fromASN1(Sequence $seq) |
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(array(), |
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 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 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 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 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 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\AttributeCertificate\Attribute; |
6 | 6 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | ++$idx; |
66 | 66 | } |
67 | 67 | $values = array_map( |
68 | - function (UnspecifiedType $el) { |
|
68 | + function(UnspecifiedType $el) { |
|
69 | 69 | return IetfAttrValue::fromASN1($el); |
70 | 70 | }, |
71 | 71 | $seq->at($idx) |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $this->_policyAuthority->toASN1()); |
151 | 151 | } |
152 | 152 | $values = array_map( |
153 | - function (IetfAttrValue $val) { |
|
153 | + function(IetfAttrValue $val) { |
|
154 | 154 | return $val->toASN1(); |
155 | 155 | }, $this->_values); |
156 | 156 | $elements[] = new Sequence(...$values); |
@@ -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\Attribute; |
6 | 6 |