@@ -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\CertificationRequest; |
| 6 | 6 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | public static function fromAttributeValues(AttributeValue ...$values): Attributes |
| 54 | 54 | { |
| 55 | 55 | $attribs = array_map( |
| 56 | - function (AttributeValue $value) { |
|
| 56 | + function(AttributeValue $value) { |
|
| 57 | 57 | return $value->toAttribute(); |
| 58 | 58 | }, $values); |
| 59 | 59 | return new self(...$attribs); |
@@ -69,12 +69,12 @@ discard block |
||
| 69 | 69 | public static function fromASN1(Set $set): Attributes |
| 70 | 70 | { |
| 71 | 71 | $attribs = array_map( |
| 72 | - function (UnspecifiedType $el) { |
|
| 72 | + function(UnspecifiedType $el) { |
|
| 73 | 73 | return Attribute::fromASN1($el->asSequence()); |
| 74 | 74 | }, $set->elements()); |
| 75 | 75 | // cast attributes |
| 76 | 76 | $attribs = array_map( |
| 77 | - function (Attribute $attr) { |
|
| 77 | + function(Attribute $attr) { |
|
| 78 | 78 | $oid = $attr->oid(); |
| 79 | 79 | if (array_key_exists($oid, self::MAP_OID_TO_CLASS)) { |
| 80 | 80 | $cls = self::MAP_OID_TO_CLASS[$oid]; |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | public function toASN1(): Set |
| 119 | 119 | { |
| 120 | 120 | $elements = array_map( |
| 121 | - function (Attribute $attr) { |
|
| 121 | + function(Attribute $attr) { |
|
| 122 | 122 | return $attr->toASN1(); |
| 123 | 123 | }, array_values($this->_attributes)); |
| 124 | 124 | $set = new Set(...$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\Exception; |
| 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\Feature; |
| 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\Feature; |
| 6 | 6 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | { |
| 63 | 63 | $oid = AttributeType::attrNameToOID($name); |
| 64 | 64 | $attrs = array_filter($this->_attributes, |
| 65 | - function (Attribute $attr) use ($oid) { |
|
| 65 | + function(Attribute $attr) use ($oid) { |
|
| 66 | 66 | return $attr->oid() === $oid; |
| 67 | 67 | }); |
| 68 | 68 | return array_values($attrs); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | { |
| 108 | 108 | $obj = clone $this; |
| 109 | 109 | $obj->_attributes = array_filter($obj->_attributes, |
| 110 | - function (Attribute $a) use ($attr) { |
|
| 110 | + function(Attribute $a) use ($attr) { |
|
| 111 | 111 | return $a->oid() !== $attr->oid(); |
| 112 | 112 | }); |
| 113 | 113 | $obj->_attributes[] = $attr; |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * php create-csr.php |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -declare(strict_types = 1); |
|
| 8 | +declare(strict_types=1); |
|
| 9 | 9 | |
| 10 | 10 | use Sop\CryptoEncoding\PEM; |
| 11 | 11 | use Sop\CryptoTypes\AlgorithmIdentifier\Hash\SHA256AlgorithmIdentifier; |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * php path-validate.php |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -declare(strict_types = 1); |
|
| 8 | +declare(strict_types=1); |
|
| 9 | 9 | |
| 10 | 10 | use Sop\CryptoEncoding\PEM; |
| 11 | 11 | use Sop\X509\Certificate\Certificate; |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * php ac-example.php |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -declare(strict_types = 1); |
|
| 8 | +declare(strict_types=1); |
|
| 9 | 9 | |
| 10 | 10 | use Sop\CryptoEncoding\PEM; |
| 11 | 11 | use Sop\CryptoTypes\AlgorithmIdentifier\Hash\SHA256AlgorithmIdentifier; |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * php issue-cert.php <(php create-ca-cert.php) <(php create-csr.php) |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -declare(strict_types = 1); |
|
| 8 | +declare(strict_types=1); |
|
| 9 | 9 | |
| 10 | 10 | use Sop\CryptoEncoding\PEM; |
| 11 | 11 | use Sop\CryptoTypes\AlgorithmIdentifier\Hash\SHA512AlgorithmIdentifier; |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * php create-ca-cert.php |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -declare(strict_types = 1); |
|
| 8 | +declare(strict_types=1); |
|
| 9 | 9 | |
| 10 | 10 | use Sop\CryptoEncoding\PEM; |
| 11 | 11 | use Sop\CryptoTypes\AlgorithmIdentifier\Hash\SHA256AlgorithmIdentifier; |