Completed
Push — 1.11.x ( 7ffd51...902ebd )
by José
50:21 queued 21:28
created
main/inc/lib/thematic.lib.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1451,7 +1451,7 @@  discard block
 block discarded – undo
1451 1451
 
1452 1452
     /**
1453 1453
      * Get thematic plan titles by default
1454
-     * @return array
1454
+     * @return string[]
1455 1455
      */
1456 1456
     public function get_default_thematic_plan_title()
1457 1457
     {
@@ -1468,7 +1468,7 @@  discard block
 block discarded – undo
1468 1468
 
1469 1469
     /**
1470 1470
      * Get thematic plan icons by default
1471
-     * @return array
1471
+     * @return string[]
1472 1472
      */
1473 1473
     public function get_default_thematic_plan_icon()
1474 1474
     {
@@ -1485,7 +1485,7 @@  discard block
 block discarded – undo
1485 1485
 
1486 1486
     /**
1487 1487
      * Get questions by default for help
1488
-     * @return array
1488
+     * @return string[]
1489 1489
      */
1490 1490
     public function get_default_question()
1491 1491
     {
Please login to merge, or discard this patch.
main/webservices/user_import/import.lib.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3 3
  * Validates imported data.
4
+ * @param Ddeboer\DataImport\Reader\CsvReader $users
4 5
  */
5 6
 function validate_data($users)
6 7
 {
@@ -85,6 +86,7 @@  discard block
 block discarded – undo
85 86
 
86 87
 /**
87 88
  * Save the imported data
89
+ * @param Ddeboer\DataImport\Reader\CsvReader $users
88 90
  */
89 91
 function save_data($users)
90 92
 {
@@ -143,7 +145,7 @@  discard block
 block discarded – undo
143 145
 /**
144 146
  * Reads the CSV-file.
145 147
  * @param string $file Path to the CSV-file
146
- * @return array All user information read from the file
148
+ * @return Ddeboer\DataImport\Reader\CsvReader All user information read from the file
147 149
  */
148 150
 function parse_csv_data($file)
149 151
 {
Please login to merge, or discard this patch.
src/Chamilo/ThemeBundle/EventListener/SidebarSetupMenuDemoListener.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@
 block discarded – undo
39 39
         return $this->activateByRoute($request->get('_route'), $rootItems);
40 40
     }
41 41
 
42
+    /**
43
+     * @param MenuItemModel[] $items
44
+     */
42 45
     protected function activateByRoute($route, $items)
43 46
     {
44 47
         foreach ($items as $item) { /** @var $item MenuItemModel */
Please login to merge, or discard this patch.
main/dropbox/dropbox_class.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -615,7 +615,7 @@
 block discarded – undo
615 615
      *
616 616
      * @param string $id
617 617
      * @param string $text
618
-     * @return bool
618
+     * @return false|null
619 619
      */
620 620
     public function updateFeedback($id, $text)
621 621
     {
Please login to merge, or discard this patch.
main/inc/lib/security.lib.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,6 +46,8 @@  discard block
 block discarded – undo
46 46
      * @param string    Absolute path to be checked (with trailing slash)
47 47
      * @param string    Checker path under which the path
48 48
      * should be (absolute path, with trailing slash, get it from api_get_path(SYS_COURSE_PATH))
49
+     * @param string $abs_path
50
+     * @param string $checker_path
49 51
      * @return bool    True if the path is under the checker, false otherwise
50 52
      */
51 53
     public static function check_abs_path($abs_path, $checker_path)
@@ -256,6 +258,7 @@  discard block
 block discarded – undo
256 258
      * @param string The variable to filter for XSS, this params can be a string or an array (example : array(x,y))
257 259
      * @param int The user status,constant allowed (STUDENT, COURSEMANAGER, ANONYMOUS, COURSEMANAGERLOWSECURITY)
258 260
      * @param bool $filter_terms
261
+     * @param integer $user_status
259 262
      * @return mixed    Filtered string or array
260 263
      */
261 264
     public static function remove_XSS($var, $user_status = null, $filter_terms = false)
@@ -391,7 +394,7 @@  discard block
 block discarded – undo
391 394
      * This method provides specific protection (against XSS and other kinds of attacks) for static images (icons) used by the system.
392 395
      * Image paths are supposed to be given by programmers - people who know what they do, anyway, this method encourages
393 396
      * a safe practice for generating icon paths, without using heavy solutions based on HTMLPurifier for example.
394
-     * @param string $img_path The input path of the image, it could be relative or absolute URL.
397
+     * @param string $image_path The input path of the image, it could be relative or absolute URL.
395 398
      * @return string Returns sanitized image path or an empty string when the image path is not secure.
396 399
      * @author Ivan Tcholakov, March 2011
397 400
      */
Please login to merge, or discard this patch.
main/gradebook/lib/be/learnpathlink.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 
98 98
     /**
99 99
      * Get the progress of this learnpath. Only the last attempt are taken into account.
100
-     * @param $stud_id student id (default: all students who have results - then the average is returned)
100
+     * @param integer $stud_id student id (default: all students who have results - then the average is returned)
101 101
      * @param $type The type of score we want to get: best|average|ranking
102 102
      * @return    array (score, max) if student is given
103 103
      *            array (sum of scores, number of scores) otherwise
Please login to merge, or discard this patch.
main/inc/lib/TicketManager.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -694,8 +694,8 @@  discard block
 block discarded – undo
694 694
     /**
695 695
      * Attachment files when a message is sent
696 696
      * @param $file_attach
697
-     * @param $ticketId
698
-     * @param $message_id
697
+     * @param integer $ticketId
698
+     * @param string $message_id
699 699
      * @return array
700 700
      */
701 701
     public static function save_message_attachment_file(
@@ -1315,7 +1315,7 @@  discard block
 block discarded – undo
1315 1315
      * @param string $message
1316 1316
      * @param int $onlyToUserId
1317 1317
      *
1318
-     * @return bool
1318
+     * @return false|null
1319 1319
      */
1320 1320
     public static function sendNotification($ticketId, $title, $message, $onlyToUserId = 0)
1321 1321
     {
@@ -1941,7 +1941,7 @@  discard block
 block discarded – undo
1941 1941
     }
1942 1942
 
1943 1943
     /**
1944
-     * @param $id
1944
+     * @param integer $id
1945 1945
      * @return Project
1946 1946
      */
1947 1947
     public static function getProject($id)
@@ -2063,7 +2063,7 @@  discard block
 block discarded – undo
2063 2063
     }
2064 2064
 
2065 2065
     /**
2066
-     * @param $id
2066
+     * @param integer $id
2067 2067
      * @return Project
2068 2068
      */
2069 2069
     public static function getStatus($id)
@@ -2188,7 +2188,7 @@  discard block
 block discarded – undo
2188 2188
     }
2189 2189
 
2190 2190
     /**
2191
-     * @param $id
2191
+     * @param integer $id
2192 2192
      * @return Priority
2193 2193
      */
2194 2194
     public static function getPriority($id)
@@ -2260,7 +2260,7 @@  discard block
 block discarded – undo
2260 2260
     }
2261 2261
 
2262 2262
     /**
2263
-     * @return array
2263
+     * @return string[]
2264 2264
      */
2265 2265
     public static function getDefaultStatusList()
2266 2266
     {
@@ -2274,7 +2274,7 @@  discard block
 block discarded – undo
2274 2274
     }
2275 2275
 
2276 2276
         /**
2277
-     * @return array
2277
+     * @return string[]
2278 2278
      */
2279 2279
     public static function getDefaultPriorityList()
2280 2280
     {
Please login to merge, or discard this patch.
plugin/vchamilo/cli/clilib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -294,7 +294,7 @@
 block discarded – undo
294 294
 /**
295 295
  * Print or return section separator string
296 296
  * @param bool $return false means print, true return as string
297
- * @return mixed void or string
297
+ * @return string|null void or string
298 298
  */
299 299
 function cli_separator($return = false) {
300 300
     $separator = str_repeat('-', 79)."\n";
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/Session.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
     }
255 255
 
256 256
     /**
257
-     * @return string
257
+     * @return boolean
258 258
      */
259 259
     public function getShowDescription()
260 260
     {
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
     }
374 374
 
375 375
     /**
376
-     * @param $courses
376
+     * @param ArrayCollection $courses
377 377
      */
378 378
     public function setCourses($courses)
379 379
     {
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
      * Set description
516 516
      *
517 517
      * @param string $description
518
-     * @return Groups
518
+     * @return Session
519 519
      */
520 520
     public function setDescription($description)
521 521
     {
@@ -848,7 +848,7 @@  discard block
 block discarded – undo
848 848
     }
849 849
 
850 850
     /**
851
-     * @return array
851
+     * @return string[]
852 852
      */
853 853
     public static function getStatusList()
854 854
     {
Please login to merge, or discard this patch.