@@ -9,6 +9,9 @@ |
||
9 | 9 | private $handle; |
10 | 10 | private $columns; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $filename |
|
14 | + */ |
|
12 | 15 | public function __construct($filename) { |
13 | 16 | $this->filename = $filename; |
14 | 17 | } |
@@ -18,9 +18,6 @@ |
||
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @param string $command The command |
21 | - * @param boolean $throwException If true, an Exception will be thrown on a nonzero error code |
|
22 | - * @param boolean $returnOutput If true, output will be captured |
|
23 | - * @param boolean $inputContent Content for STDIN. Otherwise the parent script's STDIN is used |
|
24 | 21 | * @return A map containing 'return', 'output', and 'error' |
25 | 22 | */ |
26 | 23 | public function execLocal($command, $options = array()) { |
@@ -23,6 +23,10 @@ discard block |
||
23 | 23 | public function isLocal() { |
24 | 24 | return $this->server == null; |
25 | 25 | } |
26 | + |
|
27 | + /** |
|
28 | + * @return string|null |
|
29 | + */ |
|
26 | 30 | public function getPath() { |
27 | 31 | return $this->path; |
28 | 32 | } |
@@ -59,7 +63,6 @@ discard block |
||
59 | 63 | |
60 | 64 | /** |
61 | 65 | * Upload a file to the given destination on the server |
62 | - * @param string $file The file to upload |
|
63 | 66 | * @param string $dest The remote filename/dir to upload to |
64 | 67 | */ |
65 | 68 | public function upload($source, $dest) { |
@@ -348,6 +348,11 @@ discard block |
||
348 | 348 | return true; |
349 | 349 | } |
350 | 350 | |
351 | + /** |
|
352 | + * @param Webroot $webroot |
|
353 | + * @param SSPakFile $sspak |
|
354 | + * @param string $filename |
|
355 | + */ |
|
351 | 356 | public function getassets($webroot, $assetsPath, $sspak, $filename) { |
352 | 357 | $assetsParentArg = escapeshellarg(dirname($assetsPath)); |
353 | 358 | $assetsBaseArg = escapeshellarg(basename($assetsPath)); |
@@ -356,6 +361,11 @@ discard block |
||
356 | 361 | $sspak->writeFileFromProcess($filename, $process); |
357 | 362 | } |
358 | 363 | |
364 | + /** |
|
365 | + * @param Webroot $webroot |
|
366 | + * @param SSPakFile $sspak |
|
367 | + * @param string $gitRemoteFile |
|
368 | + */ |
|
359 | 369 | public function getgitremote($webroot, $sspak, $gitRemoteFile) { |
360 | 370 | // Only do anything if we're copying from a git checkout |
361 | 371 | $gitRepo = $webroot->getPath() .'/.git'; |
@@ -68,9 +68,8 @@ discard block |
||
68 | 68 | |
69 | 69 | /** |
70 | 70 | * Put the database from the given sspak file into this webroot. |
71 | - * @param array $details The previously sniffed details of this webroot |
|
72 | 71 | * @param bool $dropdb Drop the DB prior to install |
73 | - * @param string $sspakFile Filename |
|
72 | + * @param SSPakFile $sspak Filename |
|
74 | 73 | */ |
75 | 74 | public function putdb($sspak, $dropdb) { |
76 | 75 | $details = $this->details(); |
@@ -138,7 +137,7 @@ discard block |
||
138 | 137 | } |
139 | 138 | |
140 | 139 | /** |
141 | - * @param $sspak SSPakFile SSPak file to extract assets from |
|
140 | + * @param SSPakFile $sspak SSPakFile SSPak file to extract assets from |
|
142 | 141 | * @todo There should be a return value or exception thrown to indicate success or failure to put assets |
143 | 142 | */ |
144 | 143 | public function putassets($sspak) { |