@@ -358,12 +358,12 @@ discard block |
||
358 | 358 | private function _isPseudoType(int $tag): bool |
359 | 359 | { |
360 | 360 | switch ($tag) { |
361 | - case self::TYPE_STRING: |
|
362 | - return $this instanceof StringType; |
|
363 | - case self::TYPE_TIME: |
|
364 | - return $this instanceof TimeType; |
|
365 | - case self::TYPE_CONSTRUCTED_STRING: |
|
366 | - return $this instanceof ConstructedString; |
|
361 | + case self::TYPE_STRING: |
|
362 | + return $this instanceof StringType; |
|
363 | + case self::TYPE_TIME: |
|
364 | + return $this instanceof TimeType; |
|
365 | + case self::TYPE_CONSTRUCTED_STRING: |
|
366 | + return $this instanceof ConstructedString; |
|
367 | 367 | } |
368 | 368 | return false; |
369 | 369 | } |
@@ -450,20 +450,20 @@ discard block |
||
450 | 450 | protected static function _determineImplClass(Identifier $identifier): string |
451 | 451 | { |
452 | 452 | switch ($identifier->typeClass()) { |
453 | - case Identifier::CLASS_UNIVERSAL: |
|
454 | - $cls = self::_determineUniversalImplClass($identifier->intTag()); |
|
455 | - // constructed strings may be present in BER |
|
456 | - if ($identifier->isConstructed() && |
|
457 | - is_subclass_of($cls, StringType::class)) { |
|
458 | - $cls = ConstructedString::class; |
|
459 | - } |
|
460 | - return $cls; |
|
461 | - case Identifier::CLASS_CONTEXT_SPECIFIC: |
|
462 | - return ContextSpecificType::class; |
|
463 | - case Identifier::CLASS_APPLICATION: |
|
464 | - return ApplicationType::class; |
|
465 | - case Identifier::CLASS_PRIVATE: |
|
466 | - return PrivateType::class; |
|
453 | + case Identifier::CLASS_UNIVERSAL: |
|
454 | + $cls = self::_determineUniversalImplClass($identifier->intTag()); |
|
455 | + // constructed strings may be present in BER |
|
456 | + if ($identifier->isConstructed() && |
|
457 | + is_subclass_of($cls, StringType::class)) { |
|
458 | + $cls = ConstructedString::class; |
|
459 | + } |
|
460 | + return $cls; |
|
461 | + case Identifier::CLASS_CONTEXT_SPECIFIC: |
|
462 | + return ContextSpecificType::class; |
|
463 | + case Identifier::CLASS_APPLICATION: |
|
464 | + return ApplicationType::class; |
|
465 | + case Identifier::CLASS_PRIVATE: |
|
466 | + return PrivateType::class; |
|
467 | 467 | } |
468 | 468 | throw new \UnexpectedValueException( |
469 | 469 | sprintf("%s %d not implemented.", |