Passed
Push — master ( eb529f...998d75 )
by Korotkov
29:22 queued 22:17
created
tests/AbstractFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function testJson()
21 21
     {
22
-        $content = \json_encode(['content' => $this->content]);
22
+        $content = \json_encode([ 'content' => $this->content ]);
23 23
 
24 24
         $this->assertEquals((new JsonMessage())->createMessage($this->content), $content);
25 25
     }
Please login to merge, or discard this patch.
main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
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";
Please login to merge, or discard this patch.
src/JsonMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.