@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | public function __construct(array $data, string $url) |
42 | 42 | { |
43 | - $data['challenges'] = array_map(static function (array $entry) { |
|
43 | + $data['challenges'] = array_map(static function(array $entry) { |
|
44 | 44 | return new Challenge($entry); |
45 | 45 | }, $data['challenges']); |
46 | 46 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | public function __construct(array $data, string $url) |
51 | 51 | { |
52 | 52 | // extract only value from identifiers data |
53 | - $data['identifiers'] = array_map(static function (array $entry) { |
|
53 | + $data['identifiers'] = array_map(static function(array $entry) { |
|
54 | 54 | return $entry['value']; |
55 | 55 | }, $data['identifiers']); |
56 | 56 |
@@ -157,7 +157,7 @@ |
||
157 | 157 | |
158 | 158 | private function contactFromEmails(array $emails): array |
159 | 159 | { |
160 | - return array_map(static function (string $email) { |
|
160 | + return array_map(static function(string $email) { |
|
161 | 161 | return strpos($email, 'mailto') === false ? 'mailto:' . $email : $email; |
162 | 162 | }, $emails); |
163 | 163 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | public function __invoke(callable $handler): callable |
34 | 34 | { |
35 | - return function (RequestInterface $request, array $options) use ($handler) { |
|
35 | + return function(RequestInterface $request, array $options) use ($handler) { |
|
36 | 36 | if ($this->logger->logRequestsOnly()) { |
37 | 37 | $this->logRequest($request); |
38 | 38 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | private function handleSuccess(RequestInterface $request): callable |
49 | 49 | { |
50 | - return function (ResponseInterface $response) use ($request) { |
|
50 | + return function(ResponseInterface $response) use ($request) { |
|
51 | 51 | if ($this->logger->debugMode()) { |
52 | 52 | $level = $this->logger->getLogLevel($response); |
53 | 53 | $context = [ |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | private function handleFailure(RequestInterface $request): callable |
68 | 68 | { |
69 | - return function (\Exception $reason) use ($request) { |
|
69 | + return function(\Exception $reason) use ($request) { |
|
70 | 70 | if ($this->logger->logErrorsOnly() || $this->logger->debugMode()) { |
71 | 71 | if ($reason instanceof RequestException && $reason->hasResponse()) { |
72 | 72 | /** @var ResponseInterface $response */ |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | $this->processOrderBasePath($directoryName); |
62 | 62 | |
63 | - $identifiers = array_map(static function (string $subject) { |
|
63 | + $identifiers = array_map(static function(string $subject) { |
|
64 | 64 | return [ |
65 | 65 | 'type' => 'dns', |
66 | 66 | 'value' => $subject, |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | |
345 | 345 | $filesList = scandir($basePath); |
346 | 346 | if ($filesList !== false) { |
347 | - array_walk($filesList, static function (string $file) use ($basePath) { |
|
347 | + array_walk($filesList, static function(string $file) use ($basePath) { |
|
348 | 348 | if (is_file($basePath . $file)) { |
349 | 349 | unlink($basePath . $file); |
350 | 350 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public function getAuthorizations(Account $account, array $urls): array |
39 | 39 | { |
40 | - return array_map(function (string $url) use ($account) { |
|
40 | + return array_map(function(string $url) use ($account) { |
|
41 | 41 | return $this->updateAuthorization($account, $url); |
42 | 42 | }, $urls); |
43 | 43 | } |