Completed
Push — 1.10.x ( 986d2b...f19030 )
by Angel Fernando Quiroz
69:29 queued 19:50
created
main/newscorm/openoffice_document.class.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,8 @@
 block discarded – undo
171 171
     /**
172 172
      * Get images files from remote host (with webservices)
173 173
      * @param   array current ppt file
174
-     * @return  array images files
174
+     * @param string $file
175
+     * @return  string images files
175 176
      */
176 177
     private function _get_remote_ppt2lp_files($file)
177 178
     {
Please login to merge, or discard this patch.
main/newscorm/openoffice_text_document.class.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Gets html pages and compose them into a learning path
40 40
      * @param	array	The files that will compose the generated learning path. Unused so far.
41
-     * @return	boolean	False if file does not exit. Nothing otherwise.
41
+     * @return	false|null	False if file does not exit. Nothing otherwise.
42 42
      */
43 43
     public function make_lp($files = array())
44 44
     {
@@ -92,6 +92,7 @@  discard block
 block discarded – undo
92 92
      * Manages chapter splitting
93 93
      * @param	string	Chapter header
94 94
      * @param	string	Content
95
+     * @param string $content
95 96
      * @return	void
96 97
      */
97 98
     function dealPerChapter($header, $content)
@@ -164,6 +165,7 @@  discard block
 block discarded – undo
164 165
      * Manages page splitting
165 166
      * @param	string	Page header
166 167
      * @param	string	Page body
168
+     * @param string $body
167 169
      * @return	void
168 170
      */
169 171
     function dealPerPage($header, $body)
Please login to merge, or discard this patch.
main/newscorm/resourcelinker.inc.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -320,6 +320,10 @@
 block discarded – undo
320 320
  * @param icon        - if ="icon" then the small icon will appear
321 321
  *                      if ="wrap" then wrapped settings are used (and no icon is displayed)
322 322
  *                      if ="nolink" then only the name is returned with no href and no icon (note:only in this case, the result is not displayed, but returned)
323
+ * @param string $completed
324
+ * @param string $id_in_path
325
+ * @param string $builder
326
+ * @param string $icon
323 327
  * @todo this function is too long, rewrite
324 328
  */
325 329
 function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_path, $builder, $icon, $level = 0) {
Please login to merge, or discard this patch.
main/newscorm/scorm.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      * @param int $userMaxScore
272 272
      * @param int $sessionId
273 273
      *
274
-     * @return bool	Returns -1 on error
274
+     * @return boolean|null	Returns -1 on error
275 275
      */
276 276
     public function import_manifest($courseCode, $userMaxScore = 1, $sessionId = 0, $userId = 0)
277 277
     {
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
      * @param	string	course Code
926 926
      * @param string	LP ID (in database)
927 927
      * @param string	Manifest file path (optional if lp_id defined)
928
-     * @return	integer	New LP ID or false on failure
928
+     * @return	boolean	New LP ID or false on failure
929 929
      * TODO @TODO Implement imsmanifest_path parameter
930 930
      */
931 931
     public function reimport_manifest($courseCode, $lp_id = null, $imsmanifest_path = '')
Please login to merge, or discard this patch.
main/permissions/permissions_functions.inc.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
 /**
120 120
 * This function retrieves the existing permissions of a user, group or role.
121
-* @param $content are we retrieving the rights of a user, a group or a role (the database depends on it)
121
+* @param string $content are we retrieving the rights of a user, a group or a role (the database depends on it)
122 122
 * @param $id the id of the user, group or role
123 123
 * @author Patrick Cool <[email protected]>, Ghent University
124 124
 * @version 1.0
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
 
527 527
 /**
528 528
 * This function gets all the roles that are defined
529
-* @param $content are we finding the roles for a user or a group (the database depends on it)
529
+* @param string $content are we finding the roles for a user or a group (the database depends on it)
530 530
 * @param $id the id of the user or group
531 531
 * @param string	Deprecated parameter allowing use of 'platform' scope - the corresponding tables don't exist anymore so the scope is always set to 'course'
532 532
 * @return array that contains the name of the roles the user has
Please login to merge, or discard this patch.
main/resourcelinker/resourcelinker.inc.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -338,6 +338,10 @@
 block discarded – undo
338 338
 * @param icon        - if ="icon" then the small icon will appear
339 339
 *                      if ="wrap" then wrapped settings are used (and no icon is displayed)
340 340
 *                      if ="nolink" then only the name is returned with no href and no icon (note:only in this case, the result is not displayed, but returned)
341
+* @param string $completed
342
+* @param string $id_in_path
343
+* @param string $builder
344
+* @param string $icon
341 345
 * @todo this function is too long, rewrite
342 346
 */
343 347
 function display_addedresource_link_in_learnpath($type, $id, $completed, $id_in_path, $builder, $icon, $level = 0)
Please login to merge, or discard this patch.
main/user/user.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -735,7 +735,6 @@
 block discarded – undo
735 735
  * lock = the user can no longer use this account
736 736
  * @author Patrick Cool <[email protected]>, Ghent University
737 737
  * @param int $active the current state of the account
738
- * @param int $user_id The user id
739 738
  * @param string $urlParams
740 739
  *
741 740
  * @return string Some HTML-code with the lock/unlock button
Please login to merge, or discard this patch.
main/webservices/additional_webservices.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 }
85 85
 
86 86
 /**
87
- * @param $directoryPath
87
+ * @param string $directoryPath
88 88
  * @return bool
89 89
  */
90 90
 function deleteDirectory($directoryPath)
Please login to merge, or discard this patch.
main/webservices/cm_webservice.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,8 @@  discard block
 block discarded – undo
32 32
 	 *
33 33
 	 * @param int Error code
34 34
 	 * @param string Error message
35
+	 * @param integer $code
36
+	 * @param string $message
35 37
 	 */
36 38
 	public function __construct($code, $message) {
37 39
 		$this->code = $code;
@@ -42,6 +44,7 @@  discard block
 block discarded – undo
42 44
 	 * Sets the error handler
43 45
 	 *
44 46
 	 * @param WSErrorHandler Error handler
47
+	 * @param WSCMSoapErrorHandler $handler
45 48
 	 */
46 49
 	public static function setErrorHandler($handler) {
47 50
 		if($handler instanceof WSErrorHandler) {
@@ -76,6 +79,7 @@  discard block
 block discarded – undo
76 79
 	 * Handle method
77 80
 	 *
78 81
 	 * @param WSError Error
82
+	 * @return void
79 83
 	 */
80 84
 	public function handle($error);
81 85
 }
@@ -102,7 +106,7 @@  discard block
 block discarded – undo
102 106
 	 * Verifies the API key
103 107
 	 *
104 108
 	 * @param string Secret key
105
-	 * @return mixed WSError in case of failure, null in case of success
109
+	 * @return WSCMError|null WSError in case of failure, null in case of success
106 110
 	 */
107 111
 	protected function verifyKey($secret_key) {
108 112
 		$ip = trim($_SERVER['REMOTE_ADDR']);
Please login to merge, or discard this patch.