Completed
Pull Request — master (#26303)
by Philipp
12:52
created
lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -360,7 +360,7 @@
 block discarded – undo
360 360
 	 *
361 361
 	 * @param string $column
362 362
 	 * @param mixed $type One of IQueryBuilder::PARAM_*
363
-	 * @return string
363
+	 * @return QueryFunction
364 364
 	 */
365 365
 	public function castColumn($column, $type) {
366 366
 		return new QueryFunction(
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Storage/SMB.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -260,6 +260,9 @@  discard block
 block discarded – undo
260 260
 		return $this->leave(__FUNCTION__, $result);
261 261
 	}
262 262
 
263
+	/**
264
+	 * @param string $path
265
+	 */
263 266
 	private function removeFromCache($path) {
264 267
 		$path = trim($path, '/');
265 268
 		// TODO The CappedCache does not really clear by prefix. It just clears all.
@@ -632,7 +635,7 @@  discard block
 block discarded – undo
632 635
 	 * if wnd.logging.enable is set to true in the config will log a leave line
633 636
 	 * with the given function, the return value or the exception
634 637
 	 *
635
-	 * @param $function
638
+	 * @param string $function
636 639
 	 * @param mixed $result an exception will be logged and then returned
637 640
 	 * @return mixed
638 641
 	 */
@@ -659,6 +662,9 @@  discard block
 block discarded – undo
659 662
 		return $result;
660 663
 	}
661 664
 
665
+	/**
666
+	 * @param string $function
667
+	 */
662 668
 	private function swallow($function, \Exception $exception) {
663 669
 		if (\OC::$server->getConfig()->getSystemValue('wnd.logging.enable', false) === true) {
664 670
 			Util::writeLog('wnd', "$function swallowing ".get_class($exception)
Please login to merge, or discard this patch.
lib/private/AppFramework/Http/Request.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -448,7 +448,7 @@
 block discarded – undo
448 448
 
449 449
 	/**
450 450
 	 * Checks if the CSRF check was correct
451
-	 * @return bool true if CSRF check passed
451
+	 * @return null|boolean true if CSRF check passed
452 452
 	 */
453 453
 	public function passesCSRFCheck() {
454 454
 		if($this->csrfTokenManager === null) {
Please login to merge, or discard this patch.
core/Controller/OccController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,8 +131,8 @@
 block discarded – undo
131 131
 
132 132
 	/**
133 133
 	 * Check if command is allowed and has a valid security token
134
-	 * @param $command
135
-	 * @param $token
134
+	 * @param string $command
135
+	 * @param string $token
136 136
 	 */
137 137
 	protected function validateRequest($command, $token){
138 138
 		$allowedHosts = ['::1', '127.0.0.1', 'localhost'];
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/ShareTypeList.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 	 * The deserialize method is called during xml parsing.
61 61
 	 *
62 62
 	 * @param Reader $reader
63
-	 * @return mixed
63
+	 * @return null|ShareTypeList
64 64
 	 */
65 65
 	static function xmlDeserialize(Reader $reader) {
66 66
 		$shareTypes = [];
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/TagList.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 	 * the next element.
80 80
 	 *
81 81
 	 * @param Reader $reader
82
-	 * @return mixed
82
+	 * @return null|TagList
83 83
 	 */
84 84
 	static function xmlDeserialize(Reader $reader) {
85 85
 		$tags = [];
Please login to merge, or discard this patch.
lib/private/Files/External/Service/StoragesService.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
apps/dav/lib/CardDAV/AddressBookImpl.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 	 * @param AddressBook $addressBook
52 52
 	 * @param array $addressBookInfo
53 53
 	 * @param CardDavBackend $backend
54
-	 * @param IUrlGenerator $urlGenerator
54
+	 * @param IURLGenerator $urlGenerator
55 55
 	 */
56 56
 	public function __construct(
57 57
 			AddressBook $addressBook,
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	}
135 135
 
136 136
 	/**
137
-	 * @return mixed
137
+	 * @return integer
138 138
 	 * @since 5.0.0
139 139
 	 */
140 140
 	public function getPermissions() {
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 	 * read vCard data into a vCard object
173 173
 	 *
174 174
 	 * @param string $cardData
175
-	 * @return VCard
175
+	 * @return \Sabre\VObject\Parser\Sabre\VObject\Document|null
176 176
 	 */
177 177
 	protected function readCard($cardData) {
178 178
 		return  Reader::read($cardData);
Please login to merge, or discard this patch.
apps/dav/lib/CardDAV/CardDavBackend.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -189,7 +189,8 @@  discard block
 block discarded – undo
189 189
 	}
190 190
 
191 191
 	/**
192
-	 * @param $addressBookUri
192
+	 * @param string $addressBookUri
193
+	 * @param string $principal
193 194
 	 * @return array|null
194 195
 	 */
195 196
 	public function getAddressBooksByUri($principal, $addressBookUri) {
@@ -871,6 +872,7 @@  discard block
 block discarded – undo
871 872
 	 *   * readOnly - boolean
872 873
 	 *   * summary - Optional, a description for the share
873 874
 	 *
875
+	 * @param integer $addressBookId
874 876
 	 * @return array
875 877
 	 */
876 878
 	public function getShares($addressBookId) {
@@ -924,7 +926,7 @@  discard block
 block discarded – undo
924 926
 	 * read vCard data into a vCard object
925 927
 	 *
926 928
 	 * @param string $cardData
927
-	 * @return VCard
929
+	 * @return \Sabre\VObject\Parser\Sabre\VObject\Document|null
928 930
 	 */
929 931
 	protected function readCard($cardData) {
930 932
 		return  Reader::read($cardData);
@@ -970,7 +972,7 @@  discard block
 block discarded – undo
970 972
 
971 973
 	/**
972 974
 	 * For shared address books the sharee is set in the ACL of the address book
973
-	 * @param $addressBookId
975
+	 * @param integer $addressBookId
974 976
 	 * @param $acl
975 977
 	 * @return array
976 978
 	 */
@@ -978,6 +980,9 @@  discard block
 block discarded – undo
978 980
 		return $this->sharingBackend->applyShareAcl($addressBookId, $acl);
979 981
 	}
980 982
 
983
+	/**
984
+	 * @param boolean $toV2
985
+	 */
981 986
 	private function convertPrincipal($principalUri, $toV2) {
982 987
 		if ($this->principalBackend->getPrincipalPrefix() === 'principals') {
983 988
 			list(, $name) = URLUtil::splitPath($principalUri);
Please login to merge, or discard this patch.