@@ -7,6 +7,6 @@ |
||
7 | 7 | { |
8 | 8 | public static function cannotHandleEvent(string $eventName): self |
9 | 9 | { |
10 | - throw new self('Could not find an Aent that can handle events of type "'.$eventName.'"'); |
|
10 | + throw new self('Could not find an Aent that can handle events of type "' . $eventName . '"'); |
|
11 | 11 | } |
12 | 12 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $output->writeln('It seems that Aenthill does not know how or where to store this new service. You need to install a dedicated Aent for this.'); |
37 | 37 | $output->writeln('Most of the time, you want to put this service in a docker-compose.yml file. We have a pretty good Aent for this: <info>theaentmachine/aent-docker-compose</info>.'); |
38 | 38 | $question = new Question('Do you want me to add this Aent for you? (y/n) ', 'y'); |
39 | - $question->setValidator(function (string $value) { |
|
39 | + $question->setValidator(function(string $value) { |
|
40 | 40 | $value = \strtolower(trim($value)); |
41 | 41 | |
42 | 42 | if ($value !== 'y' && $value !== 'n') { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | public static function dispatchJson(string $event, $payload): void |
26 | 26 | { |
27 | 27 | if (\is_object($payload) && !$payload instanceof \JsonSerializable) { |
28 | - throw new \RuntimeException('Payload object should implement JsonSerializable. Got an instance of '.\get_class($payload)); |
|
28 | + throw new \RuntimeException('Payload object should implement JsonSerializable. Got an instance of ' . \get_class($payload)); |
|
29 | 29 | } |
30 | 30 | self::dispatch($event, \json_encode($payload)); |
31 | 31 | } |