Passed
Push — 1.10.x ( 08890a...2189d7 )
by Yannick
116:38 queued 75:46
created
main/auth/cas/lib/CAS/domxml-php4-to-php5.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -457,6 +457,10 @@  discard block
 block discarded – undo
457 457
 		$this->myOwnerDocument=$dom_document->myOwnerDocument;
458 458
 		$this->myDOMXPath=new DOMXPath($this->myOwnerDocument->myDOMNode);
459 459
 	}
460
+
461
+	/**
462
+	 * @param string $eval_str
463
+	 */
460 464
 	function xpath_eval($eval_str,$contextnode=null)
461 465
 	{
462 466
 		if (method_exists($this->myDOMXPath,'evaluate')) $xp=isset($contextnode) ? $this->myDOMXPath->evaluate($eval_str,$contextnode->myDOMNode) : $this->myDOMXPath->evaluate($eval_str);
@@ -464,6 +468,11 @@  discard block
 block discarded – undo
464 468
 		$xp=new php4DOMNodelist($xp,$this->myOwnerDocument);
465 469
 		return ($xp->type===XPATH_UNDEFINED) ? false : $xp;
466 470
 	}
471
+
472
+	/**
473
+	 * @param string $prefix
474
+	 * @param string $namespaceURI
475
+	 */
467 476
 	function xpath_register_ns($prefix,$namespaceURI) {return $this->myDOMXPath->registerNamespace($prefix,$namespaceURI);}
468 477
 }
469 478
 
Please login to merge, or discard this patch.
main/auth/cas/lib/CAS/PGTStorage/pgt-db.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
   /**
63 63
    * This method returns the PEAR DB URL to use to connect to the database.
64 64
    *
65
-   * @return a PEAR DB URL
65
+   * @return string PEAR DB URL
66 66
    *
67 67
    * @private
68 68
    */
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
   /**
106 106
    * This method returns the name of the table where PGT's are stored.
107 107
    *
108
-   * @return the name of a table.
108
+   * @return string name of a table.
109 109
    *
110 110
    * @private
111 111
    */
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
    * This method returns an informational string giving the type of storage
123 123
    * used by the object (used for debugging purposes).
124 124
    *
125
-   * @return an informational string.
125
+   * @return string informational string.
126 126
    * @public
127 127
    */
128 128
   function getStorageType()
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
   /**
149 149
    * The class constructor, called by CASClient::SetPGTStorageDB().
150 150
    *
151
-   * @param $cas_parent the CASClient instance that creates the object.
151
+   * @param CASClient $cas_parent the CASClient instance that creates the object.
152 152
    * @param $user the user to access the data with
153 153
    * @param $password the user's password
154 154
    * @param $database_type the type of the database hosting the data
Please login to merge, or discard this patch.
main/auth/cas/lib/CAS/PGTStorage/pgt-file.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
    * This method returns an informational string giving the type of storage
99 99
    * used by the object (used for debugging purposes).
100 100
    *
101
-   * @return an informational string.
101
+   * @return string informational string.
102 102
    * @public
103 103
    */
104 104
   function getStorageType()
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
    * This method returns an informational string giving informations on the
111 111
    * parameters of the storage.(used for debugging purposes).
112 112
    *
113
-   * @return an informational string.
113
+   * @return string informational string.
114 114
    * @public
115 115
    */
116 116
   function getStorageInfo()
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
   /**
126 126
    * The class constructor, called by CASClient::SetPGTStorageFile().
127 127
    *
128
-   * @param $cas_parent the CASClient instance that creates the object.
129
-   * @param $format the format used to store the PGT's (`plain' and `xml' allowed).
130
-   * @param $path the path where the PGT's should be stored
128
+   * @param CASClient $cas_parent the CASClient instance that creates the object.
129
+   * @param string $format the format used to store the PGT's (`plain' and `xml' allowed).
130
+   * @param string $path the path where the PGT's should be stored
131 131
    *
132 132
    * @public
133 133
    */
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
    *
203 203
    * @param $pgt_iou the PGT iou.
204 204
    *
205
-   * @return a filename
205
+   * @return string filename
206 206
    * @private
207 207
    */
208 208
   function getPGTIouFilename($pgt_iou)
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
    *
244 244
    * @param $pgt_iou the PGT iou
245 245
    *
246
-   * @return the corresponding PGT, or FALSE on error
246
+   * @return false|string corresponding PGT, or FALSE on error
247 247
    *
248 248
    * @public
249 249
    */
