@@ -407,20 +407,20 @@ discard block |
||
| 407 | 407 | protected static function _determineImplClass(Identifier $identifier): string |
| 408 | 408 | { |
| 409 | 409 | switch ($identifier->typeClass()) { |
| 410 | - case Identifier::CLASS_UNIVERSAL: |
|
| 411 | - $cls = self::_determineUniversalImplClass($identifier->intTag()); |
|
| 412 | - // constructed strings may be present in BER |
|
| 413 | - if ($identifier->isConstructed() && |
|
| 414 | - is_subclass_of($cls, StringType::class)) { |
|
| 415 | - $cls = ConstructedString::class; |
|
| 416 | - } |
|
| 417 | - return $cls; |
|
| 418 | - case Identifier::CLASS_CONTEXT_SPECIFIC: |
|
| 419 | - return ContextSpecificType::class; |
|
| 420 | - case Identifier::CLASS_APPLICATION: |
|
| 421 | - return ApplicationType::class; |
|
| 422 | - case Identifier::CLASS_PRIVATE: |
|
| 423 | - return PrivateType::class; |
|
| 410 | + case Identifier::CLASS_UNIVERSAL: |
|
| 411 | + $cls = self::_determineUniversalImplClass($identifier->intTag()); |
|
| 412 | + // constructed strings may be present in BER |
|
| 413 | + if ($identifier->isConstructed() && |
|
| 414 | + is_subclass_of($cls, StringType::class)) { |
|
| 415 | + $cls = ConstructedString::class; |
|
| 416 | + } |
|
| 417 | + return $cls; |
|
| 418 | + case Identifier::CLASS_CONTEXT_SPECIFIC: |
|
| 419 | + return ContextSpecificType::class; |
|
| 420 | + case Identifier::CLASS_APPLICATION: |
|
| 421 | + return ApplicationType::class; |
|
| 422 | + case Identifier::CLASS_PRIVATE: |
|
| 423 | + return PrivateType::class; |
|
| 424 | 424 | } |
| 425 | 425 | throw new \UnexpectedValueException( |
| 426 | 426 | sprintf('%s %d not implemented.', |
@@ -493,12 +493,12 @@ discard block |
||
| 493 | 493 | private function _isPseudoType(int $tag): bool |
| 494 | 494 | { |
| 495 | 495 | switch ($tag) { |
| 496 | - case self::TYPE_STRING: |
|
| 497 | - return $this instanceof StringType; |
|
| 498 | - case self::TYPE_TIME: |
|
| 499 | - return $this instanceof TimeType; |
|
| 500 | - case self::TYPE_CONSTRUCTED_STRING: |
|
| 501 | - return $this instanceof ConstructedString; |
|
| 496 | + case self::TYPE_STRING: |
|
| 497 | + return $this instanceof StringType; |
|
| 498 | + case self::TYPE_TIME: |
|
| 499 | + return $this instanceof TimeType; |
|
| 500 | + case self::TYPE_CONSTRUCTED_STRING: |
|
| 501 | + return $this instanceof ConstructedString; |
|
| 502 | 502 | } |
| 503 | 503 | return false; |
| 504 | 504 | } |