Completed
Pull Request — master (#14)
by Amine
09:27 queued 14s
created
examples/HelloWorld.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
     protected function init ()
8 8
     {
9 9
         $this->name('Hello World')
10
-             ->version('1.0.0-alpha')
11
-             ->description('Shows a "Hello World" message')
12
-             ->options(['--formal'])
13
-             ->describe('--formal', 'Use formal "Greetings" instead of "Hello"');
10
+                ->version('1.0.0-alpha')
11
+                ->description('Shows a "Hello World" message')
12
+                ->options(['--formal'])
13
+                ->describe('--formal', 'Use formal "Greetings" instead of "Hello"');
14 14
     }
15 15
 
16 16
     protected function execute()
Please login to merge, or discard this patch.
examples/tests/HelloWorldTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,23 +9,23 @@
 block discarded – undo
9 9
     public function test_it_prints_hello_world()
10 10
     {
11 11
         $this->withStdin("Amine\n")
12
-             ->command(new HelloWorld)
13
-             ->prints("Your name:")
14
-             ->prints("Hello Amine<br>");
12
+                ->command(new HelloWorld)
13
+                ->prints("Your name:")
14
+                ->prints("Hello Amine<br>");
15 15
     }
16 16
     
17 17
     public function test_it_uses_formal_greeting()
18 18
     {
19 19
         $this->withStdin("Amine\n")
20
-             ->command(new HelloWorld, ['--formal'])
21
-             ->prints("Your name:")
22
-             ->prints("Greetings Amine<br>");
20
+                ->command(new HelloWorld, ['--formal'])
21
+                ->prints("Your name:")
22
+                ->prints("Greetings Amine<br>");
23 23
     }
24 24
 
25 25
     public function test_it_shows_hello_world_version()
26 26
     {
27 27
         $this->command(new HelloWorld, ['--version'])
28
-             ->printsExactly("<info>Hello World</info> version <info>1.0.0-alpha</info><br>");
28
+                ->printsExactly("<info>Hello World</info> version <info>1.0.0-alpha</info><br>");
29 29
     }
30 30
 
31 31
 }
Please login to merge, or discard this patch.