@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public static function fromASN1(Sequence $seq) { |
| 58 | 58 | $extensions = array_map( |
| 59 | - function (UnspecifiedType $el) { |
|
| 59 | + function(UnspecifiedType $el) { |
|
| 60 | 60 | return Extension::fromASN1($el->asSequence()); |
| 61 | 61 | }, $seq->elements()); |
| 62 | 62 | return new self(...$extensions); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function toASN1() { |
| 71 | 71 | $elements = array_values( |
| 72 | - array_map(function ($ext) { |
|
| 72 | + array_map(function($ext) { |
|
| 73 | 73 | return $ext->toASN1(); |
| 74 | 74 | }, $this->_extensions)); |
| 75 | 75 | return new Sequence(...$elements); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public static function fromAttributeValues(AttributeValue ...$values) { |
| 63 | 63 | $attribs = array_map( |
| 64 | - function (AttributeValue $value) { |
|
| 64 | + function(AttributeValue $value) { |
|
| 65 | 65 | return $value->toAttribute(); |
| 66 | 66 | }, $values); |
| 67 | 67 | return new self(...$attribs); |
@@ -75,12 +75,12 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public static function fromASN1(Sequence $seq) { |
| 77 | 77 | $attribs = array_map( |
| 78 | - function (UnspecifiedType $el) { |
|
| 78 | + function(UnspecifiedType $el) { |
|
| 79 | 79 | return Attribute::fromASN1($el->asSequence()); |
| 80 | 80 | }, $seq->elements()); |
| 81 | 81 | // cast attributes |
| 82 | 82 | $attribs = array_map( |
| 83 | - function (Attribute $attr) { |
|
| 83 | + function(Attribute $attr) { |
|
| 84 | 84 | $oid = $attr->oid(); |
| 85 | 85 | if (array_key_exists($oid, self::MAP_OID_TO_CLASS)) { |
| 86 | 86 | $cls = self::MAP_OID_TO_CLASS[$oid]; |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | */ |
| 189 | 189 | public function toASN1() { |
| 190 | 190 | $elements = array_map( |
| 191 | - function (Attribute $attr) { |
|
| 191 | + function(Attribute $attr) { |
|
| 192 | 192 | return $attr->toASN1(); |
| 193 | 193 | }, array_values($this->_attributes)); |
| 194 | 194 | return new Sequence(...$elements); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public static function fromAttributeValues(AttributeValue ...$values) { |
| 63 | 63 | $attribs = array_map( |
| 64 | - function (AttributeValue $value) { |
|
| 64 | + function(AttributeValue $value) { |
|
| 65 | 65 | return $value->toAttribute(); |
| 66 | 66 | }, $values); |
| 67 | 67 | return new self(...$attribs); |
@@ -75,12 +75,12 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public static function fromASN1(Sequence $seq) { |
| 77 | 77 | $attribs = array_map( |
| 78 | - function (UnspecifiedType $el) { |
|
| 78 | + function(UnspecifiedType $el) { |
|
| 79 | 79 | return Attribute::fromASN1($el->asSequence()); |
| 80 | 80 | }, $seq->elements()); |
| 81 | 81 | // cast attributes |
| 82 | 82 | $attribs = array_map( |
| 83 | - function (Attribute $attr) { |
|
| 83 | + function(Attribute $attr) { |
|
| 84 | 84 | $oid = $attr->oid(); |
| 85 | 85 | if (array_key_exists($oid, self::MAP_OID_TO_CLASS)) { |
| 86 | 86 | $cls = self::MAP_OID_TO_CLASS[$oid]; |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | */ |
| 189 | 189 | public function toASN1() { |
| 190 | 190 | $elements = array_map( |
| 191 | - function (Attribute $attr) { |
|
| 191 | + function(Attribute $attr) { |
|
| 192 | 192 | return $attr->toASN1(); |
| 193 | 193 | }, array_values($this->_attributes)); |
| 194 | 194 | return new Sequence(...$elements); |