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