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