@@ -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]; |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | public function roles() { |
190 | 190 | return array_merge(array(), |
191 | 191 | ...array_map( |
192 | - function (Attribute $attr) { |
|
192 | + function(Attribute $attr) { |
|
193 | 193 | return $attr->values(); |
194 | 194 | }, $this->allOf(AttributeType::OID_ROLE))); |
195 | 195 | } |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | */ |
202 | 202 | public function toASN1() { |
203 | 203 | $elements = array_map( |
204 | - function (Attribute $attr) { |
|
204 | + function(Attribute $attr) { |
|
205 | 205 | return $attr->toASN1(); |
206 | 206 | }, array_values($this->_attributes)); |
207 | 207 | return new Sequence(...$elements); |