Completed
Pull Request — master (#31)
by Greg
01:43
created
src/ProcessManager.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * @param string|null $cwd     The working directory or null to use the working dir of the current PHP process
87 87
      * @param array|null $env     The environment variables or null to use the same environment as the current PHP process
88 88
      * @param mixed|null $input   The input as stream resource, scalar or \Traversable, or null for no input
89
-     * @param int|float|null $timeout The timeout in seconds or null to disable
89
+     * @param integer $timeout The timeout in seconds or null to disable
90 90
      * @return Process
91 91
      */
92 92
     public function process($command, $cwd = null, array $env = null, $input = null, $timeout = 60)
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @param string|null $cwd     The working directory or null to use the working dir of the current PHP process
101 101
      * @param array|null $env     The environment variables or null to use the same environment as the current PHP process
102 102
      * @param mixed|null $input   The input as stream resource, scalar or \Traversable, or null for no input
103
-     * @param int|float|null $timeout The timeout in seconds or null to disable
103
+     * @param integer $timeout The timeout in seconds or null to disable
104 104
      * @return Process
105 105
      */
106 106
     public function shell($command, $cwd = null, array $env = null, $input = null, $timeout = 60)
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * getTransport returns a transport that is applicable to the provided site alias.
135 135
      *
136 136
      * @param SiteAliasInterface $siteAlias
137
-     * @return TransportInterface
137
+     * @return Transport\TransportInterface
138 138
      */
139 139
     public function getTransport(SiteAliasInterface $siteAlias)
140 140
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Consolidation\SiteProcess;
4 4
 
5
-use Psr\Log\LoggerInterface;
6 5
 use Consolidation\SiteAlias\SiteAliasInterface;
7 6
 use Consolidation\SiteProcess\Factory\SshTransportFactory;
8 7
 use Consolidation\SiteProcess\Factory\DockerComposeTransportFactory;
Please login to merge, or discard this patch.
src/SiteProcess.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,6 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,10 +2,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Util/ArgumentProcessor.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.