Completed
Pull Request — master (#531)
by
unknown
04:30 queued 01:22
created
src/Common/ExecTrait.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@
 block discarded – undo
246 246
 
247 247
     /**
248 248
      * @param $command
249
-     * @param null $output_callback
249
+     * @param \Closure $output_callback
250 250
      *
251 251
      * @return \Robo\Result
252 252
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      */
236 236
     public function run() {
237 237
         $output_callback =
238
-            function ($type, $buffer) {
238
+            function($type, $buffer) {
239 239
                 $progressWasVisible = $this->hideTaskProgress();
240 240
                 print($buffer);
241 241
                 $this->showTaskProgress($progressWasVisible);
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      */
253 253
     public function execute($command, $output_callback = NULL) {
254 254
        if (!$output_callback) {
255
-            $output_callback = function ($type, $buffer) {
255
+            $output_callback = function($type, $buffer) {
256 256
                 print($buffer);
257 257
             };
258 258
         }
Please login to merge, or discard this patch.
src/Task/Base/Exec.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -1,13 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Robo\Task\Base;
3 3
 
4
-use Robo\Common\ExecTrait;
5 4
 use Robo\Contract\CommandInterface;
6
-use Robo\Contract\PrintedInterface;
7 5
 use Robo\Contract\SimulatedInterface;
8 6
 use Robo\Task\BaseTask;
9
-use Symfony\Component\Process\Process;
10
-use Robo\Result;
11 7
 
12 8
 /**
13 9
  * Executes shell script. Closes it when running in background mode.
Please login to merge, or discard this patch.
src/Common/ExecCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
     protected function findProjectBin()
90 90
     {
91 91
         $cwd = getcwd();
92
-        $candidates = [ __DIR__ . '/../../vendor/bin', __DIR__ . '/../../bin', $cwd . '/vendor/bin' ];
92
+        $candidates = [__DIR__ . '/../../vendor/bin', __DIR__ . '/../../bin', $cwd . '/vendor/bin'];
93 93
 
94 94
         // If this project is inside a vendor directory, give highest priority
95 95
         // to that directory.
Please login to merge, or discard this patch.