@@ -15,11 +15,11 @@ |
||
15 | 15 | public function getImageTagsOnDockerHub(string $image): array |
16 | 16 | { |
17 | 17 | $client = new Client(); |
18 | - $res = $client->request('GET', 'https://registry.hub.docker.com/v1/repositories/'.$image.'/tags'); |
|
18 | + $res = $client->request('GET', 'https://registry.hub.docker.com/v1/repositories/' . $image . '/tags'); |
|
19 | 19 | |
20 | 20 | $response = \GuzzleHttp\json_decode($res->getBody(), true); |
21 | 21 | |
22 | - $tags = \array_map(function (array $item) { |
|
22 | + $tags = \array_map(function(array $item) { |
|
23 | 23 | return $item['name']; |
24 | 24 | }, $response); |
25 | 25 |
@@ -58,9 +58,9 @@ |
||
58 | 58 | */ |
59 | 59 | private function getAllEventNames(): array |
60 | 60 | { |
61 | - return array_map(function (EventCommand $event) { |
|
61 | + return array_map(function(EventCommand $event) { |
|
62 | 62 | return $event->getEventName(); |
63 | - }, \array_filter($this->getApplication()->all(), function (Command $command) { |
|
63 | + }, \array_filter($this->getApplication()->all(), function(Command $command) { |
|
64 | 64 | return $command instanceof EventCommand; |
65 | 65 | })); |
66 | 66 | } |