Completed
Push — master ( 74e8c2...8931ba )
by Lukas
72:41
created
lib/private/setup/abstractdatabase.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -91,5 +91,8 @@
 block discarded – undo
91 91
 		$this->tablePrefix = $dbTablePrefix;
92 92
 	}
93 93
 
94
+	/**
95
+	 * @param string $userName
96
+	 */
94 97
 	abstract public function setupDatabase($userName);
95 98
 }
Please login to merge, or discard this patch.
lib/private/setup/mysql.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 	}
71 71
 
72 72
 	/**
73
-	 * @param IDbConnection $connection
73
+	 * @param IDBConnection $connection
74 74
 	 * @throws \OC\DatabaseSetupException
75 75
 	 */
76 76
 	private function createDBUser($connection) {
Please login to merge, or discard this patch.
lib/private/share/helper.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 	 *
228 228
 	 * all return: http://localhost
229 229
 	 *
230
-	 * @param string $shareWith
230
+	 * @param string $remote
231 231
 	 * @return string
232 232
 	 */
233 233
 	protected static function fixRemoteURL($remote) {
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 	 * split user and remote from federated cloud id
245 245
 	 *
246 246
 	 * @param string $id
247
-	 * @return array
247
+	 * @return string[]
248 248
 	 * @throws HintException
249 249
 	 */
250 250
 	public static function splitUserRemote($id) {
Please login to merge, or discard this patch.
lib/private/share/mailnotifications.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 	 * @param string $filename the shared file
175 175
 	 * @param string $link the public link
176 176
 	 * @param int $expiration expiration date (timestamp)
177
-	 * @return array $result of failed recipients
177
+	 * @return string[] $result of failed recipients
178 178
 	 */
179 179
 	public function sendLinkShareMail($recipient, $filename, $link, $expiration) {
180 180
 		$subject = (string)$this->l->t('%s shared »%s« with you', [$this->senderDisplayName, $filename]);
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 	 * @param string $filename the shared file
211 211
 	 * @param string $link link to the shared file
212 212
 	 * @param int $expiration expiration date (timestamp)
213
-	 * @param bool $prefix prefix of mail template files
213
+	 * @param string|boolean $prefix prefix of mail template files
214 214
 	 * @return array an array of the html mail body and the plain text mail body
215 215
 	 */
216 216
 	private function createMailBody($filename, $link, $expiration, $prefix = '') {
Please login to merge, or discard this patch.
lib/private/share/share.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -2211,6 +2211,16 @@
 block discarded – undo
2211 2211
 		return $id ? $id : false;
2212 2212
 	}
2213 2213
 
2214
+	/**
2215
+	 * @param string $itemType
2216
+	 * @param string $itemSource
2217
+	 * @param integer $shareType
2218
+	 * @param string $shareWith
2219
+	 * @param string $uidOwner
2220
+	 * @param integer $permissions
2221
+	 * @param string|null $itemSourceName
2222
+	 * @param null|\DateTime $expirationDate
2223
+	 */
2214 2224
 	private static function checkReshare($itemType, $itemSource, $shareType, $shareWith, $uidOwner, $permissions, $itemSourceName, $expirationDate) {
2215 2225
 		$backend = self::getBackend($itemType);
2216 2226
 
Please login to merge, or discard this patch.
lib/private/share20/manager.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.
lib/private/tags.php 1 patch
Doc Comments   +10 added lines, -2 removed lines patch added patch discarded remove patch
@@ -741,11 +741,19 @@  discard block
 block discarded – undo
741 741
 	}
742 742
 
743 743
 	// case-insensitive array_search
744
+
745
+	/**
746
+	 * @param string $needle
747
+	 */
744 748
 	protected function array_searchi($needle, $haystack, $mem='getName') {
745 749
 		if(!is_array($haystack)) {
746 750
 			return false;
747 751
 		}
748 752
 		return array_search(strtolower($needle), array_map(
753
+
754
+			/**
755
+			 * @param string $tag
756
+			 */
749 757
 			function($tag) use($mem) {
750 758
 				return strtolower(call_user_func(array($tag, $mem)));
751 759
 			}, $haystack)
@@ -770,7 +778,7 @@  discard block
 block discarded – undo
770 778
 	* Get a tag by its name.
771 779
 	*
772 780
 	* @param string $name The tag name.
773
-	* @return integer|bool The tag object's offset within the $this->tags
781
+	* @return \OCP\AppFramework\Db\Entity The tag object's offset within the $this->tags
774 782
 	*                      array or false if it doesn't exist.
775 783
 	*/
776 784
 	private function getTagByName($name) {
@@ -781,7 +789,7 @@  discard block
 block discarded – undo
781 789
 	* Get a tag by its ID.
782 790
 	*
783 791
 	* @param string $id The tag ID to look for.
784
-	* @return integer|bool The tag object's offset within the $this->tags
792
+	* @return \OCP\AppFramework\Db\Entity The tag object's offset within the $this->tags
785 793
 	*                      array or false if it doesn't exist.
786 794
 	*/
787 795
 	private function getTagById($id) {
Please login to merge, or discard this patch.
lib/private/template.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,6 +69,10 @@  discard block
 block discarded – undo
69 69
 	
70 70
 	protected static $initTemplateEngineFirstRun = true;
71 71
 	
72
+	/**
73
+	 * @param string $app
74
+	 * @param string $name
75
+	 */
72 76
 	public function __construct( $app, $name, $renderAs = "", $registerCall = true ) {
73 77
 		// Read the selected theme from the config file
74 78
 		self::initTemplateEngine($renderAs);
@@ -91,6 +95,9 @@  discard block
 block discarded – undo
91 95
 		parent::__construct($template, $requesttoken, $l10n, $themeDefaults);
92 96
 	}
93 97
 
98
+	/**
99
+	 * @param string $renderAs
100
+	 */
94 101
 	public static function initTemplateEngine($renderAs) {
95 102
 		if (self::$initTemplateEngineFirstRun){
96 103
 			
@@ -173,7 +180,7 @@  discard block
 block discarded – undo
173 180
 	 * Checking all the possible locations.
174 181
 	 * @param string $theme
175 182
 	 * @param string $app
176
-	 * @return array
183
+	 * @return string[]
177 184
 	 */
178 185
 	protected function findTemplate($theme, $app, $name) {
179 186
 		// Check if it is a app template or not.
Please login to merge, or discard this patch.
lib/private/template/base.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,7 @@  discard block
 block discarded – undo
36 36
 	 * @param string $template
37 37
 	 * @param \OC_L10N $l10n
38 38
 	 * @param \OC_Defaults $theme
39
+	 * @param string $requesttoken
39 40
 	 */
40 41
 	public function __construct( $template, $requesttoken, $l10n, $theme ) {
41 42
 		$this->vars = array();
@@ -95,7 +96,7 @@  discard block
 block discarded – undo
95 96
 	/**
96 97
 	 * Appends a variable
97 98
 	 * @param string $key key
98
-	 * @param mixed $value value
99
+	 * @param string $value value
99 100
 	 * @return boolean|null
100 101
 	 *
101 102
 	 * This function assigns a variable in an array context. If the key already
Please login to merge, or discard this patch.