@@ -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) |
@@ -7,7 +7,6 @@ discard block |
||
7 | 7 | |
8 | 8 | namespace Deployer; |
9 | 9 | |
10 | -use Deployer\Exception\Exception; |
|
11 | 10 | use Deployer\Exception\GracefulShutdownException; |
12 | 11 | use Deployer\Exception\RunException; |
13 | 12 | use Deployer\Host\FileLoader; |
@@ -18,8 +17,6 @@ discard block |
||
18 | 17 | use Deployer\Task\Context; |
19 | 18 | use Deployer\Task\GroupTask; |
20 | 19 | use Deployer\Task\Task as T; |
21 | -use Deployer\Utility\Httpie; |
|
22 | -use Symfony\Component\Console\Exception\MissingInputException; |
|
23 | 20 | use Symfony\Component\Console\Helper\QuestionHelper; |
24 | 21 | use Symfony\Component\Console\Input\InputInterface; |
25 | 22 | use Symfony\Component\Console\Input\InputOption; |
@@ -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 | { |
@@ -70,6 +70,10 @@ |
||
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param double $interval |
|
75 | + * @param \Closure $callback |
|
76 | + */ |
|
73 | 77 | public function addPeriodicTimer($interval, $callback) |
74 | 78 | { |
75 | 79 | $this->loop->addPeriodicTimer($interval, $callback); |