Cancelled
Push — stable7 ( 84b831...6518d6 )
by Thomas
901:00 queued 901:00
created
apps/files_encryption/lib/crypt.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 * @param string $plainContent
186 186
 	 * @param string $iv
187 187
 	 * @param string $passphrase
188
-	 * @param string $cypher used for encryption, currently we support AES-128-CFB and AES-256-CFB
188
+	 * @param string $cipher used for encryption, currently we support AES-128-CFB and AES-256-CFB
189 189
 	 * @return string encrypted file content
190 190
 	 * @throws \OCA\Files_Encryption\Exception\EncryptionException
191 191
 	 */
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 	/**
242 242
 	 * Split concatenated data and IV into respective parts
243 243
 	 * @param string $catFile concatenated data to be split
244
-	 * @return array keys: encrypted, iv
244
+	 * @return string keys: encrypted, iv
245 245
 	 */
246 246
 	private static function splitIv($catFile) {
247 247
 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 	 * Symmetrically encrypts a string and returns keyfile content
268 268
 	 * @param string $plainContent content to be encrypted in keyfile
269 269
 	 * @param string $passphrase
270
-	 * @param string $cypher used for encryption, currently we support AES-128-CFB and AES-256-CFB
270
+	 * @param string $cipher used for encryption, currently we support AES-128-CFB and AES-256-CFB
271 271
 	 * @return false|string encrypted content combined with IV
272 272
 	 * @note IV need not be specified, as it will be stored in the returned keyfile
273 273
 	 * and remain accessible therein.
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 	 * Create asymmetrically encrypted keyfile content using a generated key
376 376
 	 * @param string $plainContent content to be encrypted
377 377
 	 * @param array $publicKeys array keys must be the userId of corresponding user
378
-	 * @return array keys: keys (array, key = userId), data
378
+	 * @return string keys: keys (array, key = userId), data
379 379
 	 * @throws \OCA\Files_Encryption\Exception\MultiKeyEncryptException if encryption failed
380 380
 	 * @note symmetricDecryptFileContent() can decrypt files created using this method
381 381
 	 */
@@ -552,6 +552,7 @@  discard block
 block discarded – undo
552 552
 	 *
553 553
 	 * @param array $header
554 554
 	 * @throws \OCA\Files_Encryption\Exception\EncryptionException
555
+	 * @return string
555 556
 	 */
556 557
 	public static function getCipher($header) {
557 558
 		$cipher = isset($header['cipher']) ? $header['cipher'] : 'AES-128-CFB';
Please login to merge, or discard this patch.
apps/files_encryption/lib/util.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
 	/**
444 444
 	 * get the file size of the unencrypted file
445 445
 	 * @param string $path absolute path
446
-	 * @return bool
446
+	 * @return string
447 447
 	 */
448 448
 	public function getFileSize($path) {
449 449
 
@@ -1000,7 +1000,7 @@  discard block
 block discarded – undo
1000 1000
 	 * Decrypt a keyfile
1001 1001
 	 * @param string $filePath
1002 1002
 	 * @param string $privateKey
1003
-	 * @return false|string
1003
+	 * @return string
1004 1004
 	 */
1005 1005
 	private function decryptKeyfile($filePath, $privateKey) {
1006 1006
 
@@ -1222,7 +1222,7 @@  discard block
 block discarded – undo
1222 1222
 
1223 1223
 	/**
1224 1224
 	 * check if files are already migrated to the encryption system
1225
-	 * @return int|false migration status, false = in case of no record
1225
+	 * @return integer migration status, false = in case of no record
1226 1226
 	 * @note If records are not being returned, check for a hidden space
1227 1227
 	 *       at the start of the uid in db
1228 1228
 	 */
Please login to merge, or discard this patch.
apps/files_encryption/tests/hooks.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -295,6 +295,7 @@  discard block
 block discarded – undo
295 295
 
296 296
 	/**
297 297
 	 * test rename operation
298
+	 * @param string $filename
298 299
 	 */
299 300
 	function doTestRenameHook($filename) {
300 301
 		// check if keys exists
@@ -357,6 +358,7 @@  discard block
 block discarded – undo
357 358
 
358 359
 	/**
359 360
 	 * test rename operation
361
+	 * @param string $filename
360 362
 	 */
361 363
 	function doTestCopyHook($filename) {
362 364
 		// check if keys exists
Please login to merge, or discard this patch.
apps/files_sharing/lib/external/storage.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@
 block discarded – undo
90 90
 		return $this->token;
91 91
 	}
92 92
 
93
+	/**
94
+	 * @return resource
95
+	 */
93 96
 	public function getPassword() {
94 97
 		return $this->password;
95 98
 	}
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@
 block discarded – undo
30 30
 namespace OCA\Files_Sharing\Controllers;
31 31
 
32 32
 use OC;
33
-use OC\Files\Filesystem;
34 33
 use OC_Files;
35 34
 use OC_Util;
36 35
 use OCP;
Please login to merge, or discard this patch.
apps/files_sharing/lib/helper.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -138,6 +138,9 @@
 block discarded – undo
138 138
 		return true;
139 139
 	}
140 140
 
141
+	/**
142
+	 * @param string $target
143
+	 */
141 144
 	public static function getSharesFromItem($target) {
142 145
 		$result = array();
143 146
 		$owner = \OC\Files\Filesystem::getOwner($target);
Please login to merge, or discard this patch.
apps/files_versions/tests/versions.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -620,7 +620,6 @@
 block discarded – undo
620 620
 	/**
621 621
 	 * @param string $user
622 622
 	 * @param bool $create
623
-	 * @param bool $password
624 623
 	 */
625 624
 	public static function loginHelper($user, $create = false) {
626 625
 
Please login to merge, or discard this patch.
apps/user_ldap/command/showconfig.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
 use Symfony\Component\Console\Command\Command;
29 29
 use Symfony\Component\Console\Helper\Table;
30 30
 use Symfony\Component\Console\Input\InputInterface;
31
-use Symfony\Component\Console\Input\InputOption;
32 31
 use Symfony\Component\Console\Output\OutputInterface;
33 32
 
34 33
 class ListCertificates extends Base {
Please login to merge, or discard this patch.
core/command/db/converttype.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/activitymanager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	}
110 110
 
111 111
 	/**
112
-	 * @param array $types
112
+	 * @param string[] $types
113 113
 	 * @param string $filter
114 114
 	 * @return array
115 115
 	 */
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	/**
148 148
 	 * @param string $app
149 149
 	 * @param string $text
150
-	 * @param array $params
150
+	 * @param string $params
151 151
 	 * @param boolean $stripPath
152 152
 	 * @param boolean $highlightParams
153 153
 	 * @param string $languageCode
Please login to merge, or discard this patch.