@@ -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 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\ASN1; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\ASN1\Type\Constructed; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\ASN1\Type\Constructed; |
| 6 | 6 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | $obj = clone $this; |
| 36 | 36 | usort($obj->_elements, |
| 37 | - function (Element $a, Element $b) { |
|
| 37 | + function(Element $a, Element $b) { |
|
| 38 | 38 | if ($a->typeClass() != $b->typeClass()) { |
| 39 | 39 | return $a->typeClass() < $b->typeClass() ? -1 : 1; |
| 40 | 40 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | { |
| 58 | 58 | $obj = clone $this; |
| 59 | 59 | usort($obj->_elements, |
| 60 | - function (Element $a, Element $b) { |
|
| 60 | + function(Element $a, Element $b) { |
|
| 61 | 61 | $a_der = $a->toDER(); |
| 62 | 62 | $b_der = $b->toDER(); |
| 63 | 63 | return strcmp($a_der, $b_der); |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\ASN1\Type; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\ASN1\Type; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\ASN1\Type; |
| 6 | 6 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | public function __construct(ElementBase ...$elements) |
| 47 | 47 | { |
| 48 | 48 | $this->_elements = array_map( |
| 49 | - function (ElementBase $el) { |
|
| 49 | + function(ElementBase $el) { |
|
| 50 | 50 | return $el->asElement(); |
| 51 | 51 | }, $elements); |
| 52 | 52 | } |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | { |
| 206 | 206 | if (!isset($this->_unspecifiedTypes)) { |
| 207 | 207 | $this->_unspecifiedTypes = array_map( |
| 208 | - function (Element $el) { |
|
| 208 | + function(Element $el) { |
|
| 209 | 209 | return new UnspecifiedType($el); |
| 210 | 210 | }, $this->_elements); |
| 211 | 211 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\ASN1\Type; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\ASN1\Type\Tagged; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\ASN1\Type\Tagged; |
| 6 | 6 | |