Completed
Push — master ( 8d654a...bf6fec )
by Greg
04:00
created
examples/RoboFile.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function tryWatch()
31 31
     {
32
-        $this->taskWatch()->monitor(['composer.json', 'composer.lock'], function () {
32
+        $this->taskWatch()->monitor(['composer.json', 'composer.lock'], function() {
33 33
             $this->taskComposerUpdate()->run();
34 34
         })->run();
35 35
     }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     public function tryInput()
41 41
     {
42 42
         $answer = $this->ask('how are you?');
43
-        $this->say('You are '.$answer);
43
+        $this->say('You are ' . $answer);
44 44
         $yes = $this->confirm('Do you want one more question?');
45 45
         if (!$yes) {
46 46
             return Result::cancelled();
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $lang = $this->askDefault('what is your favorite scripting language?', 'PHP');
49 49
         $this->say($lang);
50 50
         $pin = $this->askHidden('Ok, now tell your PIN code (it is hidden)');
51
-        $this->yell('Ha-ha, your pin code is: '.$pin);
51
+        $this->yell('Ha-ha, your pin code is: ' . $pin);
52 52
         $this->say('Bye!');
53 53
     }
54 54
 
@@ -164,10 +164,10 @@  discard block
 block discarded – undo
164 164
     public function tryFormatters($somthing = 'default', $options = ['format' => 'table', 'fields' => ''])
165 165
     {
166 166
         $outputData = [
167
-            [ 'first' => 'One',  'second' => 'Two',  'third' => 'Three' ],
168
-            [ 'first' => 'Eins', 'second' => 'Zwei', 'third' => 'Drei'  ],
169
-            [ 'first' => 'Ichi', 'second' => 'Ni',   'third' => 'San'   ],
170
-            [ 'first' => 'Uno',  'second' => 'Dos',  'third' => 'Tres'  ],
167
+            ['first' => 'One', 'second' => 'Two', 'third' => 'Three'],
168
+            ['first' => 'Eins', 'second' => 'Zwei', 'third' => 'Drei'],
169
+            ['first' => 'Ichi', 'second' => 'Ni', 'third' => 'San'],
170
+            ['first' => 'Uno', 'second' => 'Dos', 'third' => 'Tres'],
171 171
         ];
172 172
         return new RowsOfFields($outputData);
173 173
     }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     public function alterFormatters($result, array $args, AnnotationData $annotationData)
183 183
     {
184 184
         if ($args['options']['french']) {
185
-            $result[] = [ 'first' => 'Un',  'second' => 'Deux',  'third' => 'Trois'  ];
185
+            $result[] = ['first' => 'Un', 'second' => 'Deux', 'third' => 'Trois'];
186 186
         }
187 187
 
188 188
         return $result;
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
             ->taskForEach($processList)
338 338
                 ->iterationMessage('Processing {value}')
339 339
                 ->call(
340
-                    function ($value) use($delay) {
340
+                    function($value) use($delay) {
341 341
                         // TaskForEach::call should only be used to do
342 342
                         // non-Robo operations. To use Robo tasks in an
343 343
                         // iterator, @see TaskForEach::withBuilder.
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
             ->taskCleanDir($workdir)
360 360
             ->taskForEach($processList)
361 361
                 ->withBuilder(
362
-                    function ($builder, $key, $value) use ($workdir) {
362
+                    function($builder, $key, $value) use ($workdir) {
363 363
                         return $builder
364 364
                             ->taskFilesystemStack()
365 365
                                 ->mkdir("$workdir/$value");
Please login to merge, or discard this patch.