@@ -36,11 +36,11 @@ discard block |
||
36 | 36 | public static function dispatchJson(string $event, $payload): array |
37 | 37 | { |
38 | 38 | if (\is_object($payload) && !$payload instanceof \JsonSerializable) { |
39 | - throw new \RuntimeException('Payload object should implement JsonSerializable. Got an instance of '.\get_class($payload)); |
|
39 | + throw new \RuntimeException('Payload object should implement JsonSerializable. Got an instance of ' . \get_class($payload)); |
|
40 | 40 | } |
41 | 41 | $replies = self::dispatch($event, \GuzzleHttp\json_encode($payload)); |
42 | 42 | |
43 | - return \array_map(function (string $reply) { |
|
43 | + return \array_map(function(string $reply) { |
|
44 | 44 | return \GuzzleHttp\json_decode($reply, true); |
45 | 45 | }, $replies); |
46 | 46 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | */ |
92 | 92 | public static function setHandledEvents(array $events): void |
93 | 93 | { |
94 | - if (self::aentExists(getenv(Pheromone::getWhoAmI()))){ |
|
94 | + if (self::aentExists(getenv(Pheromone::getWhoAmI()))) { |
|
95 | 95 | $command = ['hermes', 'set:handled-events']; |
96 | 96 | foreach ($events as $event) { |
97 | 97 | $command[] = $event; |