Test Failed
Push — CI ( 02428e...3e0292 )
by Adam
55:43
created
modules/Users/authentication/SAMLAuthenticate/lib/onelogin/saml/xmlsec.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      * Determine if the document passes the security test.
62 62
      *
63 63
      * @return
64
-     *   TRUE if the document passes. This could throw a generic Exception
64
+     boolean   TRUE if the document passes. This could throw a generic Exception
65 65
      *   if the document or key cannot be found.
66 66
      */
67 67
     
Please login to merge, or discard this patch.
modules/Users/authentication/SAMLAuthenticate/lib/xmlseclibs/xmlseclibs.php 1 patch
Doc Comments   +39 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,6 +46,9 @@  discard block
 block discarded – undo
46 46
 */
47 47
 
48 48
 /* helper function */
49
+/**
50
+ * @param DOMNodeList $arAtts
51
+ */
49 52
 function sortAndAddAttrs($element, $arAtts) {
50 53
    $newAtts = array();
51 54
    foreach ($arAtts AS $attnode) {
@@ -58,6 +61,10 @@  discard block
 block discarded – undo
58 61
 }
59 62
 
60 63
 /* helper function */
64
+/**
65
+ * @param DOMDocument $tree
66
+ * @param boolean $withcomments
67
+ */
61 68
 function canonical($tree, $element, $withcomments) {
62 69
     if ($tree->nodeType != XML_DOCUMENT_NODE) {
63 70
         $dom = $tree->ownerDocument;
@@ -433,6 +440,9 @@  discard block
 block discarded – undo
433 440
         return openssl_verify ($data, $signature, $this->key, $algo);
434 441
     }
435 442
 
443
+    /**
444
+     * @return string
445
+     */
436 446
     public function encryptData($data) {
437 447
         switch ($this->cryptParams['library']) {
438 448
             case 'mcrypt':
@@ -444,6 +454,11 @@  discard block
 block discarded – undo
444 454
         }
445 455
     }
446 456
 
457
+    /**
458
+     * @param string $data
459
+     *
460
+     * @return string
461
+     */
447 462
     public function decryptData($data) {
448 463
         switch ($this->cryptParams['library']) {
449 464
             case 'mcrypt':
@@ -475,6 +490,9 @@  discard block
 block discarded – undo
475 490
         return $this->cryptParams['method'];
476 491
     }
477 492
 
493
+    /**
494
+     * @param integer $type
495
+     */
478 496
     static function makeAsnSegment($type, $string) {
479 497
         switch ($type){
480 498
             case 0x02:
@@ -501,6 +519,11 @@  discard block
 block discarded – undo
501 519
     }
502 520
 
503 521
     /* Modulus and Exponent must already be base64 decoded */
522
+
523
+    /**
524
+     * @param string $modulus
525
+     * @param string $exponent
526
+     */
504 527
     static function convertRSA($modulus, $exponent) {
505 528
         /* make an ASN publicKeyInfo */
506 529
         $exponentEncoding = XMLSecurityKey::makeAsnSegment(0x02, $exponent);
@@ -533,7 +556,7 @@  discard block
 block discarded – undo
533 556
      * Will return the X509 certificate in PEM-format if this key represents
534 557
      * an X509 certificate.
535 558
      *
536
-     * @return  The X509 certificate or NULL if this key doesn't represent an X509-certificate.
559
+     * @return  string|null X509 certificate or NULL if this key doesn't represent an X509-certificate.
537 560
      */
538 561
     public function getX509Certificate() {
539 562
         return $this->x509Certificate;
@@ -596,6 +619,9 @@  discard block
 block discarded – undo
596 619
         return $guid;
597 620
     }
598 621
 
622
+    /**
623
+     * @param string $objDoc
624
+     */
599 625
     public function locateSignature($objDoc) {
600 626
         if ($objDoc instanceof DOMDocument) {
601 627
             $doc = $objDoc;
@@ -613,6 +639,9 @@  discard block
 block discarded – undo
613 639
         return NULL;
614 640
     }
615 641
 
642
+    /**
643
+     * @param string $name
644
+     */
616 645
     public function createNewSignNode($name, $value=NULL) {
617 646
         $doc = $this->sigNode->ownerDocument;
618 647
         if (! is_null($value)) {
@@ -1045,6 +1074,9 @@  discard block
 block discarded – undo
1045 1074
         return NULL;
1046 1075
     }
1047 1076
 
1077
+    /**
1078
+     * @param XMLSecurityKey $objKey
1079
+     */
1048 1080
     public function verify($objKey) {
1049 1081
         $doc = $this->sigNode->ownerDocument;
1050 1082
         $xpath = new DOMXPath($doc);
@@ -1057,6 +1089,9 @@  discard block
 block discarded – undo
1057 1089
         return $objKey->verifySignature($this->signedInfo, base64_decode($sigValue));
1058 1090
     }
1059 1091
 
1092
+    /**
1093
+     * @return string
1094
+     */
1060 1095
     public function signData($objKey, $data) {
1061 1096
         return $objKey->signData($data);
1062 1097
     }
@@ -1152,6 +1187,9 @@  discard block
 block discarded – undo
1152 1187
         }
1153 1188
     }
1154 1189
 
1190
+    /**
1191
+     * @param DOMNode $parentRef
1192
+     */
1155 1193
     static function staticAdd509Cert($parentRef, $cert, $isPEMFormat=TRUE, $isURL=False, $xpath=NULL) {
1156 1194
           if ($isURL) {
1157 1195
             $cert = file_get_contents($cert);
Please login to merge, or discard this patch.
modules/Users/authentication/SAMLAuthenticate/SAMLAuthenticateUser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -338,7 +338,7 @@
 block discarded – undo
338 338
     /**
339 339
      * Fetches user by provided ID and field name
340 340
      *
341
-     * @param mixed $id
341
+     * @param string $id
342 342
      * @param string $field
343 343
      * @return User
344 344
      */
Please login to merge, or discard this patch.
modules/Users/password_utils.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@
 block discarded – undo
79 79
 		return $mod_strings['LBL_EMAIL_NOT_SENT'];
80 80
 }
81 81
 
82
+/**
83
+ * @param string $username
84
+ */
82 85
 function  hasPasswordExpired($username){
83 86
     $current_user= new user();
84 87
     $usr_id=$current_user->retrieve_user_id($username);
Please login to merge, or discard this patch.
modules/Users/User.php 1 patch
Doc Comments   +4 added lines, -9 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 	 *
270 270
 	 * @param string $name Name of the preference to set
271 271
 	 * @param string $value Value to set preference to
272
-	 * @param null $nosession For BC, ignored
272
+	 * @param integer $nosession For BC, ignored
273 273
 	 * @param string $category Name of the category to retrieve
274 274
 	 */
275 275
 	public function setPreference(
@@ -560,10 +560,6 @@  discard block
 block discarded – undo
560 560
 
561 561
 	/**
562 562
 	 * @deprecated
563
-	* @param string $user_name - Must be non null and at least 2 characters
564
-	* @param string $user_password - Must be non null and at least 1 character.
565
-	* @desc Take an unencrypted username and password and return the encrypted password
566
-	* @return string encrypted password for storage in DB and comparison against DB password.
567 563
 	*/
568 564
 	function encrypt_password($user_password)
569 565
 	{
@@ -598,8 +594,8 @@  discard block
 block discarded – undo
598 594
      *
599 595
      * @param string id ID of the User
600 596
      * @param bool encode encode the result
601
-     * @return object User bean
602
-     * @return null null if no User found
597
+     * @return User|null User bean
598
+     * @return User|null null if no User found
603 599
      */
604 600
 	function retrieve($id = -1, $encode = true, $deleted = true) {
605 601
 		$ret = parent::retrieve($id, $encode, $deleted);
@@ -735,7 +731,7 @@  discard block
 block discarded – undo
735 731
 
736 732
 	/**
737 733
 	 * Check that md5-encoded password matches existing hash
738
-	 * @param string $password MD5-encoded password
734
+	 * @param string $password_md5 MD5-encoded password
739 735
 	 * @param string $user_hash DB hash
740 736
 	 * @return bool Match or not?
741 737
 	 */
@@ -1647,7 +1643,6 @@  discard block
 block discarded – undo
1647 1643
     /**
1648 1644
      * Get user first day of week.
1649 1645
      *
1650
-     * @param [User] $user user object, current user if not specified
1651 1646
      * @return int : 0 = Sunday, 1 = Monday, etc...
1652 1647
      */
1653 1648
     public function get_first_day_of_week()
Please login to merge, or discard this patch.
modules/Users/UserViewHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -760,7 +760,7 @@
 block discarded – undo
760 760
      * setUserType
761 761
      * This function is used to set the user_type variable for a given User instance
762 762
      *
763
-     * @param Mixed $user The user instance to set the user_type variable on
763
+     * @param SugarBean $user The user instance to set the user_type variable on
764 764
      * @return String value representing the user type
765 765
      */
766 766
     function setUserType($user)
Please login to merge, or discard this patch.
modules/Users/views/view.wizard.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      * in the array.
268 268
      *
269 269
      * @param array $currenciesArray Array of currencies to sort
270
-     * @return array|string Array of sorted currencies with the US Dollar as the first
270
+     * @return string Array of sorted currencies with the US Dollar as the first
271 271
      */
272 272
     public function correctCurrenciesSymbolsSort($currenciesArray)
273 273
     {
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
      *
290 290
      * @see correctCurrenciesSymbolsSort
291 291
      * @param $array
292
-     * @return array|string Javascript code snippet of currencies array
292
+     * @return string Javascript code snippet of currencies array
293 293
      */
294 294
     public function pushCurrencyArrayToString($array)
295 295
     {
Please login to merge, or discard this patch.
modules/vCals/HTTP_WebDAV_Server_vCal.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
          * PUT method handler
393 393
          *
394 394
          * @param  array  parameter passing array
395
-         * @return bool   true on success
395
+         * @return boolean|null   true on success
396 396
          */
397 397
         function PUT(&$options)
398 398
         {
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
          * UNLOCK method handler
417 417
          *
418 418
          * @param  array  general parameter passing array
419
-         * @return bool   true on success
419
+         * @return string   true on success
420 420
          */
421 421
         function unlock(&$options)
422 422
         {
Please login to merge, or discard this patch.
modules/vCals/vCal.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      * escape iCal chars as per RFC 5545: http://tools.ietf.org/html/rfc5545#section-3.3.11
315 315
      *
316 316
      * @param string $string string to escape chars
317
-     * @return escaped string
317
+     * @return string string
318 318
      */
319 319
     public static function escape_ical_chars($string)
320 320
     {
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
      * unescape iCal chars as per RFC 5545: http://tools.ietf.org/html/rfc5545#section-3.3.11
327 327
      *
328 328
      * @param string $string string to escape chars
329
-     * @return unescaped string
329
+     * @return string string
330 330
      */
331 331
     public static function unescape_ical_chars($string)
332 332
     {
Please login to merge, or discard this patch.