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