@@ -89,6 +89,9 @@ |
||
| 89 | 89 | $this->user = $user; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param string $tagId |
|
| 94 | + */ |
|
| 92 | 95 | function createFile($tagId, $data = null) { |
| 93 | 96 | try { |
| 94 | 97 | $tags = $this->tagManager->getTagsByIds([$tagId]); |
@@ -273,6 +273,10 @@ discard block |
||
| 273 | 273 | return '/^' . preg_quote($this->config->getSystemValue('dbtableprefix', 'oc_')) . '/'; |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | + /** |
|
| 277 | + * @param integer $step |
|
| 278 | + * @param integer $max |
|
| 279 | + */ |
|
| 276 | 280 | protected function emit($sql, $step, $max) { |
| 277 | 281 | if ($this->noEmit) { |
| 278 | 282 | return; |
@@ -283,6 +287,10 @@ discard block |
||
| 283 | 287 | $this->dispatcher->dispatch('\OC\DB\Migrator::executeSql', new GenericEvent($sql, [$step+1, $max])); |
| 284 | 288 | } |
| 285 | 289 | |
| 290 | + /** |
|
| 291 | + * @param integer $step |
|
| 292 | + * @param integer $max |
|
| 293 | + */ |
|
| 286 | 294 | private function emitCheckStep($tableName, $step, $max) { |
| 287 | 295 | if(is_null($this->dispatcher)) { |
| 288 | 296 | return; |
@@ -103,6 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | 105 | * Chceks if the ownCloud server can connect to a specific URL using both HTTPS and HTTP |
| 106 | + * @param string $sitename |
|
| 106 | 107 | * @return bool |
| 107 | 108 | */ |
| 108 | 109 | private function isSiteReachable($sitename) { |
@@ -285,7 +286,7 @@ discard block |
||
| 285 | 286 | |
| 286 | 287 | /** |
| 287 | 288 | * @NoCSRFRequired |
| 288 | - * @return DataResponse |
|
| 289 | + * @return DataDisplayResponse |
|
| 289 | 290 | */ |
| 290 | 291 | public function getFailedIntegrityCheckFiles() { |
| 291 | 292 | if(!$this->checker->isCodeCheckEnforced()) { |
@@ -1104,7 +1104,7 @@ |
||
| 1104 | 1104 | } |
| 1105 | 1105 | |
| 1106 | 1106 | /** |
| 1107 | - * @param array $reqs |
|
| 1107 | + * @param string[] $reqs |
|
| 1108 | 1108 | * @return bool |
| 1109 | 1109 | */ |
| 1110 | 1110 | private function checkRequirements($reqs) { |
@@ -151,7 +151,6 @@ |
||
| 151 | 151 | /** |
| 152 | 152 | * saves database schema to xml file |
| 153 | 153 | * @param string $file name of file |
| 154 | - * @param int $mode |
|
| 155 | 154 | * @return bool |
| 156 | 155 | * |
| 157 | 156 | * TODO: write more documentation |
@@ -334,7 +334,7 @@ |
||
| 334 | 334 | * |
| 335 | 335 | * @param int $size file size in bytes |
| 336 | 336 | * @param array $files override '.htaccess' and '.user.ini' locations |
| 337 | - * @return bool false on failure, size on success |
|
| 337 | + * @return integer false on failure, size on success |
|
| 338 | 338 | */ |
| 339 | 339 | public static function setUploadLimit($size, $files = []) { |
| 340 | 340 | //don't allow user to break his config |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * |
| 73 | 73 | * @NoAdminRequired |
| 74 | 74 | * @NoSubadminRequired |
| 75 | - * @return array |
|
| 75 | + * @return DataResponse |
|
| 76 | 76 | */ |
| 77 | 77 | public function addPersonalRootCertificate() { |
| 78 | 78 | return $this->addCertificate($this->userCertificateManager); |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | /** |
| 161 | 161 | * Add a new personal root certificate to the system's trust store |
| 162 | 162 | * |
| 163 | - * @return array |
|
| 163 | + * @return DataResponse |
|
| 164 | 164 | */ |
| 165 | 165 | public function addSystemRootCertificate() { |
| 166 | 166 | return $this->addCertificate($this->systemCertificateManager); |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | /** |
| 135 | - * @param $message |
|
| 135 | + * @param string $message |
|
| 136 | 136 | * @param array $additional |
| 137 | 137 | * @return array |
| 138 | 138 | */ |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * get color for on-page elements: |
| 54 | 54 | * theme color by default, grey if theme color is to bright |
| 55 | - * @param $color |
|
| 55 | + * @param string $color |
|
| 56 | 56 | * @return string |
| 57 | 57 | */ |
| 58 | 58 | public function elementColor($color) { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * @param $color |
|
| 86 | + * @param string $color |
|
| 87 | 87 | * @return string base64 encoded radio button svg |
| 88 | 88 | */ |
| 89 | 89 | public function generateRadioButton($color) { |
@@ -152,8 +152,8 @@ discard block |
||
| 152 | 152 | /** |
| 153 | 153 | * replace default color with a custom one |
| 154 | 154 | * |
| 155 | - * @param $svg string content of a svg file |
|
| 156 | - * @param $color string color to match |
|
| 155 | + * @param string $svg string content of a svg file |
|
| 156 | + * @param string $color string color to match |
|
| 157 | 157 | * @return string |
| 158 | 158 | */ |
| 159 | 159 | public function colorizeSvg($svg, $color) { |