@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | protected static function _fromDER(string $data, bool $critical): self |
78 | 78 | { |
79 | 79 | $targets = array_map( |
80 | - function (UnspecifiedType $el) { |
|
80 | + function(UnspecifiedType $el) { |
|
81 | 81 | return Targets::fromASN1($el->asSequence()); |
82 | 82 | }, UnspecifiedType::fromDER($data)->asSequence()->elements()); |
83 | 83 | return new self($critical, ...$targets); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | protected function _valueASN1(): Sequence |
129 | 129 | { |
130 | 130 | $elements = array_map( |
131 | - function (Targets $targets) { |
|
131 | + function(Targets $targets) { |
|
132 | 132 | return $targets->toASN1(); |
133 | 133 | }, $this->_targets); |
134 | 134 | return new Sequence(...$elements); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | protected static function _fromDER(string $data, bool $critical): self |
75 | 75 | { |
76 | 76 | $purposes = array_map( |
77 | - function (UnspecifiedType $el) { |
|
77 | + function(UnspecifiedType $el) { |
|
78 | 78 | return $el->asObjectIdentifier()->oid(); |
79 | 79 | }, UnspecifiedType::fromDER($data)->asSequence()->elements()); |
80 | 80 | return new self($critical, ...$purposes); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | protected function _valueASN1(): Sequence |
117 | 117 | { |
118 | 118 | $elements = array_map( |
119 | - function ($oid) { |
|
119 | + function($oid) { |
|
120 | 120 | return new ObjectIdentifier($oid); |
121 | 121 | }, $this->_purposes); |
122 | 122 | return new Sequence(...$elements); |