Completed
Pull Request — master (#24813)
by Robin
10:03
created
apps/user_ldap/command/setconfig.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,6 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
apps/user_ldap/lib/jobs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
apps/user_ldap/lib/wizard.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -864,7 +864,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
apps/files_sharing/lib/external/manager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@
 block discarded – undo
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] = [];
Please login to merge, or discard this patch.
lib/private/legacy/l10n.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -329,7 +329,7 @@
 block discarded – undo
329 329
 	/**
330 330
 	 * find all available languages for an app
331 331
 	 * @param string $app App that needs to be translated
332
-	 * @return array an array of available languages
332
+	 * @return string[] an array of available languages
333 333
 	 * @deprecated 9.0.0 Use \OC::$server->getL10NFactory()->findAvailableLanguages() instead
334 334
 	 */
335 335
 	public static function findAvailableLanguages($app=null) {
Please login to merge, or discard this patch.
apps/user_ldap/lib/access.php 1 patch
Doc Comments   +11 added lines, -9 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 
394 394
 	/**
395 395
 	 * returns the internal ownCloud name for the given LDAP DN of the user, false on DN outside of search DN or failure
396
-	 * @param string $dn the dn of the user object
396
+	 * @param string $fdn the dn of the user object
397 397
 	 * @param string $ldapName optional, the display name of the object
398 398
 	 * @return string|false with with the name to use in ownCloud
399 399
 	 */
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
 
411 411
 	/**
412 412
 	 * returns an internal ownCloud name for the given LDAP DN, false on DN outside of search DN
413
-	 * @param string $dn the dn of the user object
413
+	 * @param string $fdn the dn of the user object
414 414
 	 * @param string $ldapName optional, the display name of the object
415 415
 	 * @param bool $isUser optional, whether it is a user object (otherwise group assumed)
416 416
 	 * @return string|false with with the name to use in ownCloud
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
 	 * the login filter.
666 666
 	 *
667 667
 	 * @param string $loginName
668
-	 * @param array $attributes optional, list of attributes to read
668
+	 * @param string[] $attributes optional, list of attributes to read
669 669
 	 * @return array
670 670
 	 */
671 671
 	public function fetchUsersByLoginName($loginName, $attributes = array('dn')) {
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
 
732 732
 	/**
733 733
 	 * @param string $filter
734
-	 * @param string|string[] $attr
734
+	 * @param string[] $attr
735 735
 	 * @param int $limit
736 736
 	 * @param int $offset
737 737
 	 * @return array
@@ -779,7 +779,7 @@  discard block
 block discarded – undo
779 779
 
780 780
 	/**
781 781
 	 * @param string $filter
782
-	 * @param string|string[] $attr
782
+	 * @param string[] $attr
783 783
 	 * @param int $limit
784 784
 	 * @param int $offset
785 785
 	 * @return false|int
@@ -829,6 +829,7 @@  discard block
 block discarded – undo
829 829
 	 * retrieved. Results will according to the order in the array.
830 830
 	 * @param int $limit optional, maximum results to be counted
831 831
 	 * @param int $offset optional, a starting point
832
+	 * @param string $filter
832 833
 	 * @return array|false array with the search result as first value and pagedSearchOK as
833 834
 	 * second | false if not successful
834 835
 	 */
@@ -875,7 +876,7 @@  discard block
 block discarded – undo
875 876
 	 * @param bool $pagedSearchOK whether a paged search has been executed
876 877
 	 * @param bool $skipHandling required for paged search when cookies to
877 878
 	 * prior results need to be gained
878
-	 * @return bool cookie validity, true if we have more pages, false otherwise.
879
+	 * @return null|boolean cookie validity, true if we have more pages, false otherwise.
879 880
 	 */
880 881
 	private function processPagedSearchStatus($sr, $filter, $base, $iFoundItems, $limit, $offset, $pagedSearchOK, $skipHandling) {
881 882
 		$cookie = null;
@@ -1092,7 +1093,7 @@  discard block
 block discarded – undo
1092 1093
 
1093 1094
 	/**
1094 1095
 	 * @param string $name
1095
-	 * @return bool|mixed|string
1096
+	 * @return string
1096 1097
 	 */
1097 1098
 	public function sanitizeUsername($name) {
1098 1099
 		if($this->connection->ldapIgnoreNamingRules) {
@@ -1116,6 +1117,7 @@  discard block
 block discarded – undo
1116 1117
 	* escapes (user provided) parts for LDAP filter
1117 1118
 	* @param string $input, the provided value
1118 1119
 	* @param bool $allowAsterisk whether in * at the beginning should be preserved
1120
+	* @param string $input
1119 1121
 	* @return string the escaped string
1120 1122
 	*/
1121 1123
 	public function escapeFilterPart($input, $allowAsterisk = false) {
@@ -1675,7 +1677,7 @@  discard block
 block discarded – undo
1675 1677
 
1676 1678
 	/**
1677 1679
 	 * Check whether the most recent paged search was successful. It flushed the state var. Use it always after a possible paged search.
1678
-	 * @return boolean|null true on success, null or false otherwise
1680
+	 * @return boolean true on success, null or false otherwise
1679 1681
 	 */
1680 1682
 	public function getPagedSearchResultState() {
1681 1683
 		$result = $this->pagedSearchedSuccessful;
@@ -1690,7 +1692,7 @@  discard block
 block discarded – undo
1690 1692
 	 * @param string[] $attr optional, when a certain attribute shall be filtered outside
1691 1693
 	 * @param int $limit
1692 1694
 	 * @param int $offset
1693
-	 * @return bool|true
1695
+	 * @return boolean
1694 1696
 	 */
1695 1697
 	private function initPagedSearch($filter, $bases, $attr, $limit, $offset) {
1696 1698
 		$pagedSearchOK = false;
Please login to merge, or discard this patch.
apps/files_sharing/lib/migration.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,6 @@
 block discarded – undo
128 128
 	/**
129 129
 	 * Get $n re-shares from the database
130 130
 	 *
131
-	 * @param int $n The max number of shares to fetch
132 131
 	 * @return \Doctrine\DBAL\Driver\Statement
133 132
 	 */
134 133
 	private function getReShares() {
Please login to merge, or discard this patch.
apps/files_sharing/api/sharees.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
lib/private/Server.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -856,7 +856,7 @@
 block discarded – undo
856 856
 	 * Get the certificate manager for the user
857 857
 	 *
858 858
 	 * @param string $userId (optional) if not specified the current loggedin user is used
859
-	 * @return \OCP\ICertificateManager | null if $uid is null and no user is logged in
859
+	 * @return null|CertificateManager | null if $uid is null and no user is logged in
860 860
 	 */
861 861
 	public function getCertificateManager($userId = null) {
862 862
 		if (is_null($userId)) {
Please login to merge, or discard this patch.