| @@ -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\Type\Constructed; | 
| 5 | 5 | |
| @@ -73,7 +73,7 @@ discard block | ||
| 73 | 73 | */ | 
| 74 | 74 | public function strings(): array | 
| 75 | 75 |      { | 
| 76 | -        return array_map(function (StringType $el) { | |
| 76 | +        return array_map(function(StringType $el) { | |
| 77 | 77 | return $el->string(); | 
| 78 | 78 | }, $this->_elements); | 
| 79 | 79 | } | 
| @@ -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.", | 
| @@ -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\Feature; | 
| 6 | 6 | |