Completed
Branch master (a69c65)
by Greg
04:32
created
examples/RoboFile.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function tryWatch()
25 25
     {
26
-        $this->taskWatch()->monitor(['composer.json', 'composer.lock'], function () {
26
+        $this->taskWatch()->monitor(['composer.json', 'composer.lock'], function() {
27 27
             $this->taskComposerUpdate()->run();
28 28
         })->run();
29 29
     }
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public function tryInput()
35 35
     {
36 36
         $answer = $this->ask('how are you?');
37
-        $this->say('You are '.$answer);
37
+        $this->say('You are ' . $answer);
38 38
         $yes = $this->confirm('Do you want one more question?');
39 39
         if (!$yes) {
40 40
             return Result::cancelled();
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $lang = $this->askDefault('what is your favorite scripting language?', 'PHP');
43 43
         $this->say($lang);
44 44
         $pin = $this->askHidden('Ok, now tell your PIN code (it is hidden)');
45
-        $this->yell('Ha-ha, your pin code is: '.$pin);
45
+        $this->yell('Ha-ha, your pin code is: ' . $pin);
46 46
         $this->say('Bye!');
47 47
     }
48 48
 
@@ -154,10 +154,10 @@  discard block
 block discarded – undo
154 154
     public function tryFormatters($options = ['format' => 'table', 'fields' => ''])
155 155
     {
156 156
         $outputData = [
157
-            [ 'first' => 'One',  'second' => 'Two',  'third' => 'Three' ],
158
-            [ 'first' => 'Eins', 'second' => 'Zwei', 'third' => 'Drei'  ],
159
-            [ 'first' => 'Ichi', 'second' => 'Ni',   'third' => 'San'   ],
160
-            [ 'first' => 'Uno',  'second' => 'Dos',  'third' => 'Tres'  ],
157
+            ['first' => 'One', 'second' => 'Two', 'third' => 'Three'],
158
+            ['first' => 'Eins', 'second' => 'Zwei', 'third' => 'Drei'],
159
+            ['first' => 'Ichi', 'second' => 'Ni', 'third' => 'San'],
160
+            ['first' => 'Uno', 'second' => 'Dos', 'third' => 'Tres'],
161 161
         ];
162 162
         // Note that we can also simply return the output data array here.
163 163
         return ResultData::message(new RowsOfFields($outputData));
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
             ->taskForEach($processList)
313 313
                 ->iterationMessage('Processing {value}')
314 314
                 ->call(
315
-                    function ($value) use($delay) {
315
+                    function($value) use($delay) {
316 316
                         // TaskForEach::call should only be used to do
317 317
                         // non-Robo operations. To use Robo tasks in an
318 318
                         // iterator, @see TaskForEach::withBuilder.
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
             ->taskCleanDir($workdir)
335 335
             ->taskForEach($processList)
336 336
                 ->withBuilder(
337
-                    function ($builder, $key, $value) use ($workdir) {
337
+                    function($builder, $key, $value) use ($workdir) {
338 338
                         return $builder
339 339
                             ->taskFilesystemStack()
340 340
                                 ->mkdir("$workdir/$value");
Please login to merge, or discard this patch.
src/Common/TimeKeeper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
         if ($duration > self::MINUTE) {
54 54
             return gmdate("i:s", $duration);
55 55
         }
56
-        return round($duration, 3).'s';
56
+        return round($duration, 3) . 's';
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
src/Common/ExecCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
     protected function findProjectBin()
103 103
     {
104
-        $candidates = [ __DIR__ . '/../../vendor/bin', __DIR__ . '/../../bin' ];
104
+        $candidates = [__DIR__ . '/../../vendor/bin', __DIR__ . '/../../bin'];
105 105
 
106 106
         // If this project is inside a vendor directory, give highest priority
107 107
         // to that directory.
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         }
146 146
         $this->getExecTimer()->start();
147 147
         if ($this->isPrinted) {
148
-            $process->run(function ($type, $buffer) {
148
+            $process->run(function($type, $buffer) {
149 149
                 print $buffer;
150 150
             });
151 151
         } else {
Please login to merge, or discard this patch.
src/Common/DynamicParams.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function __call($property, $args)
15 15
     {
16 16
         if (!property_exists($this, $property)) {
17
-            throw new \RuntimeException("Property $property in task ".get_class($this).' does not exists');
17
+            throw new \RuntimeException("Property $property in task " . get_class($this) . ' does not exists');
18 18
         }
19 19
 
20 20
         // toggle boolean values
Please login to merge, or discard this patch.
src/Common/CommandArguments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             $args = func_get_args();
35 35
         }
36 36
         array_map('static::escape', $args);
37
-        $this->arguments .= " ".implode(' ', $args);
37
+        $this->arguments .= " " . implode(' ', $args);
38 38
         return $this;
39 39
     }
40 40
 
Please login to merge, or discard this patch.
src/Task/Archive/Extract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,6 +223,6 @@
 block discarded – undo
223 223
 
224 224
     protected static function getTmpDir()
225 225
     {
226
-        return getcwd().'/tmp'.rand().time();
226
+        return getcwd() . '/tmp' . rand() . time();
227 227
     }
228 228
 }
Please login to merge, or discard this patch.
src/Task/Base/ParallelExec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
             if ($p->getExitCode() === 0) {
120 120
                 continue;
121 121
             }
122
-            $errorMessage .= "'" . $p->getCommandLine() . "' exited with code ". $p->getExitCode()." \n";
122
+            $errorMessage .= "'" . $p->getCommandLine() . "' exited with code " . $p->getExitCode() . " \n";
123 123
             $exitCode = max($exitCode, $p->getExitCode());
124 124
         }
125 125
         if (!$errorMessage) {
Please login to merge, or discard this patch.
src/Task/Base/Exec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
         if (!$this->background and $this->isPrinted) {
145 145
             $this->startTimer();
146 146
             $this->process->run(
147
-                function ($type, $buffer) {
147
+                function($type, $buffer) {
148 148
                     $progressWasVisible = $this->hideTaskProgress();
149 149
                     print($buffer);
150 150
                     $this->showTaskProgress($progressWasVisible);
Please login to merge, or discard this patch.
src/Task/Simulator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
             return $this->shortenParameter(var_export($item, true));
97 97
         }
98 98
         if (is_object($item)) {
99
-            return '[' . get_class($item). ' object]';
99
+            return '[' . get_class($item) . ' object]';
100 100
         }
101 101
         if (is_string($item)) {
102 102
             return $this->shortenParameter("'$item'");
Please login to merge, or discard this patch.