Completed
Push — 1.11.x ( 39b001...e53f2f )
by José
67:52 queued 35:49
created
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.
main/exercise/exercise.class.php 1 patch
Doc Comments   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     }
354 354
 
355 355
     /**
356
-     * @return int
356
+     * @return string
357 357
      */
358 358
     public function selectPassPercentage()
359 359
     {
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
      * tells if questions are selected randomly, and if so returns the draws
463 463
      *
464 464
      * @author Olivier Brouckaert
465
-     * @return integer - 0 if not random, otherwise the draws
465
+     * @return boolean - 0 if not random, otherwise the draws
466 466
      */
467 467
     public function isRandom()
468 468
     {
@@ -2838,7 +2838,7 @@  discard block
 block discarded – undo
2838 2838
      * @param int  int lp id
2839 2839
      * @param int  int lp item id
2840 2840
      * @param int  int lp item_view id
2841
-     * @param float $weight
2841
+     * @param integer $weight
2842 2842
      * @param array question list
2843 2843
      */
2844 2844
     public function save_stat_track_exercise_info(
@@ -5246,7 +5246,7 @@  discard block
 block discarded – undo
5246 5246
      * @param int $exe_id
5247 5247
      * @param float $score
5248 5248
      * @param float $weight
5249
-     * @return bool
5249
+     * @return false|null
5250 5250
      */
5251 5251
     public function send_mail_notification_for_exam($question_list_answers, $origin, $exe_id, $score, $weight)
5252 5252
     {
@@ -5445,6 +5445,9 @@  discard block
 block discarded – undo
5445 5445
         }
5446 5446
     }
5447 5447
 
5448
+    /**
5449
+     * @param integer $exe_id
5450
+     */
5448 5451
     function send_notification_for_oral_questions($question_list_answers, $origin, $exe_id)
5449 5452
     {
5450 5453
         if (api_get_course_setting('email_alert_manager_on_new_quiz') != 1 ) {
@@ -5596,7 +5599,7 @@  discard block
 block discarded – undo
5596 5599
      * @param int     Maximum number of attempts (0 if no limit)
5597 5600
      * @param int     Feedback type
5598 5601
      * @todo this was function was added due the import exercise via CSV
5599
-     * @return    int New exercise ID
5602
+     * @return    string New exercise ID
5600 5603
      */
5601 5604
     public function createExercise(
5602 5605
         $title,
@@ -6931,7 +6934,7 @@  discard block
 block discarded – undo
6931 6934
      * @param bool $show_comment
6932 6935
      * @param null $exercise_feedback
6933 6936
      * @param bool $show_answers
6934
-     * @param null $modelType
6937
+     * @param integer $modelType
6935 6938
      * @param bool $categoryMinusOne
6936 6939
      * @return bool|null|string
6937 6940
      */
Please login to merge, or discard this patch.
main/forum/forumfunction.inc.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3132,7 +3132,7 @@  discard block
 block discarded – undo
3132 3132
  * @param integer $thread_qualify
3133 3133
  * @param integer $qualify_time
3134 3134
  * @param integer $session_id
3135
- * @return array optional
3135
+ * @return string|null optional
3136 3136
  * @author Isaac Flores <[email protected]>, U.N.A.S University
3137 3137
  * @version October 2008, dokeos  1.8.6
3138 3138
  */
@@ -3952,7 +3952,7 @@  discard block
 block discarded – undo
3952 3952
 
3953 3953
 /**
3954 3954
  * This function is used to find all the information about what's new in the forum tool
3955
- * @return void
3955
+ * @return false|null
3956 3956
  *
3957 3957
  * @author Patrick Cool <[email protected]>, Ghent University
3958 3958
  * @version february 2006, dokeos 1.8
Please login to merge, or discard this patch.
plugin/buycourses/src/buy_course_plugin.class.php 1 patch
Doc Comments   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     /**
51 51
      *
52
-     * @return StaticPlugin
52
+     * @return BuyCoursesPlugin
53 53
      */
54 54
     static function create()
55 55
     {
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
     /**
278 278
      * Save a transfer account information
279 279
      * @param array $params The transfer account
280
-     * @return int Rows affected. Otherwise return false
280
+     * @return false|string Rows affected. Otherwise return false
281 281
      */
282 282
     public function saveTransferAccount($params)
283 283
     {
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
     /**
691 691
      * Get session info
692 692
      * @param array $sessionId The session ID
693
-     * @return array
693
+     * @return Session
694 694
      */
695 695
     public function getSessionInfo($sessionId)
696 696
     {
@@ -783,7 +783,7 @@  discard block
 block discarded – undo
783 783
      * Register a sale
784 784
      * @param int $itemId The product ID
785 785
      * @param int $paymentType The payment type
786
-     * @return boolean
786
+     * @return false|string
787 787
      */
788 788
     public function registerSale($itemId, $paymentType)
789 789
     {
@@ -965,7 +965,7 @@  discard block
 block discarded – undo
965 965
 
966 966
     /**
967 967
      * Get payment types
968
-     * @return array
968
+     * @return string[]
969 969
      */
970 970
     public function getPaymentTypes()
971 971
     {
@@ -1004,7 +1004,7 @@  discard block
 block discarded – undo
1004 1004
 
1005 1005
     /**
1006 1006
      * Get the statuses for sales
1007
-     * @return array
1007
+     * @return string[]
1008 1008
      */
1009 1009
     public function getSaleStatuses()
1010 1010
     {
@@ -1017,7 +1017,7 @@  discard block
 block discarded – undo
1017 1017
 
1018 1018
     /**
1019 1019
      * Get the statuses for Payouts
1020
-     * @return array
1020
+     * @return string[]
1021 1021
      */
1022 1022
     public function getPayoutStatuses()
1023 1023
     {
@@ -1030,7 +1030,7 @@  discard block
 block discarded – undo
1030 1030
 
1031 1031
     /**
1032 1032
      * Get the list of product types
1033
-     * @return array
1033
+     * @return string[]
1034 1034
      */
1035 1035
     public function getProductTypes()
1036 1036
     {
@@ -1042,7 +1042,7 @@  discard block
 block discarded – undo
1042 1042
 
1043 1043
     /**
1044 1044
      * Get the list of service types
1045
-     * @return array
1045
+     * @return string[]
1046 1046
      */
1047 1047
     public function getServiceTypes()
1048 1048
     {
@@ -1424,7 +1424,7 @@  discard block
 block discarded – undo
1424 1424
     /**
1425 1425
      * Register a item
1426 1426
      * @param array $itemData The item data
1427
-     * @return int The item ID. Otherwise return false
1427
+     * @return false|string The item ID. Otherwise return false
1428 1428
      */
1429 1429
     public function registerItem(array $itemData)
1430 1430
     {
@@ -1582,7 +1582,7 @@  discard block
 block discarded – undo
1582 1582
     /**
1583 1583
      * Verify if the beneficiary have a paypal account
1584 1584
      * @param int $userId
1585
-     * @return true if the user have a paypal account, false if not
1585
+     * @return boolean if the user have a paypal account, false if not
1586 1586
      */
1587 1587
     public function verifyPaypalAccountByBeneficiary($userId)
1588 1588
     {
@@ -1704,7 +1704,7 @@  discard block
 block discarded – undo
1704 1704
     /**
1705 1705
      * Register addicional service
1706 1706
      * @param array params $service
1707
-     * @return mixed response
1707
+     * @return string|false response
1708 1708
      */
1709 1709
     public function storeService($service)
1710 1710
     {
@@ -1861,7 +1861,7 @@  discard block
 block discarded – undo
1861 1861
 
1862 1862
     /**
1863 1863
      * Get the statuses for sales
1864
-     * @return array
1864
+     * @return string[]
1865 1865
      */
1866 1866
     public function getServiceSaleStatuses()
1867 1867
     {
@@ -2118,7 +2118,7 @@  discard block
 block discarded – undo
2118 2118
      * @param int $paymentType The payment type
2119 2119
      * @param int $infoSelect The ID for Service Type
2120 2120
      * @param int $trial trial mode
2121
-     * @return boolean
2121
+     * @return false|string
2122 2122
      */
2123 2123
     public function registerServiceSale($serviceId, $paymentType, $infoSelect, $trial = null)
2124 2124
     {
Please login to merge, or discard this patch.
plugin/buycourses/src/Culqi/Client.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@
 block discarded – undo
17 17
     const BASE_URL = "https://integ-pago.culqi.com/api/v1";
18 18
 
19 19
 
20
+    /**
21
+     * @param string $method
22
+     */
20 23
     public function request($method, $url, $api_key, $data = NULL, $headers= array("Content-Type" => "application/json", "Accept" => "application/json") ) {
21 24
         try {
22 25
             $options = array(
Please login to merge, or discard this patch.
plugin/buycourses/src/Culqi/Resource.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -3,6 +3,9 @@
 block discarded – undo
3 3
 
4 4
 class Resource extends Client {
5 5
 
6
+    /**
7
+     * @param Culqi $culqi
8
+     */
6 9
     public function __construct($culqi)
7 10
     {
8 11
         $this->culqi = $culqi;
Please login to merge, or discard this patch.
plugin/buycourses/src/Requests.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -226,6 +226,7 @@  discard block
 block discarded – undo
226 226
 	 */
227 227
 	/**
228 228
 	 * Send a GET request
229
+	 * @param string $url
229 230
 	 */
230 231
 	public static function get($url, $headers = array(), $options = array()) {
231 232
 		return self::request($url, $headers, null, self::GET, $options);
@@ -240,6 +241,7 @@  discard block
 block discarded – undo
240 241
 
241 242
 	/**
242 243
 	 * Send a DELETE request
244
+	 * @param string $url
243 245
 	 */
244 246
 	public static function delete($url, $headers = array(), $options = array()) {
245 247
 		return self::request($url, $headers, null, self::DELETE, $options);
@@ -263,6 +265,7 @@  discard block
 block discarded – undo
263 265
 	 */
264 266
 	/**
265 267
 	 * Send a POST request
268
+	 * @param string $url
266 269
 	 */
267 270
 	public static function post($url, $headers = array(), $data = array(), $options = array()) {
268 271
 		return self::request($url, $headers, $data, self::POST, $options);
@@ -288,6 +291,7 @@  discard block
 block discarded – undo
288 291
 	 * specification recommends that should send an ETag
289 292
 	 *
290 293
 	 * @link https://tools.ietf.org/html/rfc5789
294
+	 * @param string $url
291 295
 	 */
292 296
 	public static function patch($url, $headers, $data = array(), $options = array()) {
293 297
 		return self::request($url, $headers, $data, self::PATCH, $options);
Please login to merge, or discard this patch.
plugin/buycourses/src/Requests/Cookie.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 *
63 63
 	 * @param string $name
64 64
 	 * @param string $value
65
-	 * @param array|Requests_Utility_CaseInsensitiveDictionary $attributes Associative array of attribute data
65
+	 * @param Requests_Utility_CaseInsensitiveDictionary $attributes Associative array of attribute data
66 66
 	 */
67 67
 	public function __construct($name, $value, $attributes = array(), $flags = array(), $reference_time = null) {
68 68
 		$this->name = $name;
@@ -377,6 +377,7 @@  discard block
 block discarded – undo
377 377
 	 * specifies some of this handling, but not in a thorough manner.
378 378
 	 *
379 379
 	 * @param string Cookie header value (from a Set-Cookie header)
380
+	 * @param integer $reference_time
380 381
 	 * @return Requests_Cookie Parsed cookie object
381 382
 	 */
382 383
 	public static function parse($string, $name = '', $reference_time = null) {
Please login to merge, or discard this patch.
plugin/buycourses/src/Requests/IDNAEncoder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -357,7 +357,7 @@
 block discarded – undo
357 357
 	 * @param int $delta
358 358
 	 * @param int $numpoints
359 359
 	 * @param bool $firsttime
360
-	 * @return int New bias
360
+	 * @return double New bias
361 361
 	 */
362 362
 	protected static function adapt($delta, $numpoints, $firsttime) {
363 363
 #	function adapt(delta,numpoints,firsttime):
Please login to merge, or discard this patch.