Passed
Pull Request — master (#5)
by David
03:40 queued 13s
created
src/Exception/CannotHandleEventException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,6 +7,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/CommonEvents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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') {
Please login to merge, or discard this patch.
src/Hermes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.