@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace 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 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 X509\GeneralName; |
| 6 | 6 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | "GeneralNames must have at least one GeneralName."); |
| 49 | 49 | } |
| 50 | 50 | $names = array_map( |
| 51 | - function (UnspecifiedType $el) { |
|
| 51 | + function(UnspecifiedType $el) { |
|
| 52 | 52 | return GeneralName::fromASN1($el->asTagged()); |
| 53 | 53 | }, $seq->elements()); |
| 54 | 54 | return new self(...$names); |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | public function allOf($tag): array |
| 107 | 107 | { |
| 108 | 108 | $names = array_filter($this->_names, |
| 109 | - function (GeneralName $name) use ($tag) { |
|
| 109 | + function(GeneralName $name) use ($tag) { |
|
| 110 | 110 | return $name->tag() == $tag; |
| 111 | 111 | }); |
| 112 | 112 | return array_values($names); |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | "GeneralNames must have at least one GeneralName."); |
| 171 | 171 | } |
| 172 | 172 | $elements = array_map( |
| 173 | - function (GeneralName $name) { |
|
| 173 | + function(GeneralName $name) { |
|
| 174 | 174 | return $name->toASN1(); |
| 175 | 175 | }, $this->_names); |
| 176 | 176 | 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 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 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 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 X509\GeneralName; |
| 6 | 6 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | protected static function _wordsToIPv6String(array $words): string |
| 41 | 41 | { |
| 42 | 42 | $groups = array_map( |
| 43 | - function ($word) { |
|
| 43 | + function($word) { |
|
| 44 | 44 | return sprintf("%04x", $word); |
| 45 | 45 | }, $words); |
| 46 | 46 | 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 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 X509\Feature; |
| 6 | 6 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | { |
| 76 | 76 | $oid = AttributeType::attrNameToOID($name); |
| 77 | 77 | $attrs = array_filter($this->_attributes, |
| 78 | - function (Attribute $attr) use ($oid) { |
|
| 78 | + function(Attribute $attr) use ($oid) { |
|
| 79 | 79 | return $attr->oid() == $oid; |
| 80 | 80 | }); |
| 81 | 81 | return array_values($attrs); |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | { |
| 119 | 119 | $obj = clone $this; |
| 120 | 120 | $obj->_attributes = array_filter($obj->_attributes, |
| 121 | - function (Attribute $a) use ($attr) { |
|
| 121 | + function(Attribute $a) use ($attr) { |
|
| 122 | 122 | return $a->oid() != $attr->oid(); |
| 123 | 123 | }); |
| 124 | 124 | $obj->_attributes[] = $attr; |