Please login to merge, or discard this patch.
main/auth/cas/lib/CAS/PGTStorage/pgt-main.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
   /**
127 127
    * This method returns an error message set by PGTStorage::setErrorMessage().
128 128
    *
129
-   * @return an error message when set by PGTStorage::setErrorMessage(), FALSE
129
+   * @return boolean error message when set by PGTStorage::setErrorMessage(), FALSE
130 130
    * otherwise.
131 131
    *
132 132
    * @public
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
   /**
154 154
    * This method tells if the storage has already been intialized.
155 155
    *
156
-   * @return a boolean
156
+   * @return boolean boolean
157 157
    *
158 158
    * @protected
159 159
    */
Please login to merge, or discard this patch.
main/auth/courses_controller.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,7 @@  discard block
 block discarded – undo
33 33
      * render to courses_list view
34 34
      * @param string   	action
35 35
      * @param string    confirmation message(optional)
36
+     * @param string $action
36 37
      */
37 38
     public function courses_list($action, $message = '')
38 39
     {
@@ -79,7 +80,7 @@  discard block
 block discarded – undo
79 80
     /**
80 81
      * It's used for listing courses with categories,
81 82
      * render to courses_categories view
82
-     * @param $action
83
+     * @param string $action
83 84
      * @param string $category_code
84 85
      * @param string $message
85 86
      * @param string $error
Please login to merge, or discard this patch.
auth/external_login/facebook-php-sdk/src/Facebook/Entities/AccessToken.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,6 +62,7 @@  discard block
 block discarded – undo
62 62
    * @param string $accessToken
63 63
    * @param int $expiresAt
64 64
    * @param string|null machineId
65
+   * @param string $machineId
65 66
    */
66 67
   public function __construct($accessToken, $expiresAt = 0, $machineId = null)
67 68
   {
@@ -97,7 +98,7 @@  discard block
 block discarded – undo
97 98
   /**
98 99
    * Getter for machineId.
99 100
    *
100
-   * @return string|null
101
+   * @return string
101 102
    */
102 103
   public function getMachineId()
103 104
   {
@@ -191,11 +192,11 @@  discard block
 block discarded – undo
191 192
   /**
192 193
    * Get a valid code from an access token.
193 194
    *
194
-   * @param AccessToken|string $accessToken
195
+   * @param AccessToken $accessToken
195 196
    * @param string|null $appId
196 197
    * @param string|null $appSecret
197 198
    *
198
-   * @return AccessToken
199
+   * @return string
199 200
    */
200 201
   public static function getCodeFromAccessToken($accessToken, $appId = null, $appSecret = null)
201 202
   {
Please login to merge, or discard this patch.
external_login/facebook-php-sdk/src/Facebook/Entities/SignedRequest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
   /**
64 64
    * Returns the raw signed request data.
65 65
    *
66
-   * @return string|null
66
+   * @return string
67 67
    */
68 68
   public function getRawSignedRequest()
69 69
   {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
    * Returns a property from the signed request data if available.
85 85
    *
86 86
    * @param string $key
87
-   * @param mixed|null $default
87
+   * @param integer $default
88 88
    *
89 89
    * @return mixed|null
90 90
    */
Please login to merge, or discard this patch.
main/auth/external_login/functions.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
  *      - language
149 149
  *      - courses : string of all courses code separated by '|'
150 150
  *      - admin : boolean
151
- * @return boolean
151
+ * @return boolean|null
152 152
  * @author ndiechburg <[email protected]>
153 153
  * */
154 154
 function external_update_user($new_user) {
Please login to merge, or discard this patch.
main/auth/external_login/ldap.inc.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 /**
29 29
  * Establishes a connection to the LDAP server and sets the protocol version
30 30
  *
31
- * @return resource ldap link identifier or false
31
+ * @return boolean ldap link identifier or false
32 32
  * @author ndiechburg <[email protected]>
33 33
  * */
34 34
 function extldap_connect()
@@ -77,6 +77,7 @@  discard block
 block discarded – undo
77 77
 /**
78 78
  * Authenticate user on external ldap server and return user ldap entry if that succeeds
79 79
  *
80
+ * @param string $password
80 81
  * @return mixed false if user cannot authenticate on ldap, user ldap entry if tha succeeds
81 82
  * @author ndiechburg <[email protected]>
82 83
  * Modified by [email protected]
@@ -237,7 +238,7 @@  discard block
 block discarded – undo
237 238
 
238 239
 /**
239 240
  * Imports all LDAP users into Chamilo
240
- * @return bool false on error, true otherwise
241
+ * @return false|null false on error, true otherwise
241 242
  */
242 243
 function extldap_import_all_users()
243 244
 {
Please login to merge, or discard this patch.