@@ -1,15 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Robo; |
| 3 | 3 | |
| 4 | -use League\Container\Container; |
|
| 5 | -use Symfony\Component\Console\Input\InputInterface; |
|
| 6 | 4 | use Symfony\Component\Console\Input\ArgvInput; |
| 7 | 5 | use Symfony\Component\Console\Input\StringInput; |
| 8 | -use Consolidation\AnnotatedCommand\PassThroughArgsInput; |
|
| 9 | 6 | use Robo\Contract\BuilderAwareInterface; |
| 10 | 7 | use Robo\Common\IO; |
| 11 | 8 | use Robo\Exception\TaskExitException; |
| 12 | -use League\Container\ContainerInterface; |
|
| 13 | 9 | use League\Container\ContainerAwareInterface; |
| 14 | 10 | use League\Container\ContainerAwareTrait; |
| 15 | 11 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | public function __construct($roboClass = null, $roboFile = null) |
| 45 | 45 | { |
| 46 | 46 | // set the const as class properties to allow overwriting in child classes |
| 47 | - $this->roboClass = $roboClass ? $roboClass : self::ROBOCLASS ; |
|
| 47 | + $this->roboClass = $roboClass ? $roboClass : self::ROBOCLASS; |
|
| 48 | 48 | $this->roboFile = $roboFile ? $roboFile : self::ROBOFILE; |
| 49 | 49 | $this->dir = getcwd(); |
| 50 | 50 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | require_once $roboFilePath; |
| 80 | 80 | |
| 81 | 81 | if (!class_exists($this->roboClass)) { |
| 82 | - $output->writeln("<error>Class ".$this->roboClass." was not loaded</error>"); |
|
| 82 | + $output->writeln("<error>Class " . $this->roboClass . " was not loaded</error>"); |
|
| 83 | 83 | return false; |
| 84 | 84 | } |
| 85 | 85 | return true; |
@@ -298,9 +298,9 @@ discard block |
||
| 298 | 298 | |
| 299 | 299 | if (substr($argv[$pos], 0, 12) == '--load-from=') { |
| 300 | 300 | $this->dir = substr($argv[$pos], 12); |
| 301 | - } elseif (isset($argv[$pos +1])) { |
|
| 302 | - $this->dir = $argv[$pos +1]; |
|
| 303 | - unset($argv[$pos +1]); |
|
| 301 | + } elseif (isset($argv[$pos + 1])) { |
|
| 302 | + $this->dir = $argv[$pos + 1]; |
|
| 303 | + unset($argv[$pos + 1]); |
|
| 304 | 304 | } |
| 305 | 305 | unset($argv[$pos]); |
| 306 | 306 | // Make adjustments if '--load-from' points at a file. |