@@ -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\Certificate\Extension\DistributionPoint; |
| 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\Certificate\Extension\DistributionPoint; |
| 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\Certificate\Extension\DistributionPoint; |
| 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\Certificate\Extension; |
| 6 | 6 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | protected static function _fromDER(string $data, bool $critical): Extension |
| 77 | 77 | { |
| 78 | 78 | $access = array_map( |
| 79 | - function (UnspecifiedType $el) { |
|
| 79 | + function(UnspecifiedType $el) { |
|
| 80 | 80 | return SubjectAccessDescription::fromASN1($el->asSequence()); |
| 81 | 81 | }, UnspecifiedType::fromDER($data)->asSequence()->elements()); |
| 82 | 82 | return new self($critical, ...$access); |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | protected function _valueASN1(): Element |
| 89 | 89 | { |
| 90 | 90 | $elements = array_map( |
| 91 | - function (AccessDescription $access) { |
|
| 91 | + function(AccessDescription $access) { |
|
| 92 | 92 | return $access->toASN1(); |
| 93 | 93 | }, $this->_accessDescriptions); |
| 94 | 94 | 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\Certificate\Extension; |
| 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\Certificate\Extension; |
| 6 | 6 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | protected static function _fromDER(string $data, bool $critical): Extension |
| 77 | 77 | { |
| 78 | 78 | $dps = array_map( |
| 79 | - function (UnspecifiedType $el) { |
|
| 79 | + function(UnspecifiedType $el) { |
|
| 80 | 80 | return DistributionPoint::fromASN1($el->asSequence()); |
| 81 | 81 | }, UnspecifiedType::fromDER($data)->asSequence()->elements()); |
| 82 | 82 | if (!count($dps)) { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | throw new \LogicException('No distribution points.'); |
| 97 | 97 | } |
| 98 | 98 | $elements = array_map( |
| 99 | - function (DistributionPoint $dp) { |
|
| 99 | + function(DistributionPoint $dp) { |
|
| 100 | 100 | return $dp->toASN1(); |
| 101 | 101 | }, $this->_distributionPoints); |
| 102 | 102 | return new Sequence(...$elements); |
@@ -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\Certificate\Extension; |
| 6 | 6 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | public function issuerDomainPolicies(): array |
| 97 | 97 | { |
| 98 | 98 | $idps = array_map( |
| 99 | - function (PolicyMapping $mapping) { |
|
| 99 | + function(PolicyMapping $mapping) { |
|
| 100 | 100 | return $mapping->issuerDomainPolicy(); |
| 101 | 101 | }, $this->_mappings); |
| 102 | 102 | return array_values(array_unique($idps)); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | protected static function _fromDER(string $data, bool $critical): Extension |
| 154 | 154 | { |
| 155 | 155 | $mappings = array_map( |
| 156 | - function (UnspecifiedType $el) { |
|
| 156 | + function(UnspecifiedType $el) { |
|
| 157 | 157 | return PolicyMapping::fromASN1($el->asSequence()); |
| 158 | 158 | }, UnspecifiedType::fromDER($data)->asSequence()->elements()); |
| 159 | 159 | if (!count($mappings)) { |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | throw new \LogicException('No mappings.'); |
| 173 | 173 | } |
| 174 | 174 | $elements = array_map( |
| 175 | - function (PolicyMapping $mapping) { |
|
| 175 | + function(PolicyMapping $mapping) { |
|
| 176 | 176 | return $mapping->toASN1(); |
| 177 | 177 | }, $this->_mappings); |
| 178 | 178 | 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\Certificate\Extension; |
| 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\Certificate\Extension\PolicyMappings; |
| 6 | 6 | |