@@ -246,7 +246,7 @@ |
||
| 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 | */ |
@@ -235,7 +235,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -1,13 +1,9 @@ |
||
| 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. |
@@ -89,7 +89,7 @@ |
||
| 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. |