Completed
Pull Request — 1.11.x (#1274)
by José
554:53 queued 513:46
created
main/inc/lib/message.lib.php 1 patch
Doc Comments   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -639,6 +639,8 @@  discard block
 block discarded – undo
639 639
      * @param  int	message id
640 640
      * @param  int	message user id (receiver user id or sender user id)
641 641
      * @param  int	group id (optional)
642
+     * @param integer $message_id
643
+     * @param integer $message_uid
642 644
      * @return void
643 645
      */
644 646
     public static function delete_message_attachment_file($message_id, $message_uid, $group_id = 0)
@@ -683,7 +685,7 @@  discard block
 block discarded – undo
683 685
      * update messages by user id and message id
684 686
      * @param  int		$user_id
685 687
      * @param  int		$message_id
686
-     * @return resource
688
+     * @return false|null
687 689
      */
688 690
     public static function update_message($user_id, $message_id)
689 691
     {
@@ -703,7 +705,7 @@  discard block
 block discarded – undo
703 705
      * @param int $user_id
704 706
      * @param int $message_id
705 707
      * @param string $type
706
-     * @return bool
708
+     * @return false|null
707 709
      */
708 710
     public static function update_message_status($user_id, $message_id,$type)
709 711
     {
@@ -740,6 +742,7 @@  discard block
 block discarded – undo
740 742
     /**
741 743
      * get messages by group id
742 744
      * @param  int		group id
745
+     * @param integer $group_id
743 746
      * @return array
744 747
      */
745 748
     public static function get_messages_by_group($group_id)
@@ -1477,7 +1480,7 @@  discard block
 block discarded – undo
1477 1480
      * Sort date by desc from a multi-dimensional array
1478 1481
      * @param array $array1  first array to compare
1479 1482
      * @param array $array2  second array to compare
1480
-     * @return bool
1483
+     * @return integer
1481 1484
      */
1482 1485
     public function order_desc_date($array1, $array2)
1483 1486
     {
@@ -1555,7 +1558,6 @@  discard block
 block discarded – undo
1555 1558
     /**
1556 1559
      * @param $id
1557 1560
      * @param array $params
1558
-     * @param string $display
1559 1561
      * @return string
1560 1562
      */
1561 1563
     public static function generate_invitation_form($id, $params = array())
@@ -1644,7 +1646,7 @@  discard block
 block discarded – undo
1644 1646
 
1645 1647
     /**
1646 1648
      * @param string $keyword
1647
-     * @return null|string
1649
+     * @return string
1648 1650
      */
1649 1651
     public static function outbox_display($keyword = '')
1650 1652
     {
Please login to merge, or discard this patch.
main/inc/lib/course_category.lib.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @param string $canHaveCourses
104 104
      * @param int $parent_id
105 105
      *
106
-     * @return bool
106
+     * @return false|string
107 107
      */
108 108
     public static function addNode($code, $name, $canHaveCourses, $parent_id)
109 109
     {
@@ -297,8 +297,7 @@  discard block
 block discarded – undo
297 297
     /**
298 298
      * Counts the number of children categories a category has
299 299
      * @param int $categoryId The ID of the category of which we want to count the children
300
-     * @param int $count The number of subcategories we counted this far
301
-     * @return mixed The number of subcategories this category has
300
+     * @return integer The number of subcategories this category has
302 301
      */
303 302
     public static function courseCategoryChildrenCount($categoryId)
304 303
     {
@@ -476,7 +475,7 @@  discard block
 block discarded – undo
476 475
     /**
477 476
      * @param int $id
478 477
      *
479
-     * @return bool
478
+     * @return boolean|null
480 479
      */
481 480
     public static function addToUrl($id)
482 481
     {
@@ -958,7 +957,7 @@  discard block
 block discarded – undo
958 957
      * Get Pagination HTML div
959 958
      * @param $pageCurrent
960 959
      * @param $pageLength
961
-     * @param $pageTotal
960
+     * @param integer $pageTotal
962 961
      * @return string
963 962
      */
964 963
     public static function getCatalogPagination($pageCurrent, $pageLength, $pageTotal)
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/Session.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
     }
365 365
 
366 366
     /**
367
-     * @param $courses
367
+     * @param ArrayCollection $courses
368 368
      */
369 369
     public function setCourses($courses)
370 370
     {
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
      * @param Course $course
461 461
      * @param string $status
462 462
      *
463
-     * @return \Doctrine\Common\Collections\Collection|static
463
+     * @return ArrayCollection
464 464
      */
465 465
     public function getUserInCourse(User $user, Course $course, $status = null)
466 466
     {
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
      * Set description
507 507
      *
508 508
      * @param string $description
509
-     * @return Groups
509
+     * @return Session
510 510
      */
511 511
     public function setDescription($description)
512 512
     {
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
     }
840 840
 
841 841
     /**
842
-     * @return array
842
+     * @return string[]
843 843
      */
844 844
     public static function getStatusList()
845 845
     {
@@ -991,7 +991,7 @@  discard block
 block discarded – undo
991 991
      * Get user from course by status
992 992
      * @param \Chamilo\CoreBundle\Entity\Course $course
993 993
      * @param string $status
994
-     * @return \Doctrine\Common\Collections\Collection|static
994
+     * @return ArrayCollection
995 995
      */
996 996
     public function getUserCourseSubscriptionsByStatus(Course $course, $status)
997 997
     {
Please login to merge, or discard this patch.
src/Chamilo/PageBundle/Entity/User.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -964,7 +964,7 @@  discard block
 block discarded – undo
964 964
     /**
965 965
      * Get pictureUri
966 966
      *
967
-     * @return Media
967
+     * @return string
968 968
      */
969 969
     public function getPictureUri()
970 970
     {
@@ -1341,7 +1341,7 @@  discard block
 block discarded – undo
1341 1341
     }
1342 1342
 
1343 1343
     /**
1344
-     * @return Media
1344
+     * @return string
1345 1345
      */
1346 1346
     public function getAvatar()
1347 1347
     {
@@ -1610,7 +1610,7 @@  discard block
 block discarded – undo
1610 1610
     /**
1611 1611
      * Returns the creation date.
1612 1612
      *
1613
-     * @return \DateTime|null
1613
+     * @return \DateTime
1614 1614
      */
1615 1615
     public function getCreatedAt()
1616 1616
     {
@@ -1634,7 +1634,7 @@  discard block
 block discarded – undo
1634 1634
     /**
1635 1635
      * Returns the last update date.
1636 1636
      *
1637
-     * @return \DateTime|null
1637
+     * @return \DateTime
1638 1638
      */
1639 1639
     public function getUpdatedAt()
1640 1640
     {
@@ -1644,7 +1644,7 @@  discard block
 block discarded – undo
1644 1644
     /**
1645 1645
      * Returns the expiration date.
1646 1646
      *
1647
-     * @return \DateTime|null
1647
+     * @return \DateTime
1648 1648
      */
1649 1649
     public function getExpiresAt()
1650 1650
     {
@@ -2108,7 +2108,7 @@  discard block
 block discarded – undo
2108 2108
       /**
2109 2109
      * Returns the user roles
2110 2110
      *
2111
-     * @return array The roles
2111
+     * @return string[] The roles
2112 2112
      */
2113 2113
     public function getRoles()
2114 2114
     {
Please login to merge, or discard this patch.
plugin/vchamilo/cli/clilib.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
  * @param string $prompt text prompt, should include possible options
192 192
  * @param string $default default value when enter pressed
193 193
  * @param array $options list of allowed options, empty means any text
194
- * @param bool $casesensitive true if options are case sensitive
194
+ * @param bool $casesensitiveoptions true if options are case sensitive
195 195
  * @return string entered text
196 196
  */
197 197
 function cli_input($prompt, $default='', array $options=null, $casesensitiveoptions=false) {
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 /**
289 289
  * Print or return section separator string
290 290
  * @param bool $return false means print, true return as string
291
- * @return mixed void or string
291
+ * @return string|null void or string
292 292
  */
293 293
 function cli_separator($return=false) {
294 294
     $separator = str_repeat('-', 79)."\n";
Please login to merge, or discard this patch.
src/Chamilo/FaqBundle/Entity/Category.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      *
94 94
      * @param string $rank
95 95
      *
96
-     * @return Question
96
+     * @return Category
97 97
      */
98 98
     public function setRank($rank)
99 99
     {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     /**
202 202
      * Get questions
203 203
      *
204
-     * @return \Doctrine\Common\Collections\Collection
204
+     * @return Question[]
205 205
      */
206 206
     public function getQuestions()
207 207
     {
Please login to merge, or discard this patch.
src/Chamilo/ContactBundle/Controller/ContactController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      * @Route("/contact")
20 20
      *
21 21
      * @param Request $request
22
-     * @return mixed
22
+     * @return Response
23 23
      */
24 24
     public function indexAction(Request $request)
25 25
     {
Please login to merge, or discard this patch.
main/inc/lib/events.lib.php 1 patch
Doc Comments   +20 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
@@ -313,6 +313,9 @@  discard block
 block discarded – undo
313 313
      * @param   int     session_id
314 314
      * @param   int     learnpath_id (id of the learnpath)
315 315
      * @param   int     learnpath_item_id (id of the learnpath_item)
316
+     * @param integer $score
317
+     * @param integer $weighting
318
+     * @param integer $session_id
316 319
      *
317 320
      * @author Sebastien Piraux <[email protected]>
318 321
      * @author Julio Montoya Armas <[email protected]> Reworked 2010
@@ -414,7 +417,9 @@  discard block
 block discarded – undo
414 417
      * @param	integer	Session ID (from the session table). Default value of null means "get from context".
415 418
      * @param	integer	Learnpath ID (from c_lp table). Default value of null means "get from context".
416 419
      * @param	integer	Learnpath item ID (from the c_lp_item table). Default value of null means "get from context".
417
-     * @return	boolean	Result of the insert query
420
+     * @param integer $exe_id
421
+     * @param integer $position
422
+     * @return	false|string	Result of the insert query
418 423
      */
419 424
     public static function saveQuestionAttempt(
420 425
         $score,
@@ -581,6 +586,7 @@  discard block
 block discarded – undo
581 586
      * @param	int		Whether this answer is correct (1) or not (0)
582 587
      * @param	string	Coordinates of this point (e.g. 123;324)
583 588
      * @param	bool update results?
589
+     * @param integer $exe_id
584 590
      * @return	boolean	Result of the insert query
585 591
      * @uses Course code and user_id from global scope $_cid and $_user
586 592
      */
@@ -720,7 +726,6 @@  discard block
 block discarded – undo
720 726
     /**
721 727
      * Get every email stored in the database
722 728
      *
723
-     * @param int $etId
724 729
      * @return type
725 730
      * @assert () !== false
726 731
      */
@@ -788,11 +793,11 @@  discard block
 block discarded – undo
788 793
     /**
789 794
      * Save the new message for one event and for one language
790 795
      *
791
-     * @param string $eventName
796
+     * @param string $event_name
792 797
      * @param array $users
793 798
      * @param string $message
794 799
      * @param string $subject
795
-     * @param string $eventMessageLanguage
800
+     * @param string $event_message_language
796 801
      * @param int $activated
797 802
      */
798 803
     public static function save_event_type_message($event_name, $users, $message, $subject, $event_message_language, $activated)
@@ -926,10 +931,10 @@  discard block
 block discarded – undo
926 931
     }
927 932
 
928 933
     /**
929
-     * @param $user_id
934
+     * @param integer $user_id
930 935
      * @param $exerciseId
931
-     * @param $lp_id
932
-     * @param $lp_item_id
936
+     * @param integer $lp_id
937
+     * @param integer $lp_item_id
933 938
      * @return int
934 939
      */
935 940
     public static function get_attempt_count_not_finished($user_id, $exerciseId, $lp_id, $lp_item_id)
@@ -1106,6 +1111,7 @@  discard block
 block discarded – undo
1106 1111
      * @param   int     exercise id
1107 1112
      * @param   int $courseId
1108 1113
      * @param   int     session id
1114
+     * @param integer $user_id
1109 1115
      * @return  array   with the results
1110 1116
      *
1111 1117
      */
@@ -1201,6 +1207,7 @@  discard block
 block discarded – undo
1201 1207
      * @param   int     exercise id
1202 1208
      * @param   int  $courseId
1203 1209
      * @param   int     session id
1210
+     * @param integer $user_id
1204 1211
      * @return  array   with the results
1205 1212
      *
1206 1213
      */
@@ -1241,6 +1248,7 @@  discard block
 block discarded – undo
1241 1248
      * @param   int     exercise id
1242 1249
      * @param   string  course code
1243 1250
      * @param   int     session id
1251
+     * @param integer $exe_id
1244 1252
      * @return  array   with the results
1245 1253
      *
1246 1254
      */
@@ -1290,6 +1298,8 @@  discard block
 block discarded – undo
1290 1298
      * @param   int     lp id
1291 1299
      * @param   int     lp item id
1292 1300
      * @param   string 	order asc or desc
1301
+     * @param integer $courseId
1302
+     * @param string $order
1293 1303
      * @return  array   with the results
1294 1304
      *
1295 1305
      */
@@ -1349,7 +1359,7 @@  discard block
 block discarded – undo
1349 1359
      * @param   int     exercise id
1350 1360
      * @param   int     $courseId
1351 1361
      * @param   int     session id
1352
-     * @return  array   with the results
1362
+     * @return  string   with the results
1353 1363
      *
1354 1364
      */
1355 1365
     public static function count_exercise_attempts_by_user($user_id, $exercise_id, $courseId, $session_id = 0)
@@ -1525,7 +1535,7 @@  discard block
 block discarded – undo
1525 1535
      * @param   int     exercise id
1526 1536
      * @param   int   course id
1527 1537
      * @param   int     session id
1528
-     * @return  array   with the results
1538
+     * @return  integer   with the results
1529 1539
      *
1530 1540
      */
1531 1541
     public static function get_count_exercises_attempted_by_course($courseId, $session_id = 0)
Please login to merge, or discard this patch.
plugin/vchamilo/views/editinstance_form.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 
14 14
     /**
15 15
      * ChamiloForm constructor.
16
-     * @param $mode
17
-     * @param $returnurl
18
-     * @param $cancelurl
16
+     * @param string $mode
17
+     * @param string $returnurl
18
+     * @param string $cancelurl
19 19
      * @param $customdata
20 20
      */
21 21
     public function __construct($mode, $returnurl, $cancelurl, $customdata = [])
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      * Check that form data is valid.
138 138
      * You should almost always use this, rather than {@see validate_defined_fields}
139 139
      *
140
-     * @return bool true if form data valid
140
+     * @return boolean|null true if form data valid
141 141
      */
142 142
     public function is_validated()
143 143
     {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      *                is NOT to validate the form when a no submit button has been pressed.
167 167
      *                pass true here to override this behaviour
168 168
      *
169
-     * @return bool true if form data valid
169
+     * @return boolean|null true if form data valid
170 170
      */
171 171
     public function validate_defined_fields($validateonnosubmit=false)
172 172
     {
Please login to merge, or discard this patch.