@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
124 | - * @return array |
|
124 | + * @return string[] |
|
125 | 125 | */ |
126 | 126 | public function getAllAliases() { |
127 | 127 | $this->loadAliases(); |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | |
265 | 265 | /** |
266 | 266 | * Get path to the icon of a file type |
267 | - * @param string $mimeType the MIME type |
|
267 | + * @param string $mimetype the MIME type |
|
268 | 268 | * @return string the url |
269 | 269 | */ |
270 | 270 | public function mimeTypeIcon($mimetype) { |
@@ -23,7 +23,6 @@ |
||
23 | 23 | |
24 | 24 | use OCP\Files\IMimeTypeLoader; |
25 | 25 | use OCP\IDBConnection; |
26 | - |
|
27 | 26 | use Doctrine\DBAL\Exception\UniqueConstraintViolationException; |
28 | 27 | |
29 | 28 | /** |
@@ -106,7 +106,7 @@ |
||
106 | 106 | * Removes a user from a group |
107 | 107 | * @param string $uid Name of the user to remove from group |
108 | 108 | * @param string $gid Name of the group from which remove the user |
109 | - * @return bool |
|
109 | + * @return null|false |
|
110 | 110 | * |
111 | 111 | * removes the user from a group. |
112 | 112 | */ |
@@ -144,6 +144,9 @@ |
||
144 | 144 | return $this->getGroupObject($gid); |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $gid |
|
149 | + */ |
|
147 | 150 | protected function getGroupObject($gid) { |
148 | 151 | $backends = array(); |
149 | 152 | foreach ($this->backends as $backend) { |
@@ -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) { |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | } |
300 | 300 | |
301 | 301 | /** |
302 | - * @return resource Returns the image resource in any. |
|
302 | + * @return boolean Returns the image resource in any. |
|
303 | 303 | */ |
304 | 304 | public function resource() { |
305 | 305 | return $this->resource; |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | * It is the responsibility of the caller to position the pointer at the correct place and to close the handle again. |
475 | 475 | * |
476 | 476 | * @param resource $handle |
477 | - * @return resource|false An image resource or false on error |
|
477 | + * @return boolean An image resource or false on error |
|
478 | 478 | */ |
479 | 479 | public function loadFromFileHandle($handle) { |
480 | 480 | $contents = stream_get_contents($handle); |
@@ -1023,6 +1023,7 @@ discard block |
||
1023 | 1023 | * @param string $fileName [optional] <p>The path to save the file to.</p> |
1024 | 1024 | * @param int $bit [optional] <p>Bit depth, (default is 24).</p> |
1025 | 1025 | * @param int $compression [optional] |
1026 | + * @param boolean $im |
|
1026 | 1027 | * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. |
1027 | 1028 | */ |
1028 | 1029 | function imagebmp($im, $fileName = '', $bit = 24, $compression = 0) { |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
138 | - * @param $transFile |
|
138 | + * @param string $transFile |
|
139 | 139 | * @param bool $mergeTranslations |
140 | 140 | * @return bool |
141 | 141 | */ |
@@ -517,6 +517,9 @@ discard block |
||
517 | 517 | return Punic\Calendar::getFirstWeekday($locale); |
518 | 518 | } |
519 | 519 | |
520 | + /** |
|
521 | + * @param string $locale |
|
522 | + */ |
|
520 | 523 | private function transformToCLDRLocale($locale) { |
521 | 524 | if ($locale === 'sr@latin') { |
522 | 525 | return 'sr_latn'; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * Set the Reply-To address of this message |
97 | 97 | * |
98 | - * @param array $addresses |
|
98 | + * @param string[] $addresses |
|
99 | 99 | * @return $this |
100 | 100 | */ |
101 | 101 | public function setReplyTo(array $addresses) { |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | /** |
162 | 162 | * Set the BCC recipients of this message. |
163 | 163 | * |
164 | - * @param array $recipients Example: array('[email protected]', '[email protected]' => 'A name') |
|
164 | + * @param string[] $recipients Example: array('[email protected]', '[email protected]' => 'A name') |
|
165 | 165 | * @return $this |
166 | 166 | */ |
167 | 167 | public function setBcc(array $recipients) { |
@@ -64,7 +64,7 @@ |
||
64 | 64 | * Set a value in the cache if it's not already stored |
65 | 65 | * |
66 | 66 | * @param string $key |
67 | - * @param mixed $value |
|
67 | + * @param integer $value |
|
68 | 68 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
69 | 69 | * @return bool |
70 | 70 | */ |