@@ -71,11 +71,11 @@ |
||
71 | 71 | $num = $this->_number->gmpObj(); |
72 | 72 | switch (gmp_sign($num)) { |
73 | 73 | // positive |
74 | - case 1: |
|
75 | - return self::_encodePositiveInteger($num); |
|
76 | - // negative |
|
77 | - case -1: |
|
78 | - return self::_encodeNegativeInteger($num); |
|
74 | + case 1: |
|
75 | + return self::_encodePositiveInteger($num); |
|
76 | + // negative |
|
77 | + case -1: |
|
78 | + return self::_encodeNegativeInteger($num); |
|
79 | 79 | } |
80 | 80 | // zero |
81 | 81 | return "\0"; |
@@ -399,14 +399,14 @@ discard block |
||
399 | 399 | protected static function _determineImplClass(Identifier $identifier): string |
400 | 400 | { |
401 | 401 | switch ($identifier->typeClass()) { |
402 | - case Identifier::CLASS_UNIVERSAL: |
|
403 | - return self::_determineUniversalImplClass($identifier->intTag()); |
|
404 | - case Identifier::CLASS_CONTEXT_SPECIFIC: |
|
405 | - return ContextSpecificType::class; |
|
406 | - case Identifier::CLASS_APPLICATION: |
|
407 | - return ApplicationType::class; |
|
408 | - case Identifier::CLASS_PRIVATE: |
|
409 | - return PrivateType::class; |
|
402 | + case Identifier::CLASS_UNIVERSAL: |
|
403 | + return self::_determineUniversalImplClass($identifier->intTag()); |
|
404 | + case Identifier::CLASS_CONTEXT_SPECIFIC: |
|
405 | + return ContextSpecificType::class; |
|
406 | + case Identifier::CLASS_APPLICATION: |
|
407 | + return ApplicationType::class; |
|
408 | + case Identifier::CLASS_PRIVATE: |
|
409 | + return PrivateType::class; |
|
410 | 410 | } |
411 | 411 | throw new \UnexpectedValueException( |
412 | 412 | sprintf('%s %d not implemented.', |
@@ -479,10 +479,10 @@ discard block |
||
479 | 479 | private function _isPseudoType(int $tag): bool |
480 | 480 | { |
481 | 481 | switch ($tag) { |
482 | - case self::TYPE_STRING: |
|
483 | - return $this instanceof StringType; |
|
484 | - case self::TYPE_TIME: |
|
485 | - return $this instanceof TimeType; |
|
482 | + case self::TYPE_STRING: |
|
483 | + return $this instanceof StringType; |
|
484 | + case self::TYPE_TIME: |
|
485 | + return $this instanceof TimeType; |
|
486 | 486 | } |
487 | 487 | return false; |
488 | 488 | } |