Failed Conditions
Pull Request — master (#160)
by Sander
02:55
created
lib/Service/ShareService.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,6 +49,7 @@  discard block
 block discarded – undo
49 49
 	 * @param $target_item_guid string      The shared item GUID
50 50
 	 * @param $request_array    array
51 51
 	 * @param $permissions      integer     Must be created with a bitmask from options on the ShareRequest class
52
+	 * @param string $credential_owner
52 53
 	 * @return array                        Array of sharing requests
53 54
 	 */
54 55
 	public function createBulkRequests($target_item_id, $target_item_guid, $request_array, $permissions, $credential_owner) {
@@ -253,7 +254,6 @@  discard block
 block discarded – undo
253 254
 	/**
254 255
 	 * Delete ACL
255 256
 	 *
256
-	 * @param  ShareRequest $request
257 257
 	 * @return \OCA\Passman\Db\ShareRequest[]
258 258
 	 */
259 259
 	public function deleteShareACL(SharingACL $ACL) {
@@ -277,7 +277,6 @@  discard block
 block discarded – undo
277 277
 	/**
278 278
 	 * Get pending share requests by guid and uid
279 279
 	 *
280
-	 * @param  ShareRequest $request
281 280
 	 * @return \OCA\Passman\Db\ShareRequest[]
282 281
 	 */
283 282
 	public function getPendingShareRequestsForCredential($item_guid, $user_id) {
Please login to merge, or discard this patch.
lib/Service/SettingsService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	 * Get a app setting
71 71
 	 *
72 72
 	 * @param $key string
73
-	 * @param null $default_value The default value if key does not exist
73
+	 * @param boolean $default_value The default value if key does not exist
74 74
 	 * @return mixed
75 75
 	 */
76 76
 	public function getAppSetting($key, $default_value = null) {
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	/**
111 111
 	 * Check if an setting is enabled (value of 1)
112 112
 	 *
113
-	 * @param $setting
113
+	 * @param string $setting
114 114
 	 * @return bool
115 115
 	 */
116 116
 	public function isEnabled($setting) {
Please login to merge, or discard this patch.
lib/Service/EncryptService.php 1 patch
Doc Comments   +11 added lines, -5 removed lines patch added patch discarded remove patch
@@ -205,6 +205,10 @@  discard block
 block discarded – undo
205 205
 		return array($cipherKey, $macKey, $iv);
206 206
 	}
207 207
 
208
+	/**
209
+	 * @param string $a
210
+	 * @param string $b
211
+	 */
208 212
 	protected function hash_equals($a, $b) {
209 213
 		$key = openssl_random_pseudo_bytes(128);
210 214
 		return hash_hmac('sha512', $a, $key) === hash_hmac('sha512', $b, $key);
@@ -242,7 +246,7 @@  discard block
 block discarded – undo
242 246
 	/**
243 247
 	 * Pad the data with a random char chosen by the pad amount.
244 248
 	 *
245
-	 * @param $data
249
+	 * @param string $data
246 250
 	 * @return string
247 251
 	 */
248 252
 	protected function pad($data) {
@@ -258,8 +262,8 @@  discard block
 block discarded – undo
258 262
 	/**
259 263
 	 * Unpad the the data
260 264
 	 *
261
-	 * @param $data
262
-	 * @return bool|string
265
+	 * @param string $data
266
+	 * @return false|string
263 267
 	 */
264 268
 	protected function unpad($data) {
265 269
 		$length = $this->getKeySize();
@@ -276,7 +280,7 @@  discard block
 block discarded – undo
276 280
 	 * Encrypt a credential
277 281
 	 *
278 282
 	 * @param Credential|array $credential the credential to decrypt
279
-	 * @return Credential|array
283
+	 * @return string
280 284
 	 */
281 285
 	public function decryptCredential($credential) {
282 286
 		return $this->handleCredential($credential, 'decrypt');
@@ -297,6 +301,7 @@  discard block
 block discarded – undo
297 301
 	 * Handles the encryption / decryption of a credential
298 302
 	 *
299 303
 	 * @param Credential|array $credential the credential to encrypt
304
+	 * @param string $op
300 305
 	 * @return Credential|array
301 306
 	 * @throws \Exception
302 307
 	 */
@@ -342,7 +347,7 @@  discard block
 block discarded – undo
342 347
 	/**
343 348
 	 * Decrypt a file
344 349
 	 *
345
-	 * @param  File|array $file
350
+	 * @param  File $file
346 351
 	 * @return File|array
347 352
 	 */
348 353
 
@@ -354,6 +359,7 @@  discard block
 block discarded – undo
354 359
 	 * Handles the encryption / decryption of a File
355 360
 	 *
356 361
 	 * @param File|array $file the credential to encrypt
362
+	 * @param string $op
357 363
 	 * @return File|array
358 364
 	 * @throws \Exception
359 365
 	 */
Please login to merge, or discard this patch.