@@ -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 | */ |
@@ -8,7 +8,6 @@ |
||
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; |
@@ -7,11 +7,9 @@ |
||
7 | 7 | |
8 | 8 | namespace Deployer\Console; |
9 | 9 | |
10 | -use Deployer\Collection\PersistentCollection; |
|
11 | 10 | use Deployer\Deployer; |
12 | 11 | use Deployer\Exception\Exception; |
13 | 12 | use Deployer\Exception\GracefulShutdownException; |
14 | -use Deployer\Exception\NonFatalException; |
|
15 | 13 | use Deployer\Task\Context; |
16 | 14 | use Symfony\Component\Console\Input\InputArgument; |
17 | 15 | use Symfony\Component\Console\Input\InputInterface; |
@@ -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) |
@@ -130,6 +130,11 @@ |
||
130 | 130 | } |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param string $value |
|
135 | + * |
|
136 | + * @return string |
|
137 | + */ |
|
133 | 138 | protected function castValueToPhpType($value) |
134 | 139 | { |
135 | 140 | switch ($value) { |
@@ -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'); |