Completed
Pull Request — master (#31)
by Jindun
02:11
created
src/Hermes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.