@@ -21,11 +21,8 @@ |
||
21 | 21 | |
22 | 22 | namespace Owncloud\Updater\Command; |
23 | 23 | |
24 | -use Symfony\Component\Console\Input\InputArgument; |
|
25 | 24 | use Symfony\Component\Console\Input\InputInterface; |
26 | -use Symfony\Component\Console\Input\InputOption; |
|
27 | 25 | use Symfony\Component\Console\Output\OutputInterface; |
28 | - |
|
29 | 26 | use Owncloud\Updater\Utils\Collection; |
30 | 27 | |
31 | 28 | class CheckSystemCommand extends Command { |
@@ -21,7 +21,6 @@ |
||
21 | 21 | |
22 | 22 | namespace Owncloud\Updater\Command; |
23 | 23 | |
24 | -use Symfony\Component\Console\Input\InputArgument; |
|
25 | 24 | use Symfony\Component\Console\Input\InputInterface; |
26 | 25 | use Symfony\Component\Console\Input\InputOption; |
27 | 26 | use Symfony\Component\Console\Output\OutputInterface; |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * Get a value from OC config by |
50 | 50 | * path key1.key2.key3 |
51 | 51 | * @param string $path |
52 | - * @return mixed |
|
52 | + * @return string |
|
53 | 53 | */ |
54 | 54 | public function getByPath($path){ |
55 | 55 | return $this->get(explode('.', $path)); |
@@ -30,6 +30,9 @@ |
||
30 | 30 | protected $file; |
31 | 31 | protected $path; |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $path |
|
35 | + */ |
|
33 | 36 | public function __construct($file, $path){ |
34 | 37 | $this->file = $file; |
35 | 38 | $this->path = $path; |
@@ -341,6 +341,10 @@ |
||
341 | 341 | return $file; |
342 | 342 | } |
343 | 343 | |
344 | + /** |
|
345 | + * @param string $class |
|
346 | + * @param string $ext |
|
347 | + */ |
|
344 | 348 | private function findFileWithExtension($class, $ext) |
345 | 349 | { |
346 | 350 | // PSR-4 lookup |
@@ -102,7 +102,7 @@ |
||
102 | 102 | /** |
103 | 103 | * Get the associated response |
104 | 104 | * |
105 | - * @return ResponseInterface|null |
|
105 | + * @return ResponseInterface |
|
106 | 106 | */ |
107 | 107 | public function getResponse() |
108 | 108 | { |
@@ -165,7 +165,7 @@ |
||
165 | 165 | * @param MessageInterface $message That contains the header |
166 | 166 | * @param string $header Header to retrieve from the message |
167 | 167 | * |
168 | - * @return array Returns the normalized header field values. |
|
168 | + * @return string[] Returns the normalized header field values. |
|
169 | 169 | */ |
170 | 170 | public static function normalizeHeader(MessageInterface $message, $header) |
171 | 171 | { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * host header, and URI are parsed from the full URL. If query string |
29 | 29 | * parameters are present they will be parsed as well. |
30 | 30 | * @param array|Collection $headers HTTP headers |
31 | - * @param mixed $body Body to send with the request |
|
31 | + * @param null|\GuzzleHttp\Stream\Stream $body Body to send with the request |
|
32 | 32 | * @param array $options Array of options to use with the request |
33 | 33 | * - emitter: Event emitter to use with the request |
34 | 34 | */ |
@@ -83,7 +83,7 @@ |
||
83 | 83 | private $effectiveUrl; |
84 | 84 | |
85 | 85 | /** |
86 | - * @param int|string $statusCode The response status code (e.g. 200) |
|
86 | + * @param string $statusCode The response status code (e.g. 200) |
|
87 | 87 | * @param array $headers The response headers |
88 | 88 | * @param StreamInterface $body The body of the response |
89 | 89 | * @param array $options Response message options |