diff options
author | Robin Appelman <robin@icewind.nl> | 2017-10-19 13:50:27 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-12-08 16:37:14 +0100 |
commit | 8b01176f60ee85582d467ca9b66aa8fbecd3e54d (patch) | |
tree | 668c4672c34d0be0adc0787d71492e1d337ef6ed /lib/private/Remote/Instance.php | |
parent | 5133a31d3c713e3e3c562e6fcd131ed2738d8798 (diff) | |
download | nextcloud-server-8b01176f60ee85582d467ca9b66aa8fbecd3e54d.tar.gz nextcloud-server-8b01176f60ee85582d467ca9b66aa8fbecd3e54d.zip |
add more typehints
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Remote/Instance.php')
-rw-r--r-- | lib/private/Remote/Instance.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/Remote/Instance.php b/lib/private/Remote/Instance.php index ab0081d86cf..0ed301ae868 100644 --- a/lib/private/Remote/Instance.php +++ b/lib/private/Remote/Instance.php @@ -39,6 +39,7 @@ class Instance implements IInstance { /** @var IClientService */ private $clientService; + /** @var array|null */ private $status; /** @@ -93,6 +94,10 @@ class Instance implements IInstance { return $status['installed'] && !$status['maintenance']; } + /** + * @return array + * @throws NotFoundException + */ private function getStatus() { if ($this->status) { return $this->status; @@ -120,6 +125,10 @@ class Instance implements IInstance { return $status; } + /** + * @param string $url + * @return bool|string + */ private function downloadStatus($url) { try { $request = $this->clientService->newClient()->get($url); |