@@ -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\CertificationPath\Policy; |
| 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\CertificationPath\Policy; |
| 6 | 6 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | // is not in the user-initial-policy-set and is not anyPolicy, |
| 95 | 95 | // delete this node and all its children. |
| 96 | 96 | $valid_policy_node_set = array_filter($valid_policy_node_set, |
| 97 | - function (PolicyNode $node) use ($policies) { |
|
| 97 | + function(PolicyNode $node) use ($policies) { |
|
| 98 | 98 | if ($node->isAnyPolicy()) { |
| 99 | 99 | return true; |
| 100 | 100 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | }); |
| 107 | 107 | // array of valid policy OIDs |
| 108 | 108 | $valid_policy_set = array_map( |
| 109 | - function (PolicyNode $node) { |
|
| 109 | + function(PolicyNode $node) { |
|
| 110 | 110 | return $node->validPolicy(); |
| 111 | 111 | }, $valid_policy_node_set); |
| 112 | 112 | // 3. If the valid_policy_tree includes a node of depth n with |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | } |
| 388 | 388 | // for each node in a tree |
| 389 | 389 | $this->_root->walkNodes( |
| 390 | - function (PolicyNode $node) use (&$set) { |
|
| 390 | + function(PolicyNode $node) use (&$set) { |
|
| 391 | 391 | $parents = $node->parents(); |
| 392 | 392 | // node has parents |
| 393 | 393 | if (count($parents)) { |
@@ -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\CertificationPath\PathBuilding; |
| 6 | 6 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $paths = $this->_resolvePathsToTarget($target, $intermediate); |
| 49 | 49 | // map paths to CertificationPath objects |
| 50 | 50 | return array_map( |
| 51 | - function ($certs) { |
|
| 51 | + function($certs) { |
|
| 52 | 52 | return new CertificationPath(...$certs); |
| 53 | 53 | }, $paths); |
| 54 | 54 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | throw new PathBuildingException("No certification paths."); |
| 114 | 114 | } |
| 115 | 115 | usort($paths, |
| 116 | - function ($a, $b) { |
|
| 116 | + function($a, $b) { |
|
| 117 | 117 | return count($a) < count($b) ? -1 : 1; |
| 118 | 118 | }); |
| 119 | 119 | return reset($paths); |
@@ -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\CertificationPath; |
| 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\CertificationPath\PathValidation; |
| 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\CertificationPath\PathValidation; |
| 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\CertificationPath\PathValidation; |
| 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\CertificationPath\PathValidation; |
| 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\CertificationPath\Exception; |
| 6 | 6 | |