@@ -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"; |
@@ -332,10 +332,10 @@ discard block |
||
332 | 332 | private function _isPseudoType(int $tag): bool |
333 | 333 | { |
334 | 334 | switch ($tag) { |
335 | - case self::TYPE_STRING: |
|
336 | - return $this instanceof StringType; |
|
337 | - case self::TYPE_TIME: |
|
338 | - return $this instanceof TimeType; |
|
335 | + case self::TYPE_STRING: |
|
336 | + return $this instanceof StringType; |
|
337 | + case self::TYPE_TIME: |
|
338 | + return $this instanceof TimeType; |
|
339 | 339 | } |
340 | 340 | return false; |
341 | 341 | } |
@@ -398,14 +398,14 @@ discard block |
||
398 | 398 | protected static function _determineImplClass(Identifier $identifier): string |
399 | 399 | { |
400 | 400 | switch ($identifier->typeClass()) { |
401 | - case Identifier::CLASS_UNIVERSAL: |
|
402 | - return self::_determineUniversalImplClass($identifier->intTag()); |
|
403 | - case Identifier::CLASS_CONTEXT_SPECIFIC: |
|
404 | - return TaggedType::class; |
|
405 | - case Identifier::CLASS_APPLICATION: |
|
406 | - return ApplicationType::class; |
|
407 | - case Identifier::CLASS_PRIVATE: |
|
408 | - return PrivateType::class; |
|
401 | + case Identifier::CLASS_UNIVERSAL: |
|
402 | + return self::_determineUniversalImplClass($identifier->intTag()); |
|
403 | + case Identifier::CLASS_CONTEXT_SPECIFIC: |
|
404 | + return TaggedType::class; |
|
405 | + case Identifier::CLASS_APPLICATION: |
|
406 | + return ApplicationType::class; |
|
407 | + case Identifier::CLASS_PRIVATE: |
|
408 | + return PrivateType::class; |
|
409 | 409 | } |
410 | 410 | throw new \UnexpectedValueException( |
411 | 411 | sprintf("%s %d not implemented.", |