@@ -14,6 +14,7 @@ |
||
| 14 | 14 | * |
| 15 | 15 | * @param string $format The format. |
| 16 | 16 | * @param mixed $value,... The value(s). |
| 17 | + * @param string $value |
|
| 17 | 18 | * |
| 18 | 19 | * @return Exception The exception. |
| 19 | 20 | */ |
@@ -30,6 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * @param string ...$hostname |
| 33 | + * @param string[] $hostname |
|
| 33 | 34 | * @return Host|Host[]|Proxy |
| 34 | 35 | */ |
| 35 | 36 | function host(...$hostname) |
@@ -66,6 +67,7 @@ discard block |
||
| 66 | 67 | |
| 67 | 68 | /** |
| 68 | 69 | * @param string ...$hostnames |
| 70 | + * @param string[] $hostnames |
|
| 69 | 71 | * @return Localhost|Localhost[]|Proxy |
| 70 | 72 | */ |
| 71 | 73 | function localhost(...$hostnames) |
@@ -173,6 +173,4 @@ |
||
| 173 | 173 | $initializer->addTemplate('Drupal', new DrupalTemplate()); |
| 174 | 174 | $initializer->addTemplate('TYPO3', new Typo3Template()); |
| 175 | 175 | |
| 176 | - return $initializer; |
|
| 177 | - } |
|
| 178 | -} |
|
| 176 | + return $initializer |
|
| 179 | 177 | \ No newline at end of file |
@@ -173,6 +173,4 @@ |
||
| 173 | 173 | $initializer->addTemplate('Drupal', new DrupalTemplate()); |
| 174 | 174 | $initializer->addTemplate('TYPO3', new Typo3Template()); |
| 175 | 175 | |
| 176 | - return $initializer; |
|
| 177 | - } |
|
| 178 | -} |
|
| 176 | + return $initializer |
|
| 179 | 177 | \ No newline at end of file |
@@ -105,6 +105,9 @@ discard block |
||
| 105 | 105 | return $this; |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | + /** |
|
| 109 | + * @return null|string |
|
| 110 | + */ |
|
| 108 | 111 | public function getPort() |
| 109 | 112 | { |
| 110 | 113 | return $this->config->get('port'); |
@@ -116,6 +119,9 @@ discard block |
||
| 116 | 119 | return $this; |
| 117 | 120 | } |
| 118 | 121 | |
| 122 | + /** |
|
| 123 | + * @return null|string |
|
| 124 | + */ |
|
| 119 | 125 | public function getConfigFile() |
| 120 | 126 | { |
| 121 | 127 | return $this->config->get('config_file'); |
@@ -127,6 +133,9 @@ discard block |
||
| 127 | 133 | return $this; |
| 128 | 134 | } |
| 129 | 135 | |
| 136 | + /** |
|
| 137 | + * @return null|string |
|
| 138 | + */ |
|
| 130 | 139 | public function getIdentityFile() |
| 131 | 140 | { |
| 132 | 141 | return $this->config->get('identity_file'); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | * |
| 43 | 43 | * @param string $command The artisan command (with cli options if any). |
| 44 | 44 | * @param array $options The options that define the behaviour of the command. |
| 45 | - * @return callable A function that can be used as a task. |
|
| 45 | + * @return \Closure A function that can be used as a task. |
|
| 46 | 46 | */ |
| 47 | 47 | function artisan($command, $options = []) |
| 48 | 48 | { |
@@ -8,13 +8,11 @@ |
||
| 8 | 8 | namespace Deployer\Console; |
| 9 | 9 | |
| 10 | 10 | use Deployer\Deployer; |
| 11 | -use Deployer\Host\Host; |
|
| 12 | 11 | use Deployer\Host\Localhost; |
| 13 | 12 | use Deployer\Task\Context; |
| 14 | 13 | use Symfony\Component\Console\Command\Command; |
| 15 | 14 | use Symfony\Component\Console\Input\InputArgument; |
| 16 | 15 | use Symfony\Component\Console\Input\InputInterface; |
| 17 | -use Symfony\Component\Console\Input\InputOption as Option; |
|
| 18 | 16 | use Symfony\Component\Console\Output\OutputInterface; |
| 19 | 17 | use Symfony\Component\Console\Question\ChoiceQuestion; |
| 20 | 18 | |
@@ -8,11 +8,7 @@ |
||
| 8 | 8 | namespace Deployer\Console; |
| 9 | 9 | |
| 10 | 10 | use Deployer\Deployer; |
| 11 | -use Deployer\Exception\Exception; |
|
| 12 | -use Deployer\Exception\GracefulShutdownException; |
|
| 13 | -use Deployer\Exception\RunException; |
|
| 14 | 11 | use Deployer\Executor\Worker; |
| 15 | -use Deployer\Task\Context; |
|
| 16 | 12 | use Symfony\Component\Console\Input\InputArgument; |
| 17 | 13 | use Symfony\Component\Console\Input\InputInterface; |
| 18 | 14 | use Symfony\Component\Console\Input\InputOption as Option; |