@@ -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 |
@@ -864,7 +864,7 @@ discard block |
||
| 864 | 864 | * @param integer $filterType int, for which use case the filter shall be created |
| 865 | 865 | * can be any of self::LFILTER_USER_LIST, self::LFILTER_LOGIN or |
| 866 | 866 | * self::LFILTER_GROUP_LIST |
| 867 | - * @return string|false string with the filter on success, false otherwise |
|
| 867 | + * @return string string with the filter on success, false otherwise |
|
| 868 | 868 | * @throws \Exception |
| 869 | 869 | */ |
| 870 | 870 | private function composeLdapFilter($filterType) { |
@@ -1107,7 +1107,7 @@ discard block |
||
| 1107 | 1107 | } |
| 1108 | 1108 | |
| 1109 | 1109 | /** |
| 1110 | - * @param array $reqs |
|
| 1110 | + * @param string[] $reqs |
|
| 1111 | 1111 | * @return bool |
| 1112 | 1112 | */ |
| 1113 | 1113 | private function checkRequirements($reqs) { |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * List all installed apps |
| 90 | 90 | * |
| 91 | - * @return string[] |
|
| 91 | + * @return integer[] |
|
| 92 | 92 | */ |
| 93 | 93 | public function getInstalledApps() { |
| 94 | 94 | return array_keys($this->getInstalledAppsValues()); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | /** |
| 217 | 217 | * Returns a list of apps that need upgrade |
| 218 | 218 | * |
| 219 | - * @param array $version ownCloud version as array of version components |
|
| 219 | + * @param array $ocVersion ownCloud version as array of version components |
|
| 220 | 220 | * @return array list of app info from apps that need an upgrade |
| 221 | 221 | * |
| 222 | 222 | * @internal |
@@ -289,6 +289,9 @@ discard block |
||
| 289 | 289 | return in_array($appId, $this->shippedApps); |
| 290 | 290 | } |
| 291 | 291 | |
| 292 | + /** |
|
| 293 | + * @param string $appId |
|
| 294 | + */ |
|
| 292 | 295 | private function isAlwaysEnabled($appId) { |
| 293 | 296 | $alwaysEnabled = $this->getAlwaysEnabledApps(); |
| 294 | 297 | return in_array($appId, $alwaysEnabled); |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | * If an SQLLogger is configured, the execution is logged. |
| 168 | 168 | * |
| 169 | 169 | * @param string $query The SQL query to execute. |
| 170 | - * @param array $params The parameters to bind to the query, if any. |
|
| 170 | + * @param string[] $params The parameters to bind to the query, if any. |
|
| 171 | 171 | * @param array $types The types the previous parameters are in. |
| 172 | 172 | * @param \Doctrine\DBAL\Cache\QueryCacheProfile|null $qcp The query cache profile, optional. |
| 173 | 173 | * |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * columns or sequences. |
| 213 | 213 | * |
| 214 | 214 | * @param string $seqName Name of the sequence object from which the ID should be returned. |
| 215 | - * @return string A string representation of the last inserted ID. |
|
| 215 | + * @return integer A string representation of the last inserted ID. |
|
| 216 | 216 | */ |
| 217 | 217 | public function lastInsertId($seqName = null) |
| 218 | 218 | { |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | * send a message to the client |
| 89 | 89 | * |
| 90 | 90 | * @param string $type |
| 91 | - * @param mixed $data |
|
| 91 | + * @param string $data |
|
| 92 | 92 | * |
| 93 | 93 | * @throws \BadMethodCallException |
| 94 | 94 | * if only one parameter is given, a typeless message will be send with that parameter as data |
@@ -777,7 +777,7 @@ |
||
| 777 | 777 | /** |
| 778 | 778 | * check if path points to a files version |
| 779 | 779 | * |
| 780 | - * @param $path |
|
| 780 | + * @param string $path |
|
| 781 | 781 | * @return bool |
| 782 | 782 | */ |
| 783 | 783 | protected function isVersion($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]); |
@@ -197,6 +197,9 @@ discard block |
||
| 197 | 197 | return self::linkToRoute( 'core_ajax_preview', array('x' => 32, 'y' => 32, 'file' => $path )); |
| 198 | 198 | } |
| 199 | 199 | |
| 200 | + /** |
|
| 201 | + * @param string $path |
|
| 202 | + */ |
|
| 200 | 203 | public static function publicPreviewIcon( $path, $token ) { |
| 201 | 204 | return self::linkToRoute( 'core_ajax_public_preview', array('x' => 32, 'y' => 32, 'file' => $path, 't' => $token)); |
| 202 | 205 | } |
@@ -827,7 +830,7 @@ discard block |
||
| 827 | 830 | * |
| 828 | 831 | * @param string $path |
| 829 | 832 | * @param \OCP\Files\FileInfo $rootInfo (optional) |
| 830 | - * @return array |
|
| 833 | + * @return string |
|
| 831 | 834 | * @throws \OCP\Files\NotFoundException |
| 832 | 835 | */ |
| 833 | 836 | public static function getStorageInfo($path, $rootInfo = null) { |