@@ -7,7 +7,7 @@ |
||
7 | 7 | $content = "Message"; |
8 | 8 | |
9 | 9 | $factory = new XMLMessage(); |
10 | -echo $factory->createMessage($content). "\n"; |
|
10 | +echo $factory->createMessage($content) . "\n"; |
|
11 | 11 | |
12 | 12 | $factory = new JsonMessage(); |
13 | 13 | echo $factory->createMessage($content) . "\n"; |
@@ -21,6 +21,6 @@ |
||
21 | 21 | */ |
22 | 22 | public function createMessage(string $content): string |
23 | 23 | { |
24 | - return \json_encode(["content" => $content]); |
|
24 | + return \json_encode([ "content" => $content ]); |
|
25 | 25 | } |
26 | 26 | } |