Completed
Pull Request — 1.11.x (#1589)
by José
46:32
created
src/Chamilo/CoreBundle/Entity/Repository/SequenceRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
      *
76 76
      * @param int $resourceId
77 77
      * @param int $type
78
-     * @return boolean
78
+     * @return boolean|null
79 79
      */
80 80
     public function deleteResource($resourceId, $type)
81 81
     {
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,6 +71,8 @@  discard block
 block discarded – undo
71 71
 
72 72
     /**
73 73
      * @inheritdoc
74
+     * @param string $toolbar
75
+     * @param string $prefix
74 76
      */
75 77
     public function __construct(
76 78
         $toolbar = null,
@@ -253,7 +255,7 @@  discard block
 block discarded – undo
253 255
     }
254 256
 
255 257
     /**
256
-     * @return array
258
+     * @return string[]
257 259
      */
258 260
     public function getNewPageBlock()
259 261
     {
Please login to merge, or discard this patch.
main/inc/lib/attendance.lib.php 1 patch
Doc Comments   +24 added lines, -6 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      * Add attendances sheet inside table. This is the *list of* dates, not
278 278
      * a specific date in itself.
279 279
      * @param  bool   true for adding link in gradebook or false otherwise (optional)
280
-     * @return int    last attendance id
280
+     * @return false|string    last attendance id
281 281
      */
282 282
     public function attendance_add($link_to_gradebook = false)
283 283
     {
@@ -354,6 +354,7 @@  discard block
 block discarded – undo
354 354
      * edit attendances inside table
355 355
      * @param 	int	   attendance id
356 356
      * @param  	bool   true for adding link in gradebook or false otherwise (optional)
357
+     * @param integer $attendance_id
357 358
      * @return 	int    last id
358 359
      */
359 360
     public function attendance_edit($attendance_id, $link_to_gradebook = false)
@@ -429,6 +430,7 @@  discard block
 block discarded – undo
429 430
     /**
430 431
      * Restore attendance
431 432
      * @param 	int|array	   one or many attendances id
433
+     * @param integer $attendance_id
432 434
      * @return 	int    		   affected rows
433 435
      */
434 436
     public function attendance_restore($attendance_id)
@@ -478,7 +480,7 @@  discard block
 block discarded – undo
478 480
 
479 481
     /**
480 482
      * Delete attendances
481
-     * @param 	int|array	$attendance_id   one or many attendances id
483
+     * @param 	integer	$attendance_id   one or many attendances id
482 484
      * @return 	int    		   affected rows
483 485
      */
484 486
     public function attendance_delete($attendance_id)
@@ -530,7 +532,7 @@  discard block
 block discarded – undo
530 532
 
531 533
     /**
532 534
      * Changes visibility
533
-     * @param int|array	$attendanceId   one or many attendances id
535
+     * @param integer	$attendanceId   one or many attendances id
534 536
      * @param int status
535 537
      *
536 538
      * @return 	int affected rows
@@ -585,6 +587,7 @@  discard block
 block discarded – undo
585 587
      * Lock or unlock an attendance
586 588
      * @param   int     attendance id
587 589
      * @param   bool    True to lock or false otherwise
590
+     * @param integer $attendance_id
588 591
      */
589 592
     public function lock_attendance($attendance_id, $lock = true)
590 593
     {
@@ -918,7 +921,11 @@  discard block
 block discarded – undo
918 921
      * @param   string  Event type ('locked_attendance', 'done_attendance_sheet' ...)
919 922
      * @param   int     Last edit user id
920 923
      * @param   string  Calendar datetime value (optional, when event type is 'done_attendance_sheet')
921
-     * @return  int     Affected rows
924
+     * @param integer $attendance_id
925
+     * @param string $lastedit_date
926
+     * @param string $lastedit_type
927
+     * @param integer $lastedit_user_id
928
+     * @return  false|string     Affected rows
922 929
      */
923 930
     public function save_attendance_sheet_log(
924 931
         $attendance_id,
@@ -963,6 +970,7 @@  discard block
 block discarded – undo
963 970
     /**
964 971
      * Get number of done attendances inside current sheet
965 972
      * @param	int	   attendance id
973
+     * @param integer $attendance_id
966 974
      * @return 	int	   number of done attendances
967 975
      */
968 976
     public static function get_done_attendance_calendar($attendance_id)
@@ -1198,6 +1206,7 @@  discard block
 block discarded – undo
1198 1206
     /**
1199 1207
      * Get next attendance calendar without presences (done attendances)
1200 1208
      * @param	int	attendance id
1209
+     * @param integer $attendance_id
1201 1210
      * @return 	int attendance calendar id
1202 1211
      */
1203 1212
     public function get_next_attendance_calendar_id($attendance_id)
@@ -1226,6 +1235,7 @@  discard block
 block discarded – undo
1226 1235
     /**
1227 1236
      * Get next attendance calendar datetime without presences (done attendances)
1228 1237
      * @param	int	attendance id
1238
+     * @param integer $attendance_id
1229 1239
      * @return 	int UNIX time format datetime
1230 1240
      */
1231 1241
     public function get_next_attendance_calendar_datetime($attendance_id)
@@ -1254,6 +1264,7 @@  discard block
 block discarded – undo
1254 1264
      * Get user' score from current attendance
1255 1265
      * @param	int	$user_id
1256 1266
      * @param	int $attendance_id
1267
+     * @param integer $groupId
1257 1268
      * @return	int score
1258 1269
      */
1259 1270
     public function get_user_score($user_id, $attendance_id, $groupId = null)
@@ -1301,6 +1312,7 @@  discard block
 block discarded – undo
1301 1312
     /**
1302 1313
      * Get attendance calendar data by id
1303 1314
      * @param	int	attendance calendar id
1315
+     * @param integer $calendar_id
1304 1316
      * @return	array attendance calendar data
1305 1317
      */
1306 1318
     public function get_attendance_calendar_by_id($calendar_id)
@@ -1423,6 +1435,7 @@  discard block
 block discarded – undo
1423 1435
      * Get number of attendance calendar inside current attendance
1424 1436
      * @param	int	$attendance_id
1425 1437
      * @param	int	$groupId
1438
+     * @param boolean $done_attendance
1426 1439
      * @return	int number of dates in attendance calendar
1427 1440
      */
1428 1441
     public static function get_number_of_attendance_calendar($attendance_id, $groupId = 0, $done_attendance = NULL, $userId = 0)
@@ -1648,7 +1661,6 @@  discard block
 block discarded – undo
1648 1661
     /**
1649 1662
      * @param int $calendarId
1650 1663
      * @param int $courseId
1651
-     * @param int $groupId
1652 1664
      * @return array
1653 1665
      */
1654 1666
     public function getGroupListByAttendanceCalendar($calendarId, $courseId)
@@ -1688,7 +1700,6 @@  discard block
 block discarded – undo
1688 1700
     /**
1689 1701
      * @param int $calendarId
1690 1702
      * @param int $courseId
1691
-     * @param int $groupId
1692 1703
      *
1693 1704
      * @return array
1694 1705
      */
@@ -1789,6 +1800,8 @@  discard block
 block discarded – undo
1789 1800
      * edit a datetime inside attendance calendar table
1790 1801
      * @param	int	attendance calendar id
1791 1802
      * @param	int	attendance id
1803
+     * @param integer $calendar_id
1804
+     * @param integer $attendance_id
1792 1805
      * @return	int affected rows
1793 1806
      */
1794 1807
     public function attendance_calendar_edit($calendar_id, $attendance_id)
@@ -1828,6 +1841,8 @@  discard block
 block discarded – undo
1828 1841
      * @param	int		attendance calendar id
1829 1842
      * @param	int		attendance id
1830 1843
      * @param	bool	true for removing all calendar inside current attendance, false for removing by calendar id
1844
+     * @param integer $calendar_id
1845
+     * @param integer $attendance_id
1831 1846
      * @return	int affected rows
1832 1847
      */
1833 1848
     public function attendance_calendar_delete($calendar_id, $attendance_id , $all_delete = false)
@@ -1890,6 +1905,9 @@  discard block
 block discarded – undo
1890 1905
         $this->course_id = $course_id;
1891 1906
     }
1892 1907
 
1908
+    /**
1909
+     * @param string $datetime
1910
+     */
1893 1911
     public function set_date_time($datetime)
1894 1912
     {
1895 1913
         $this->date_time = $datetime;
Please login to merge, or discard this patch.
plugin/buycourses/src/buy_course_plugin.class.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     /**
47 47
      *
48
-     * @return StaticPlugin
48
+     * @return BuyCoursesPlugin
49 49
      */
50 50
     static function create()
51 51
     {
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     /**
269 269
      * Save a transfer account information
270 270
      * @param array $params The transfer account
271
-     * @return int Rows affected. Otherwise return false
271
+     * @return false|string Rows affected. Otherwise return false
272 272
      */
273 273
     public function saveTransferAccount($params)
274 274
     {
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
     /**
681 681
      * Get session info
682 682
      * @param array $sessionId The session ID
683
-     * @return array
683
+     * @return Session
684 684
      */
685 685
     public function getSessionInfo($sessionId)
686 686
     {
@@ -773,7 +773,7 @@  discard block
 block discarded – undo
773 773
      * Register a sale
774 774
      * @param int $itemId The product ID
775 775
      * @param int $paymentType The payment type
776
-     * @return boolean
776
+     * @return false|string
777 777
      */
778 778
     public function registerSale($itemId, $paymentType)
779 779
     {
@@ -955,7 +955,7 @@  discard block
 block discarded – undo
955 955
 
956 956
     /**
957 957
      * Get payment types
958
-     * @return array
958
+     * @return string[]
959 959
      */
960 960
     public function getPaymentTypes()
961 961
     {
@@ -994,7 +994,7 @@  discard block
 block discarded – undo
994 994
 
995 995
     /**
996 996
      * Get the statuses for sales
997
-     * @return array
997
+     * @return string[]
998 998
      */
999 999
     public function getSaleStatuses()
1000 1000
     {
@@ -1007,7 +1007,7 @@  discard block
 block discarded – undo
1007 1007
 
1008 1008
     /**
1009 1009
      * Get the statuses for Payouts
1010
-     * @return array
1010
+     * @return string[]
1011 1011
      */
1012 1012
     public function getPayoutStatuses()
1013 1013
     {
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
 
1021 1021
     /**
1022 1022
      * Get the list of product types
1023
-     * @return array
1023
+     * @return string[]
1024 1024
      */
1025 1025
     public function getProductTypes()
1026 1026
     {
@@ -1401,7 +1401,7 @@  discard block
 block discarded – undo
1401 1401
     /**
1402 1402
      * Register a item
1403 1403
      * @param array $itemData The item data
1404
-     * @return int The item ID. Otherwise return false
1404
+     * @return false|string The item ID. Otherwise return false
1405 1405
      */
1406 1406
     public function registerItem(array $itemData)
1407 1407
     {
@@ -1559,7 +1559,7 @@  discard block
 block discarded – undo
1559 1559
     /**
1560 1560
      * Verify if the beneficiary have a paypal account
1561 1561
      * @param int $userId
1562
-     * @return true if the user have a paypal account, false if not
1562
+     * @return boolean if the user have a paypal account, false if not
1563 1563
      */
1564 1564
     public function verifyPaypalAccountByBeneficiary($userId)
1565 1565
     {
@@ -1681,7 +1681,7 @@  discard block
 block discarded – undo
1681 1681
     /**
1682 1682
      * Register addicional service
1683 1683
      * @param array params $service
1684
-     * @return mixed response
1684
+     * @return string|false response
1685 1685
      */
1686 1686
     public function storeService($service)
1687 1687
     {
@@ -1838,7 +1838,7 @@  discard block
 block discarded – undo
1838 1838
 
1839 1839
     /**
1840 1840
      * Get the statuses for sales
1841
-     * @return array
1841
+     * @return string[]
1842 1842
      */
1843 1843
     public function getServiceSaleStatuses()
1844 1844
     {
@@ -2094,7 +2094,7 @@  discard block
 block discarded – undo
2094 2094
      * @param int $paymentType The payment type
2095 2095
      * @param int $infoSelect The ID for Service Type
2096 2096
      * @param int $trial trial mode
2097
-     * @return boolean
2097
+     * @return false|string
2098 2098
      */
2099 2099
     public function registerServiceSale($serviceId, $paymentType, $infoSelect, $trial = null)
2100 2100
     {
Please login to merge, or discard this patch.
main/survey/survey.lib.php 1 patch
Doc Comments   +19 added lines, -16 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
@@ -1562,8 +1562,8 @@  discard block
 block discarded – undo
1562 1562
      * This function deletes all the answers anyone has given on this survey
1563 1563
      * This function is normally only called when a survey is deleted
1564 1564
      *
1565
-     * @param $survey_id the id of the survey that has to be deleted
1566
-     * @return true
1565
+     * @param integer $survey_id the id of the survey that has to be deleted
1566
+     * @return boolean
1567 1567
      *
1568 1568
      * @todo write the function
1569 1569
      *
@@ -1838,7 +1838,7 @@  discard block
 block discarded – undo
1838 1838
     /**
1839 1839
      * This function checks the parameters that are used in this page
1840 1840
      *
1841
-     * @return 	string 	The header, an error and the footer if any parameter fails, else it returns true
1841
+     * @return 	null|boolean 	The header, an error and the footer if any parameter fails, else it returns true
1842 1842
      * @author Patrick Cool <[email protected]>, Ghent University
1843 1843
      * @version February 2007
1844 1844
      */
@@ -2392,6 +2392,7 @@  discard block
 block discarded – undo
2392 2392
      * Display score data about a survey question
2393 2393
      * @param	array	Question info
2394 2394
      * @param	integer	The offset of results shown
2395
+     * @param integer $offset
2395 2396
      * @return	void 	(direct output)
2396 2397
      */
2397 2398
     public static function display_question_report_score($survey_data, $question, $offset)
@@ -3032,7 +3033,7 @@  discard block
 block discarded – undo
3032 3033
      * Quite similar to display_complete_report(), returns an HTML string
3033 3034
      * that can be used in a csv file
3034 3035
      * @todo consider merging this function with display_complete_report
3035
-     * @return	string	The contents of a csv file
3036
+     * @return	false|null	The contents of a csv file
3036 3037
      * @author Patrick Cool <[email protected]>, Ghent University
3037 3038
      * @version February 2007
3038 3039
      */
@@ -3254,7 +3255,7 @@  discard block
 block discarded – undo
3254 3255
      * @param	array	User's answers
3255 3256
      * @param 	mixed	User ID or user details as string - Used as a string in the result string
3256 3257
      * @param	boolean	Whether to display user fields or not
3257
-     * @return	string	One line of the csv file
3258
+     * @return	string[]	One line of the csv file
3258 3259
      */
3259 3260
     public static function export_complete_report_row_xls(
3260 3261
         $survey_data,
@@ -3560,6 +3561,7 @@  discard block
 block discarded – undo
3560 3561
      *
3561 3562
      * @param	integer	Survey ID
3562 3563
      * @param	integer	Question ID
3564
+     * @param integer $survey_id
3563 3565
      * @return 	Array	Array containing all answers of all users, grouped by user
3564 3566
      *
3565 3567
      * @author Patrick Cool <[email protected]>, Ghent University
@@ -3854,7 +3856,7 @@  discard block
 block discarded – undo
3854 3856
 
3855 3857
     /**
3856 3858
      * @param $params
3857
-     * @return bool|int
3859
+     * @return false|string
3858 3860
      */
3859 3861
     public static function save_invitation($params)
3860 3862
     {
@@ -3908,6 +3910,7 @@  discard block
 block discarded – undo
3908 3910
      *
3909 3911
      * @param int invitedUser - the userId (course user) or emailaddress of additional user
3910 3912
      * $param string $invitation_code - the unique invitation code for the URL
3913
+     * @param string|null $invitation_text
3911 3914
      * @return	void
3912 3915
      */
3913 3916
     public static function send_invitation_mail($invitedUser, $invitation_code, $invitation_title, $invitation_text)
@@ -4802,7 +4805,7 @@  discard block
 block discarded – undo
4802 4805
      * @author Isaac Flores Paz <[email protected]>
4803 4806
      * @param int $user_id - User ID
4804 4807
      * @param string $survey_code
4805
-     * @param int $user_id_answer - User in survey answer table (user id or anonymus)
4808
+     * @param int $user_answer - User in survey answer table (user id or anonymus)
4806 4809
      *
4807 4810
      * @return boolean
4808 4811
      */
@@ -4975,7 +4978,7 @@  discard block
 block discarded – undo
4975 4978
     /**
4976 4979
      * Check if the current survey has answers
4977 4980
      *
4978
-     * @param $surveyId
4981
+     * @param integer $surveyId
4979 4982
      * @return boolean return true if the survey has answers, false otherwise
4980 4983
      */
4981 4984
     public static function checkIfSurveyHasAnswers($surveyId)
Please login to merge, or discard this patch.