@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | public static function fromAttributeValues(AttributeValue ...$values): Attributes |
| 55 | 55 | { |
| 56 | 56 | $attribs = array_map( |
| 57 | - function (AttributeValue $value) { |
|
| 57 | + function(AttributeValue $value) { |
|
| 58 | 58 | return $value->toAttribute(); |
| 59 | 59 | }, $values); |
| 60 | 60 | 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]; |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | public function toASN1(): Set |
| 118 | 118 | { |
| 119 | 119 | $elements = array_map( |
| 120 | - function (Attribute $attr) { |
|
| 120 | + function(Attribute $attr) { |
|
| 121 | 121 | return $attr->toASN1(); |
| 122 | 122 | }, array_values($this->_attributes)); |
| 123 | 123 | $set = new Set(...$elements); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public static function fromASN1(Sequence $seq): Extensions |
| 48 | 48 | { |
| 49 | 49 | $extensions = array_map( |
| 50 | - function (UnspecifiedType $el) { |
|
| 50 | + function(UnspecifiedType $el) { |
|
| 51 | 51 | return Ext\Extension::fromASN1($el->asSequence()); |
| 52 | 52 | }, $seq->elements()); |
| 53 | 53 | return new self(...$extensions); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | { |
| 63 | 63 | $elements = array_values( |
| 64 | 64 | array_map( |
| 65 | - function ($ext) { |
|
| 65 | + function($ext) { |
|
| 66 | 66 | return $ext->toASN1(); |
| 67 | 67 | }, $this->_extensions)); |
| 68 | 68 | return new Sequence(...$elements); |