@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | $createRoboFile = new Command('init'); |
42 | 42 | $createRoboFile->setDescription("Intitalizes basic RoboFile in current dir"); |
43 | - $createRoboFile->setCode(function () use ($roboClass, $roboFile) { |
|
43 | + $createRoboFile->setCode(function() use ($roboClass, $roboFile) { |
|
44 | 44 | $output = Robo::output(); |
45 | 45 | $output->writeln("<comment> ~~~ Welcome to Robo! ~~~~ </comment>"); |
46 | 46 | $output->writeln("<comment> " . basename($roboFile) . " will be created in the current directory </comment>"); |
@@ -705,7 +705,7 @@ discard block |
||
705 | 705 | return implode( |
706 | 706 | "\n", |
707 | 707 | array_map( |
708 | - function ($line) use ($indent) { |
|
708 | + function($line) use ($indent) { |
|
709 | 709 | return substr($line, $indent); |
710 | 710 | }, |
711 | 711 | explode("\n", $doc) |
@@ -727,7 +727,7 @@ discard block |
||
727 | 727 | $params = implode( |
728 | 728 | ', ', |
729 | 729 | array_map( |
730 | - function ($p) { |
|
730 | + function($p) { |
|
731 | 731 | return $this->documentParam($p); |
732 | 732 | }, |
733 | 733 | $reflectedMethod->getParameters() |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | // set iterable in the __constructor |
60 | 60 | $result = $this |
61 | 61 | ->taskForEach($items) |
62 | - ->withBuilder(function (CollectionBuilder $builder, $key, $value) use (&$actual) { |
|
63 | - $builder->addCode(function () use ($key, $value, &$actual) { |
|
62 | + ->withBuilder(function(CollectionBuilder $builder, $key, $value) use (&$actual) { |
|
63 | + $builder->addCode(function() use ($key, $value, &$actual) { |
|
64 | 64 | $actual[] = "$key = $value"; |
65 | 65 | |
66 | 66 | return 0; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | // set iterable with deferTaskConfiguration() |
83 | 83 | $result = $this |
84 | 84 | ->collectionBuilder() |
85 | - ->addCode(function (Data $data) use ($items) { |
|
85 | + ->addCode(function(Data $data) use ($items) { |
|
86 | 86 | $data['items'] = $items; |
87 | 87 | |
88 | 88 | return 0; |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | $this |
92 | 92 | ->taskForEach() |
93 | 93 | ->deferTaskConfiguration('setIterable', 'items') |
94 | - ->withBuilder(function (CollectionBuilder $builder, $key, $value) use (&$actual) { |
|
95 | - $builder->addCode(function () use ($key, $value, &$actual) { |
|
94 | + ->withBuilder(function(CollectionBuilder $builder, $key, $value) use (&$actual) { |
|
95 | + $builder->addCode(function() use ($key, $value, &$actual) { |
|
96 | 96 | $actual[] = "$key = $value"; |
97 | 97 | |
98 | 98 | return 0; |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | // call the __constructor() without argument |
112 | 112 | $result = $this |
113 | 113 | ->taskForEach() |
114 | - ->withBuilder(function (CollectionBuilder $builder, $key, $value) use (&$actual) { |
|
115 | - $builder->addCode(function () use ($key, $value, &$actual) { |
|
114 | + ->withBuilder(function(CollectionBuilder $builder, $key, $value) use (&$actual) { |
|
115 | + $builder->addCode(function() use ($key, $value, &$actual) { |
|
116 | 116 | $actual++; |
117 | 117 | |
118 | 118 | return 0; |
@@ -133,7 +133,4 @@ |
||
133 | 133 | $this->assertTrue($result->wasSuccessful()); |
134 | 134 | $this->assertFileExists('box/robo.txt'); |
135 | 135 | $contents = file_get_contents('box/robo.txt'); |
136 | - $this->assertContains('Hello robo.li!', $contents); |
|
137 | - } |
|
138 | -} |
|
139 | - |
|
136 | + $this->assertContains('Hello robo.li!', $contents |
|
140 | 137 | \ No newline at end of file |
@@ -133,7 +133,4 @@ |
||
133 | 133 | $this->assertTrue($result->wasSuccessful()); |
134 | 134 | $this->assertFileExists('box/robo.txt'); |
135 | 135 | $contents = file_get_contents('box/robo.txt'); |
136 | - $this->assertContains('Hello robo.li!', $contents); |
|
137 | - } |
|
138 | -} |
|
139 | - |
|
136 | + $this->assertContains('Hello robo.li!', $contents |
|
140 | 137 | \ No newline at end of file |
@@ -27,10 +27,10 @@ discard block |
||
27 | 27 | { |
28 | 28 | // write lines with WriteToFile task |
29 | 29 | $result = $this->taskWriteToFile('blogpost.md') |
30 | - ->line('****') |
|
31 | - ->line('hello world') |
|
32 | - ->line('****') |
|
33 | - ->run(); |
|
30 | + ->line('****') |
|
31 | + ->line('hello world') |
|
32 | + ->line('****') |
|
33 | + ->run(); |
|
34 | 34 | $this->assertTrue($result->wasSuccessful()); |
35 | 35 | $this->assertFileExists('blogpost.md'); |
36 | 36 | $contents = file_get_contents('blogpost.md'); |
@@ -133,7 +133,4 @@ discard block |
||
133 | 133 | $this->assertTrue($result->wasSuccessful()); |
134 | 134 | $this->assertFileExists('box/robo.txt'); |
135 | 135 | $contents = file_get_contents('box/robo.txt'); |
136 | - $this->assertContains('Hello robo.li!', $contents); |
|
137 | - } |
|
138 | -} |
|
139 | - |
|
136 | + $this->assertContains('Hello robo.li!', $contents |
|
140 | 137 | \ No newline at end of file |
@@ -133,7 +133,4 @@ |
||
133 | 133 | $this->assertTrue($result->wasSuccessful()); |
134 | 134 | $this->assertFileExists('box/robo.txt'); |
135 | 135 | $contents = file_get_contents('box/robo.txt'); |
136 | - $this->assertContains('Hello robo.li!', $contents); |
|
137 | - } |
|
138 | -} |
|
139 | - |
|
136 | + $this->assertContains('Hello robo.li!', $contents |
|
140 | 137 | \ No newline at end of file |
@@ -133,7 +133,4 @@ |
||
133 | 133 | $this->assertTrue($result->wasSuccessful()); |
134 | 134 | $this->assertFileExists('box/robo.txt'); |
135 | 135 | $contents = file_get_contents('box/robo.txt'); |
136 | - $this->assertContains('Hello robo.li!', $contents); |
|
137 | - } |
|
138 | -} |
|
139 | - |
|
136 | + $this->assertContains('Hello robo.li!', $contents |
|
140 | 137 | \ No newline at end of file |
@@ -133,7 +133,4 @@ |
||
133 | 133 | $this->assertTrue($result->wasSuccessful()); |
134 | 134 | $this->assertFileExists('box/robo.txt'); |
135 | 135 | $contents = file_get_contents('box/robo.txt'); |
136 | - $this->assertContains('Hello robo.li!', $contents); |
|
137 | - } |
|
138 | -} |
|
139 | - |
|
136 | + $this->assertContains('Hello robo.li!', $contents |
|
140 | 137 | \ No newline at end of file |
@@ -133,7 +133,4 @@ |
||
133 | 133 | $this->assertTrue($result->wasSuccessful()); |
134 | 134 | $this->assertFileExists('box/robo.txt'); |
135 | 135 | $contents = file_get_contents('box/robo.txt'); |
136 | - $this->assertContains('Hello robo.li!', $contents); |
|
137 | - } |
|
138 | -} |
|
139 | - |
|
136 | + $this->assertContains('Hello robo.li!', $contents |
|
140 | 137 | \ No newline at end of file |