@@ -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; |
6 | 6 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | public static function fromPEMs(PEM ...$pems): self |
41 | 41 | { |
42 | 42 | $certs = array_map( |
43 | - function (PEM $pem) { |
|
43 | + function(PEM $pem) { |
|
44 | 44 | return Certificate::fromPEM($pem); |
45 | 45 | }, $pems); |
46 | 46 | return new self(...$certs); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | { |
120 | 120 | return implode("\n", |
121 | 121 | array_map( |
122 | - function (Certificate $cert) { |
|
122 | + function(Certificate $cert) { |
|
123 | 123 | return $cert->toPEM()->string(); |
124 | 124 | }, $this->_certs)); |
125 | 125 | } |
@@ -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; |
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; |
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; |
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\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 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | throw new PathBuildingException('No certification paths.'); |
72 | 72 | } |
73 | 73 | usort($paths, |
74 | - function ($a, $b) { |
|
74 | + function($a, $b) { |
|
75 | 75 | return count($a) < count($b) ? -1 : 1; |
76 | 76 | }); |
77 | 77 | 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 Sop\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 Sop\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 Sop\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 Sop\X509\CertificationPath\PathValidation; |
6 | 6 |