@@ -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. |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Robo\Result; |
| 5 | 5 | use Symfony\Component\Process\ExecutableFinder; |
| 6 | -use Symfony\Component\Process\Process; |
|
| 7 | 6 | |
| 8 | 7 | /** |
| 9 | 8 | * This task is supposed to be executed as shell command. |
@@ -262,7 +262,7 @@ |
||
| 262 | 262 | protected function execute($command, $output_callback = null) |
| 263 | 263 | { |
| 264 | 264 | if (!$output_callback) { |
| 265 | - $output_callback = function ($type, $buffer) { |
|
| 265 | + $output_callback = function($type, $buffer) { |
|
| 266 | 266 | print($buffer); |
| 267 | 267 | }; |
| 268 | 268 | } |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Robo\Common; |
| 4 | 4 | |
| 5 | -use Psr\Log\LoggerAwareTrait; |
|
| 6 | 5 | use Robo\Result; |
| 7 | 6 | use Symfony\Component\Process\Process; |
| 8 | 7 | |