@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace Consolidation\SiteProcess\Remo; |
4 | 4 | |
5 | 5 | use Consolidation\SiteProcess\SiteProcess; |
6 | - |
|
7 | -use Consolidation\SiteAlias\SiteAliasManagerAwareInterface; |
|
8 | 6 | use Consolidation\SiteAlias\SiteAliasManagerAwareTrait; |
9 | 7 | use Consolidation\SiteAlias\SiteAliasManager; |
10 | 8 |
@@ -109,6 +109,8 @@ |
||
109 | 109 | |
110 | 110 | /** |
111 | 111 | * Make sure that every line in $buffer begins with a MARKER_ERR. |
112 | + * @param string $buffer |
|
113 | + * @param string $marker |
|
112 | 114 | */ |
113 | 115 | protected function addMarker($buffer, $marker) |
114 | 116 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace Consolidation\SiteProcess\Util; |
3 | 3 | |
4 | 4 | use Symfony\Component\Process\Process; |
5 | -use Consolidation\Config\Util\Interpolator; |
|
6 | 5 | use Symfony\Component\Console\Output\OutputInterface; |
7 | 6 | use Symfony\Component\Console\Output\NullOutput; |
8 | 7 |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * @param string|null $cwd The working directory or null to use the working dir of the current PHP process |
45 | 45 | * @param array|null $env The environment variables or null to use the same environment as the current PHP process |
46 | 46 | * @param mixed|null $input The input as stream resource, scalar or \Traversable, or null for no input |
47 | - * @param int|float|null $timeout The timeout in seconds or null to disable |
|
47 | + * @param integer $timeout The timeout in seconds or null to disable |
|
48 | 48 | * @return Process |
49 | 49 | */ |
50 | 50 | public static function fromShellCommandline($command, $cwd = null, array $env = null, $input = null, $timeout = 60) |
@@ -66,6 +66,9 @@ discard block |
||
66 | 66 | return $this->output; |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @return OutputInterface |
|
71 | + */ |
|
69 | 72 | protected function realtimeStderr() |
70 | 73 | { |
71 | 74 | if ($this->stderr) { |
@@ -181,7 +184,7 @@ discard block |
||
181 | 184 | /** |
182 | 185 | * Return a realTime output object. |
183 | 186 | * |
184 | - * @return callable |
|
187 | + * @return RealtimeOutputHandler |
|
185 | 188 | */ |
186 | 189 | public function showRealtime() |
187 | 190 | { |
@@ -198,7 +198,6 @@ |
||
198 | 198 | * It is possible to use dot notation in the keys to access nested elements |
199 | 199 | * within the site alias record. |
200 | 200 | * |
201 | - * @param SiteAliasInterface $siteAlias |
|
202 | 201 | * @param type $args |
203 | 202 | * @return type |
204 | 203 | */ |
@@ -2,10 +2,7 @@ |
||
2 | 2 | namespace Consolidation\SiteProcess; |
3 | 3 | |
4 | 4 | use Consolidation\SiteAlias\SiteAliasInterface; |
5 | -use Consolidation\SiteProcess\Transport\DockerComposeTransport; |
|
6 | 5 | use Consolidation\SiteProcess\Util\ArgumentProcessor; |
7 | -use Consolidation\SiteProcess\Transport\LocalTransport; |
|
8 | -use Consolidation\SiteProcess\Transport\SshTransport; |
|
9 | 6 | use Consolidation\SiteProcess\Transport\TransportInterface; |
10 | 7 | use Consolidation\Config\Util\Interpolator; |
11 | 8 | use Consolidation\SiteProcess\Util\ShellOperatorInterface; |
@@ -18,10 +18,10 @@ |
||
18 | 18 | * to be executed and orders them as needed. |
19 | 19 | * |
20 | 20 | * @param SiteAliasInterface $siteAlias Description of |
21 | - * @param array $args Command and arguments to execute (source) |
|
22 | - * @param array $options key / value pair of option and value in include |
|
21 | + * @param string[] $args Command and arguments to execute (source) |
|
22 | + * @param string[] $options key / value pair of option and value in include |
|
23 | 23 | * in final arguments |
24 | - * @param array $optionsPassedAsArgs key / value pair of option and value |
|
24 | + * @param string[] $optionsPassedAsArgs key / value pair of option and value |
|
25 | 25 | * to include in final arguments after the '--' argument. |
26 | 26 | * @return array Command and arguments to execute |
27 | 27 | */ |
@@ -2,8 +2,6 @@ |
||
2 | 2 | namespace Consolidation\SiteProcess\Util; |
3 | 3 | |
4 | 4 | use Consolidation\SiteAlias\SiteAliasInterface; |
5 | -use Symfony\Component\Process\Process; |
|
6 | -use Consolidation\SiteProcess\Transport\TransportInterface; |
|
7 | 5 | |
8 | 6 | /** |
9 | 7 | * ArgumentProcessor takes a set of arguments and options from the caller |