@@ -96,7 +96,7 @@ |
||
| 96 | 96 | /** |
| 97 | 97 | * Appends a variable |
| 98 | 98 | * @param string $key key |
| 99 | - * @param mixed $value value |
|
| 99 | + * @param string $value value |
|
| 100 | 100 | * @return boolean|null |
| 101 | 101 | * |
| 102 | 102 | * This function assigns a variable in an array context. If the key already |
@@ -73,8 +73,6 @@ |
||
| 73 | 73 | /** |
| 74 | 74 | * save the configuration value as provided |
| 75 | 75 | * @param string $configID |
| 76 | - * @param string $configKey |
|
| 77 | - * @param string $configValue |
|
| 78 | 76 | */ |
| 79 | 77 | protected function setValue($configID, $key, $value) { |
| 80 | 78 | $configHolder = new Configuration($configID); |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | - * @return int |
|
| 71 | + * @return string |
|
| 72 | 72 | */ |
| 73 | 73 | static private function getRefreshInterval() { |
| 74 | 74 | //defaults to every hour |
@@ -26,11 +26,8 @@ |
||
| 26 | 26 | use OCA\Files_external\NotFoundException; |
| 27 | 27 | use OCA\Files_external\Service\GlobalStoragesService; |
| 28 | 28 | use Symfony\Component\Console\Command\Command; |
| 29 | -use Symfony\Component\Console\Helper\Table; |
|
| 30 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 31 | 29 | use Symfony\Component\Console\Input\InputArgument; |
| 32 | 30 | use Symfony\Component\Console\Input\InputInterface; |
| 33 | -use Symfony\Component\Console\Input\InputOption; |
|
| 34 | 31 | use Symfony\Component\Console\Output\OutputInterface; |
| 35 | 32 | |
| 36 | 33 | class Config extends Base { |
@@ -144,6 +144,9 @@ |
||
| 144 | 144 | return true; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $path |
|
| 149 | + */ |
|
| 147 | 150 | public function url_stat($path) { |
| 148 | 151 | if (isset(self::$data[$path])) { |
| 149 | 152 | $size = strlen(self::$data[$path]); |
@@ -144,6 +144,9 @@ |
||
| 144 | 144 | return true; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $path |
|
| 149 | + */ |
|
| 147 | 150 | public function url_stat($path) { |
| 148 | 151 | if (isset(self::$data[$path])) { |
| 149 | 152 | $size = strlen(self::$data[$path]); |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use OCP\IUser; |
| 28 | 28 | use OCP\ILogger; |
| 29 | 29 | use OCP\Files\Folder; |
| 30 | - |
|
| 31 | 30 | use OC\Share20\Exception\ShareNotFound; |
| 32 | 31 | |
| 33 | 32 | /** |
@@ -327,7 +327,7 @@ |
||
| 327 | 327 | * split user and remote from federated cloud id |
| 328 | 328 | * |
| 329 | 329 | * @param string $address federated share address |
| 330 | - * @return array [user, remoteURL] |
|
| 330 | + * @return string[] [user, remoteURL] |
|
| 331 | 331 | * @throws \Exception |
| 332 | 332 | */ |
| 333 | 333 | public function splitUserRemote($address) { |
@@ -28,6 +28,9 @@ |
||
| 28 | 28 | |
| 29 | 29 | protected $mounts = []; |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string $mountPoint |
|
| 33 | + */ |
|
| 31 | 34 | protected function registerMount($userId, $storage, $mountPoint, $arguments = null) { |
| 32 | 35 | if (!isset($this->mounts[$userId])) { |
| 33 | 36 | $this->mounts[$userId] = []; |