@@ -69,6 +69,6 @@ |
||
69 | 69 | return; |
70 | 70 | } |
71 | 71 | |
72 | - return (int) $this->headers['http_code']; |
|
72 | + return (int)$this->headers['http_code']; |
|
73 | 73 | } |
74 | 74 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $dn = ['commonName' => $domains[0]]; |
26 | 26 | |
27 | - $san = implode(',', array_map(function ($dns) { |
|
27 | + $san = implode(',', array_map(function($dns) { |
|
28 | 28 | return 'DNS:' . $dns; |
29 | 29 | }, $domains)); |
30 | 30 |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | { |
7 | 7 | public static function contains($haystack, $needles): bool |
8 | 8 | { |
9 | - foreach ((array) $needles as $needle) { |
|
9 | + foreach ((array)$needles as $needle) { |
|
10 | 10 | if ($needle !== '' && mb_strpos($haystack, $needle) !== false) { |
11 | 11 | return true; |
12 | 12 | } |
@@ -17,8 +17,8 @@ discard block |
||
17 | 17 | |
18 | 18 | public static function endsWith($haystack, $needles) |
19 | 19 | { |
20 | - foreach ((array) $needles as $needle) { |
|
21 | - if (substr($haystack, -strlen($needle)) === (string) $needle) { |
|
20 | + foreach ((array)$needles as $needle) { |
|
21 | + if (substr($haystack, -strlen($needle)) === (string)$needle) { |
|
22 | 22 | return true; |
23 | 23 | } |
24 | 24 | } |