@@ -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\X509\GeneralName; |
| 6 | 6 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | protected static function _wordsToIPv6String(array $words): string |
| 44 | 44 | { |
| 45 | 45 | $groups = array_map( |
| 46 | - function ($word) { |
|
| 46 | + function($word) { |
|
| 47 | 47 | return sprintf('%04x', $word); |
| 48 | 48 | }, $words); |
| 49 | 49 | return implode(':', $groups); |
@@ -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\X509\GeneralName; |
| 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\X509\GeneralName; |
| 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\X509\GeneralName; |
| 6 | 6 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | 'GeneralNames must have at least one GeneralName.'); |
| 52 | 52 | } |
| 53 | 53 | $names = array_map( |
| 54 | - function (UnspecifiedType $el) { |
|
| 54 | + function(UnspecifiedType $el) { |
|
| 55 | 55 | return GeneralName::fromASN1($el->asTagged()); |
| 56 | 56 | }, $seq->elements()); |
| 57 | 57 | return new self(...$names); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | public function allOf(int $tag): array |
| 98 | 98 | { |
| 99 | 99 | $names = array_filter($this->_names, |
| 100 | - function (GeneralName $name) use ($tag) { |
|
| 100 | + function(GeneralName $name) use ($tag) { |
|
| 101 | 101 | return $name->tag() === $tag; |
| 102 | 102 | }); |
| 103 | 103 | return array_values($names); |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | 'GeneralNames must have at least one GeneralName.'); |
| 161 | 161 | } |
| 162 | 162 | $elements = array_map( |
| 163 | - function (GeneralName $name) { |
|
| 163 | + function(GeneralName $name) { |
|
| 164 | 164 | return $name->toASN1(); |
| 165 | 165 | }, $this->_names); |
| 166 | 166 | return new Sequence(...$elements); |
@@ -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\X509\GeneralName; |
| 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\X509\GeneralName; |
| 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\X509\GeneralName; |
| 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\X509\GeneralName; |
| 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\X509\GeneralName; |
| 6 | 6 | |