@@ -23,6 +23,8 @@ |
||
| 23 | 23 | * @param $url |
| 24 | 24 | * @param string $contentType |
| 25 | 25 | * @param string $filename |
| 26 | + * @param string $username |
|
| 27 | + * @param string $password |
|
| 26 | 28 | * @return string |
| 27 | 29 | */ |
| 28 | 30 | public function curl($url, $contentType = null, $filename = null, $cacheTimeInSeconds = 0, $username = null, $password = null) |
@@ -2,10 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Kunstmaan\Skylab\Command; |
| 4 | 4 | |
| 5 | -use Symfony\Component\Console\Helper\TableSeparator; |
|
| 6 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 7 | -use Symfony\Component\Console\Input\InputOption; |
|
| 8 | - |
|
| 9 | 5 | class ShareCommand extends AbstractCommand |
| 10 | 6 | { |
| 11 | 7 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | /** |
| 95 | 95 | * @param string $question The question text |
| 96 | 96 | * @param bool $default The default action |
| 97 | - * @return bool |
|
| 97 | + * @return string |
|
| 98 | 98 | */ |
| 99 | 99 | public function askConfirmation($question, $default = true) |
| 100 | 100 | { |
@@ -211,6 +211,7 @@ discard block |
||
| 211 | 211 | |
| 212 | 212 | /** |
| 213 | 213 | * @param $rows |
| 214 | + * @param string[] $headers |
|
| 214 | 215 | */ |
| 215 | 216 | public function renderTable($headers, $rows) |
| 216 | 217 | { |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | * @param bool $silent Be silent or not |
| 53 | 53 | * @param string $sudoAs Sudo as a different user then the root user |
| 54 | 54 | * |
| 55 | - * @return bool|string |
|
| 55 | + * @return string |
|
| 56 | 56 | */ |
| 57 | 57 | public function executeSudoCommand($command, $silent = false, $sudoAs = null) |
| 58 | 58 | { |
@@ -79,6 +79,9 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $configcontent |
|
| 84 | + */ |
|
| 82 | 85 | private function fixApache24Compat($configcontent){ |
| 83 | 86 | if (strpos($configcontent, "Require all granted") === false) { |
| 84 | 87 | return preg_replace('/(<Directory.*\ >)(.*)(<\/Directory>)/s', "\${1}\nOptions -Indexes +MultiViews +Includes +FollowSymLinks\nAllowOverride All\n<IfVersion < 2.4>\nOrder allow,deny\nAllow from all\n</IfVersion>\n<IfVersion >= 2.4>\nRequire all granted\n</IfVersion>\n\${3}", $configcontent); |
@@ -257,9 +260,9 @@ discard block |
||
| 257 | 260 | } |
| 258 | 261 | |
| 259 | 262 | /** |
| 260 | - * @param $location |
|
| 261 | - * @param $cleanedLocation |
|
| 262 | - * @param $target |
|
| 263 | + * @param string $location |
|
| 264 | + * @param string $cleanedLocation |
|
| 265 | + * @param string $target |
|
| 263 | 266 | */ |
| 264 | 267 | private function renderConfig($location, $cleanedLocation, $target) |
| 265 | 268 | { |