@@ -73,7 +73,7 @@ |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @param string|array $messages |
|
| 76 | + * @param string $messages |
|
| 77 | 77 | * @return string|array |
| 78 | 78 | */ |
| 79 | 79 | protected function applyIndention($messages) |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * @param $url |
|
| 42 | + * @param string $url |
|
| 43 | 43 | * @return VcsInterface |
| 44 | 44 | */ |
| 45 | 45 | abstract protected function getClient($url); |
@@ -13,11 +13,10 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Symfony\Component\Process\Exception\ProcessFailedException; |
| 15 | 15 | use Symfony\Component\Process\Process; |
| 16 | - |
|
| 17 | -use Webcreate\Conveyor\Task\Result\ExecuteResult; |
|
| 18 | -use Webcreate\Util\Cli; |
|
| 19 | 16 | use Webcreate\Conveyor\IO\IOInterface; |
| 20 | 17 | use Webcreate\Conveyor\Repository\Version; |
| 18 | +use Webcreate\Conveyor\Task\Result\ExecuteResult; |
|
| 19 | +use Webcreate\Util\Cli; |
|
| 21 | 20 | |
| 22 | 21 | class ShellTask extends Task |
| 23 | 22 | { |
@@ -93,6 +93,9 @@ |
||
| 93 | 93 | $this->output(sprintf('Executing: <comment>%s</comment>', $command)); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | + /** |
|
| 97 | + * @param Version $version |
|
| 98 | + */ |
|
| 96 | 99 | protected function getCommand($target, $version, $command) |
| 97 | 100 | { |
| 98 | 101 | $basepath = $path = $this->transporter->getPath(); |
@@ -23,6 +23,9 @@ discard block |
||
| 23 | 23 | protected $output; |
| 24 | 24 | protected $options; |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param string $target |
|
| 28 | + */ |
|
| 26 | 29 | abstract public function execute($target, Version $version); |
| 27 | 30 | |
| 28 | 31 | public function supports($target, Version $version) |
@@ -33,6 +36,9 @@ discard block |
||
| 33 | 36 | ); |
| 34 | 37 | } |
| 35 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $target |
|
| 41 | + */ |
|
| 36 | 42 | public function simulate($target, Version $version) |
| 37 | 43 | { |
| 38 | 44 | } |
@@ -58,7 +64,7 @@ discard block |
||
| 58 | 64 | * @todo validate $name |
| 59 | 65 | * |
| 60 | 66 | * @param string $name |
| 61 | - * @param $value |
|
| 67 | + * @param string $value |
|
| 62 | 68 | * @return Task |
| 63 | 69 | */ |
| 64 | 70 | public function setOption($name, $value) |
@@ -80,6 +80,9 @@ discard block |
||
| 80 | 80 | return $this->tasks; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | + /** |
|
| 84 | + * @param \Webcreate\Conveyor\Transporter\AbstractTransporter $transporter |
|
| 85 | + */ |
|
| 83 | 86 | public function setTransporter($transporter) |
| 84 | 87 | { |
| 85 | 88 | $this->transporter = $transporter; |
@@ -88,6 +91,10 @@ discard block |
||
| 88 | 91 | // @todo remove this because it's plain wrong! |
| 89 | 92 | array_walk( |
| 90 | 93 | $this->tasks, |
| 94 | + |
|
| 95 | + /** |
|
| 96 | + * @param \Webcreate\Conveyor\Transporter\AbstractTransporter $task |
|
| 97 | + */ |
|
| 91 | 98 | function ($task) use ($transporter) { |
| 92 | 99 | if ($task instanceof TransporterAwareInterface) { |
| 93 | 100 | $task->setTransporter($transporter); |
@@ -11,14 +11,14 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Webcreate\Conveyor\Transporter; |
| 13 | 13 | |
| 14 | -use phpseclib\Net\SFTP as phpseclib_SFTP; |
|
| 15 | -use phpseclib\System\SSH\Agent; |
|
| 16 | 14 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 17 | 15 | use Symfony\Component\Finder\Finder; |
| 18 | 16 | use Webcreate\Conveyor\Event\TransporterEvent; |
| 19 | 17 | use Webcreate\Conveyor\Event\TransporterEvents; |
| 20 | 18 | use Webcreate\Conveyor\IO\IOInterface; |
| 21 | 19 | use Webcreate\Conveyor\Transporter\Ftp\Sftp; |
| 20 | +use phpseclib\Net\SFTP as phpseclib_SFTP; |
|
| 21 | +use phpseclib\System\SSH\Agent; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @todo refactor the injection of the IOInterface to a event-based solution? |