@@ -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); |