@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace ASN1\Type\Primitive; |
| 6 | 6 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace ASN1; |
| 5 | 5 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @var array |
| 61 | 61 | */ |
| 62 | - const MAP_TAG_TO_CLASS = [ /* @formatter:off */ |
|
| 62 | + const MAP_TAG_TO_CLASS = [/* @formatter:off */ |
|
| 63 | 63 | self::TYPE_EOC => Primitive\EOC::class, |
| 64 | 64 | self::TYPE_BOOLEAN => Primitive\Boolean::class, |
| 65 | 65 | self::TYPE_INTEGER => Primitive\Integer::class, |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * |
| 116 | 116 | * @var array |
| 117 | 117 | */ |
| 118 | - const MAP_TYPE_TO_NAME = [ /* @formatter:off */ |
|
| 118 | + const MAP_TYPE_TO_NAME = [/* @formatter:off */ |
|
| 119 | 119 | self::TYPE_EOC => "EOC", |
| 120 | 120 | self::TYPE_BOOLEAN => "BOOLEAN", |
| 121 | 121 | self::TYPE_INTEGER => "INTEGER", |
@@ -347,10 +347,10 @@ discard block |
||
| 347 | 347 | private function _isPseudoType(int $tag): bool |
| 348 | 348 | { |
| 349 | 349 | switch ($tag) { |
| 350 | - case self::TYPE_STRING: |
|
| 351 | - return $this instanceof StringType; |
|
| 352 | - case self::TYPE_TIME: |
|
| 353 | - return $this instanceof TimeType; |
|
| 350 | + case self::TYPE_STRING: |
|
| 351 | + return $this instanceof StringType; |
|
| 352 | + case self::TYPE_TIME: |
|
| 353 | + return $this instanceof TimeType; |
|
| 354 | 354 | } |
| 355 | 355 | return false; |
| 356 | 356 | } |
@@ -437,14 +437,14 @@ discard block |
||
| 437 | 437 | protected static function _determineImplClass(Identifier $identifier): string |
| 438 | 438 | { |
| 439 | 439 | switch ($identifier->typeClass()) { |
| 440 | - case Identifier::CLASS_UNIVERSAL: |
|
| 441 | - return self::_determineUniversalImplClass($identifier->intTag()); |
|
| 442 | - case Identifier::CLASS_CONTEXT_SPECIFIC: |
|
| 443 | - return ContextSpecificType::class; |
|
| 444 | - case Identifier::CLASS_APPLICATION: |
|
| 445 | - return ApplicationType::class; |
|
| 446 | - case Identifier::CLASS_PRIVATE: |
|
| 447 | - return PrivateType::class; |
|
| 440 | + case Identifier::CLASS_UNIVERSAL: |
|
| 441 | + return self::_determineUniversalImplClass($identifier->intTag()); |
|
| 442 | + case Identifier::CLASS_CONTEXT_SPECIFIC: |
|
| 443 | + return ContextSpecificType::class; |
|
| 444 | + case Identifier::CLASS_APPLICATION: |
|
| 445 | + return ApplicationType::class; |
|
| 446 | + case Identifier::CLASS_PRIVATE: |
|
| 447 | + return PrivateType::class; |
|
| 448 | 448 | } |
| 449 | 449 | throw new \UnexpectedValueException( |
| 450 | 450 | sprintf("%s %d not implemented.", |