@@ -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); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | protected static function _fromDER(string $data, bool $critical): self |
| 46 | 46 | { |
| 47 | 47 | $access = array_map( |
| 48 | - function (UnspecifiedType $el) { |
|
| 48 | + function(UnspecifiedType $el) { |
|
| 49 | 49 | return SubjectAccessDescription::fromASN1($el->asSequence()); |
| 50 | 50 | }, UnspecifiedType::fromDER($data)->asSequence()->elements()); |
| 51 | 51 | return new self($critical, ...$access); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | protected function _valueASN1(): Sequence |
| 70 | 70 | { |
| 71 | 71 | $elements = array_map( |
| 72 | - function (AccessDescription $access) { |
|
| 72 | + function(AccessDescription $access) { |
|
| 73 | 73 | return $access->toASN1(); |
| 74 | 74 | }, $this->_accessDescriptions); |
| 75 | 75 | return new Sequence(...$elements); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | protected static function _fromDER(string $data, bool $critical): self |
| 46 | 46 | { |
| 47 | 47 | $access = array_map( |
| 48 | - function (UnspecifiedType $el) { |
|
| 48 | + function(UnspecifiedType $el) { |
|
| 49 | 49 | return AuthorityAccessDescription::fromASN1($el->asSequence()); |
| 50 | 50 | }, UnspecifiedType::fromDER($data)->asSequence()->elements()); |
| 51 | 51 | return new self($critical, ...$access); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | protected function _valueASN1(): Sequence |
| 70 | 70 | { |
| 71 | 71 | $elements = array_map( |
| 72 | - function (AccessDescription $access) { |
|
| 72 | + function(AccessDescription $access) { |
|
| 73 | 73 | return $access->toASN1(); |
| 74 | 74 | }, $this->_accessDescriptions); |
| 75 | 75 | return new Sequence(...$elements); |