Completed
Push — 1.10.x ( eba9e5...501d19 )
by Julito
75:05 queued 37:10
created
src/Chamilo/CoreBundle/Entity/SequenceResource.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     }
59 59
 
60 60
     /**
61
-     * @return string
61
+     * @return integer
62 62
      */
63 63
     public function getType()
64 64
     {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     }
124 124
 
125 125
     /**
126
-     * @param mixed $sequence
126
+     * @param Sequence $sequence
127 127
      * @return $this
128 128
      */
129 129
     public function setSequence(Sequence $sequence)
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/SessionCategory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      * Set url
67 67
      *
68 68
      * @param $url
69
-     * @return AccessUrlRelCourse
69
+     * @return SessionCategory
70 70
      */
71 71
     public function setUrl($url)
72 72
     {
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Entity/CLpCategory.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,6 @@
 block discarded – undo
96 96
     /**
97 97
      * Set category name
98 98
      *
99
-     * @param string $blogName
100 99
      *
101 100
      * @return CLpCategory
102 101
      */
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Entity/CToolIntro.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
     /**
95 95
      * Get id
96 96
      *
97
-     * @return string
97
+     * @return integer
98 98
      */
99 99
     public function getId()
100 100
     {
Please login to merge, or discard this patch.
src/Chamilo/UserBundle/Entity/User.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -928,7 +928,7 @@  discard block
 block discarded – undo
928 928
     /**
929 929
      * Get pictureUri
930 930
      *
931
-     * @return Media
931
+     * @return string
932 932
      */
933 933
     public function getPictureUri()
934 934
     {
@@ -1305,7 +1305,7 @@  discard block
 block discarded – undo
1305 1305
     }
1306 1306
 
1307 1307
     /**
1308
-     * @return Media
1308
+     * @return string
1309 1309
      */
1310 1310
     public function getAvatar()
1311 1311
     {
Please login to merge, or discard this patch.
main/inc/lib/pear/PEAR.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
      *                  PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE,
491 491
      *                  PEAR_ERROR_CALLBACK, PEAR_ERROR_EXCEPTION.
492 492
      *
493
-     * @param mixed $options If $mode is PEAR_ERROR_TRIGGER, this parameter
493
+     * @param integer|null $options If $mode is PEAR_ERROR_TRIGGER, this parameter
494 494
      *                  specifies the PHP-internal error level (one of
495 495
      *                  E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR).
496 496
      *                  If $mode is PEAR_ERROR_CALLBACK, this
@@ -581,6 +581,7 @@  discard block
 block discarded – undo
581 581
      * message, code and userinfo are enough.
582 582
      *
583 583
      * @param string $message
584
+     * @param integer $code
584 585
      *
585 586
      */
586 587
     function &throwError($message = null,
Please login to merge, or discard this patch.
main/survey/survey.lib.php 1 patch
Doc Comments   +17 added lines, -15 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * Deletes all survey invitations of a user
48 48
      * @param int $user_id
49 49
      *
50
-     * @return boolean
50
+     * @return false|null
51 51
      * @assert ('') === false
52 52
      */
53 53
     public static function delete_all_survey_invitations_by_user($user_id)
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      * Retrieves all the survey information
105 105
      *
106 106
      * @param integer $survey_id the id of the survey
107
-     * @param boolean $shared this parameter determines if
107
+     * @param integer $shared this parameter determines if
108 108
      * we have to get the information of a survey from the central (shared) database or from the
109 109
      * 		  course database
110 110
      * @param string course code optional
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
      * This function deletes a survey (and also all the question in that survey
572 572
      *
573 573
      * @param int $survey_id id of the survey that has to be deleted
574
-     * @return true
574
+     * @return boolean
575 575
      *
576 576
      * @author Patrick Cool <[email protected]>, Ghent University
577 577
      * @version January 2007
@@ -756,7 +756,7 @@  discard block
 block discarded – undo
756 756
      *
757 757
      * @param int $survey_id id of the survey that has to be duplicated
758 758
      * @param int $courseId id of the course which survey has to be duplicated
759
-     * @return true
759
+     * @return boolean
760 760
      *
761 761
      * @author Eric Marguin <[email protected]>, Elixir Interactive
762 762
      * @version October 2007
@@ -796,7 +796,7 @@  discard block
 block discarded – undo
796 796
     /**
797 797
      * This function recalculates the number of people who have taken the survey (=filled at least one question)
798 798
      *
799
-     * @param int $survey_id the id of the survey somebody
799
+     * @param int $survey_data the id of the survey somebody
800 800
      * @return true
801 801
      *
802 802
      * @author Patrick Cool <[email protected]>, Ghent University
@@ -1367,7 +1367,7 @@  discard block
 block discarded – undo
1367 1367
      * This function deletes a shared survey question from the main database and all its options
1368 1368
      *
1369 1369
      * @param int $question_id the id of the question
1370
-     * @param int $shared
1370
+     * @param integer $survey_id
1371 1371
      *
1372 1372
      * @todo delete all the options of this question
1373 1373
      *
@@ -1494,8 +1494,8 @@  discard block
 block discarded – undo
1494 1494
      * This function deletes all the options of the questions of a given survey
1495 1495
      * This function is normally only called when a survey is deleted
1496 1496
      *
1497
-     * @param $survey_id the id of the survey that has to be deleted
1498
-     * @return true
1497
+     * @param integer $survey_id the id of the survey that has to be deleted
1498
+     * @return boolean
1499 1499
      *
1500 1500
      * @author Patrick Cool <[email protected]>, Ghent University
1501 1501
      * @version January 2007
@@ -1561,8 +1561,8 @@  discard block
 block discarded – undo
1561 1561
      * This function deletes all the answers anyone has given on this survey
1562 1562
      * This function is normally only called when a survey is deleted
1563 1563
      *
1564
-     * @param $survey_id the id of the survey that has to be deleted
1565
-     * @return true
1564
+     * @param integer $survey_id the id of the survey that has to be deleted
1565
+     * @return boolean
1566 1566
      *
1567 1567
      * @todo write the function
1568 1568
      *
@@ -1804,7 +1804,7 @@  discard block
 block discarded – undo
1804 1804
     /**
1805 1805
      * This function checks the parameters that are used in this page
1806 1806
      *
1807
-     * @return 	string 	The header, an error and the footer if any parameter fails, else it returns true
1807
+     * @return 	null|boolean 	The header, an error and the footer if any parameter fails, else it returns true
1808 1808
      * @author Patrick Cool <[email protected]>, Ghent University
1809 1809
      * @version February 2007
1810 1810
      */
@@ -2371,6 +2371,7 @@  discard block
 block discarded – undo
2371 2371
      * Display score data about a survey question
2372 2372
      * @param	array	Question info
2373 2373
      * @param	integer	The offset of results shown
2374
+     * @param integer $offset
2374 2375
      * @return	void 	(direct output)
2375 2376
      */
2376 2377
     public static function display_question_report_score($survey_data, $question, $offset)
@@ -3208,7 +3209,7 @@  discard block
 block discarded – undo
3208 3209
      * @param	array	User's answers
3209 3210
      * @param 	mixed	User ID or user details as string - Used as a string in the result string
3210 3211
      * @param	boolean	Whether to display user fields or not
3211
-     * @return	string	One line of the csv file
3212
+     * @return	string[]	One line of the csv file
3212 3213
      */
3213 3214
     public static function export_complete_report_row_xls(
3214 3215
         $survey_data,
@@ -3801,7 +3802,7 @@  discard block
 block discarded – undo
3801 3802
 
3802 3803
     /**
3803 3804
      * @param $params
3804
-     * @return bool|int
3805
+     * @return false|string
3805 3806
      */
3806 3807
     public static function save_invitation($params)
3807 3808
     {
@@ -3855,6 +3856,7 @@  discard block
 block discarded – undo
3855 3856
      *
3856 3857
      * @param int invitedUser - the userId (course user) or emailaddress of additional user
3857 3858
      * $param string $invitation_code - the unique invitation code for the URL
3859
+     * @param string|null $invitation_text
3858 3860
      * @return	void
3859 3861
      */
3860 3862
     public static function send_invitation_mail($invitedUser, $invitation_code, $invitation_title, $invitation_text)
@@ -4783,7 +4785,7 @@  discard block
 block discarded – undo
4783 4785
     /**
4784 4786
      * @author Isaac Flores Paz <[email protected]>
4785 4787
      * @param int $user_id - User ID
4786
-     * @param int $user_id_answer - User in survey answer table (user id or anonymus)
4788
+     * @param int $user_answer - User in survey answer table (user id or anonymus)
4787 4789
      * @return boolean
4788 4790
      */
4789 4791
     static function show_link_available($user_id, $survey_code, $user_answer)
@@ -4829,7 +4831,7 @@  discard block
 block discarded – undo
4829 4831
      * Display survey question chart
4830 4832
      * @param	array	Chart data
4831 4833
      * @param	boolean	Tells if the chart has a serie. False by default
4832
-     * @return	void 	(direct output)
4834
+     * @return	string 	(direct output)
4833 4835
      */
4834 4836
     public static function drawChart($chartData, $hasSerie = false, $chartContainerId = 'chartContainer')
4835 4837
     {
Please login to merge, or discard this patch.
main/inc/lib/events.lib.php 1 patch
Doc Comments   +19 added lines, -10 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     }
240 240
 
241 241
     /**
242
-     * @param doc_id id of document (id in mainDb.document table)
242
+     * @param doc_id string of document (id in mainDb.document table)
243 243
      * @author Sebastien Piraux <[email protected]>
244 244
      * @desc Record information for upload event
245 245
      * used in the works tool to record informations when
@@ -311,6 +311,8 @@  discard block
 block discarded – undo
311 311
      * @param   int     session_id
312 312
      * @param   int     learnpath_id (id of the learnpath)
313 313
      * @param   int     learnpath_item_id (id of the learnpath_item)
314
+     * @param integer $weighting
315
+     * @param integer $session_id
314 316
      *
315 317
      * @author Sebastien Piraux <[email protected]>
316 318
      * @author Julio Montoya Armas <[email protected]> Reworked 2010
@@ -412,7 +414,9 @@  discard block
 block discarded – undo
412 414
      * @param	integer	Session ID (from the session table). Default value of null means "get from context".
413 415
      * @param	integer	Learnpath ID (from c_lp table). Default value of null means "get from context".
414 416
      * @param	integer	Learnpath item ID (from the c_lp_item table). Default value of null means "get from context".
415
-     * @return	boolean	Result of the insert query
417
+     * @param integer $exe_id
418
+     * @param integer $position
419
+     * @return	false|string	Result of the insert query
416 420
      */
417 421
     public static function saveQuestionAttempt(
418 422
         $score,
@@ -582,6 +586,7 @@  discard block
 block discarded – undo
582 586
      * @param	int		Whether this answer is correct (1) or not (0)
583 587
      * @param	string	Coordinates of this point (e.g. 123;324)
584 588
      * @param	bool update results?
589
+     * @param integer $exe_id
585 590
      * @return	boolean	Result of the insert query
586 591
      * @uses Course code and user_id from global scope $_cid and $_user
587 592
      */
@@ -714,7 +719,6 @@  discard block
 block discarded – undo
714 719
     /**
715 720
      * Get every email stored in the database
716 721
      *
717
-     * @param int $etId
718 722
      * @return type
719 723
      * @assert () !== false
720 724
      */
@@ -782,11 +786,11 @@  discard block
 block discarded – undo
782 786
     /**
783 787
      * Save the new message for one event and for one language
784 788
      *
785
-     * @param string $eventName
789
+     * @param string $event_name
786 790
      * @param array $users
787 791
      * @param string $message
788 792
      * @param string $subject
789
-     * @param string $eventMessageLanguage
793
+     * @param string $event_message_language
790 794
      * @param int $activated
791 795
      */
792 796
     public static function save_event_type_message($event_name, $users, $message, $subject, $event_message_language, $activated)
@@ -920,10 +924,10 @@  discard block
 block discarded – undo
920 924
     }
921 925
 
922 926
     /**
923
-     * @param $user_id
927
+     * @param integer $user_id
924 928
      * @param $exerciseId
925
-     * @param $lp_id
926
-     * @param $lp_item_id
929
+     * @param integer $lp_id
930
+     * @param integer $lp_item_id
927 931
      * @return int
928 932
      */
929 933
     public static function get_attempt_count_not_finished($user_id, $exerciseId, $lp_id, $lp_item_id)
@@ -1100,6 +1104,7 @@  discard block
 block discarded – undo
1100 1104
      * @param   int     exercise id
1101 1105
      * @param   int $courseId
1102 1106
      * @param   int     session id
1107
+     * @param integer $user_id
1103 1108
      * @return  array   with the results
1104 1109
      *
1105 1110
      */
@@ -1195,6 +1200,7 @@  discard block
 block discarded – undo
1195 1200
      * @param   int     exercise id
1196 1201
      * @param   int  $courseId
1197 1202
      * @param   int     session id
1203
+     * @param integer $user_id
1198 1204
      * @return  array   with the results
1199 1205
      *
1200 1206
      */
@@ -1235,6 +1241,7 @@  discard block
 block discarded – undo
1235 1241
      * @param   int     exercise id
1236 1242
      * @param   string  course code
1237 1243
      * @param   int     session id
1244
+     * @param integer $exe_id
1238 1245
      * @return  array   with the results
1239 1246
      *
1240 1247
      */
@@ -1284,6 +1291,8 @@  discard block
 block discarded – undo
1284 1291
      * @param   int     lp id
1285 1292
      * @param   int     lp item id
1286 1293
      * @param   string 	order asc or desc
1294
+     * @param integer $courseId
1295
+     * @param string $order
1287 1296
      * @return  array   with the results
1288 1297
      *
1289 1298
      */
@@ -1343,7 +1352,7 @@  discard block
 block discarded – undo
1343 1352
      * @param   int     exercise id
1344 1353
      * @param   int     $courseId
1345 1354
      * @param   int     session id
1346
-     * @return  array   with the results
1355
+     * @return  string   with the results
1347 1356
      *
1348 1357
      */
1349 1358
     public static function count_exercise_attempts_by_user($user_id, $exercise_id, $courseId, $session_id = 0)
@@ -1519,7 +1528,7 @@  discard block
 block discarded – undo
1519 1528
      * @param   int     exercise id
1520 1529
      * @param   int   course id
1521 1530
      * @param   int     session id
1522
-     * @return  array   with the results
1531
+     * @return  integer   with the results
1523 1532
      *
1524 1533
      */
1525 1534
     public static function get_count_exercises_attempted_by_course($courseId, $session_id = 0)
Please login to merge, or discard this patch.
main/inc/lib/magpierss/extlib/Snoopy.class.inc 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -366,6 +366,9 @@  discard block
 block discarded – undo
366 366
 	Output:		$expandedLinks	the expanded links
367 367
 \*======================================================================*/
368 368
 
369
+	/**
370
+	 * @param string $links
371
+	 */
369 372
 	private function _expandlinks($links,$URI)
370 373
 	{
371 374
 		
@@ -400,6 +403,9 @@  discard block
 block discarded – undo
400 403
 	Output:		
401 404
 \*======================================================================*/
402 405
 	
406
+	/**
407
+	 * @param string $http_method
408
+	 */
403 409
 	private function _httprequest($url,$fp,$URI,$http_method,$content_type="",$body="")
404 410
 	{
405 411
 		if($this->passcookies && $this->_redirectaddr)
@@ -583,6 +589,9 @@  discard block
 block discarded – undo
583 589
 	Output:		
584 590
 \*======================================================================*/
585 591
 	
592
+	/**
593
+	 * @param string $http_method
594
+	 */
586 595
 	private function _httpsrequest($url,$URI,$http_method,$content_type="",$body="")
587 596
 	{
588 597
 		if($this->passcookies && $this->_redirectaddr)
@@ -766,6 +775,9 @@  discard block
 block discarded – undo
766 775
 	Input:		$fp	file pointer
767 776
 \*======================================================================*/
768 777
 	
778
+	/**
779
+	 * @param boolean $fp
780
+	 */
769 781
 	private function _connect(&$fp)
770 782
 	{
771 783
 		if(!empty($this->proxy_host) && !empty($this->proxy_port))
Please login to merge, or discard this patch.