Completed
Push — 1.11.x ( c0f658...e2faf7 )
by José
36:56
created
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/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.
plugin/buycourses/src/Requests/IRI.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 	 *
250 250
 	 * Returns false if $base is not absolute, otherwise an IRI.
251 251
 	 *
252
-	 * @param IRI|string $base (Absolute) Base IRI
252
+	 * @param string $base (Absolute) Base IRI
253 253
 	 * @param IRI|string $relative Relative IRI
254 254
 	 * @return IRI|false
255 255
 	 */
@@ -984,6 +984,7 @@  discard block
 block discarded – undo
984 984
 	 * Convert an IRI to a URI (or parts thereof)
985 985
 	 *
986 986
 	 * @param string|bool IRI to convert (or false from {@see get_iri})
987
+	 * @param false|string $string
987 988
 	 * @return string|false URI if IRI is valid, false otherwise.
988 989
 	 */
989 990
 	protected function to_uri($string) {
Please login to merge, or discard this patch.
plugin/buycourses/src/Requests/Session.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
 	 *
233 233
 	 * @param array $request Request data (same form as {@see request_multiple})
234 234
 	 * @param boolean $merge_options Should we merge options as well?
235
-	 * @return array Request data
235
+	 * @return string Request data
236 236
 	 */
237 237
 	protected function merge_request($request, $merge_options = true) {
238 238
 		if ($this->url !== null) {
Please login to merge, or discard this patch.