Completed
Push — master ( f173a6...4a27fe )
by Angel Fernando Quiroz
37:49 queued 04:39
created
main/auth/sso/sso.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 
81 81
     /**
82 82
      * Validates the received active connection data with the database
83
-     * @return	bool	Return the loginFailed variable value to local.inc.php
83
+     * @return	null|false	Return the loginFailed variable value to local.inc.php
84 84
      */
85 85
     public function check_user()
86 86
     {
Please login to merge, or discard this patch.
main/document/downloadfolder.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@
 block discarded – undo
327 327
  * @param array $arr1 first array
328 328
  * @param array $arr2 second array
329 329
  *
330
- * @return array difference between the two arrays
330
+ * @return string difference between the two arrays
331 331
  */
332 332
 function diff($arr1, $arr2)
333 333
 {
Please login to merge, or discard this patch.
main/inc/lib/formvalidator/Rule/MobilePhoneNumber.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      *
17 17
      * @param string Mobile phone number to be validated
18 18
      * @param string Not using it. Just to respect the declaration
19
-     * @return boolean Returns true if valid, false otherwise.
19
+     * @return integer Returns true if valid, false otherwise.
20 20
      */
21 21
     function validate($mobilePhoneNumber, $options = null)
22 22
     {
Please login to merge, or discard this patch.
main/inc/lib/plugin.lib.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -626,7 +626,7 @@
 block discarded – undo
626 626
 
627 627
     /**
628 628
      * Get first SMS plugin name
629
-     * @return string|boolean
629
+     * @return string|false
630 630
      */
631 631
     public function getSMSPluginName()
632 632
     {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -254,13 +254,13 @@
 block discarded – undo
254 254
     }
255 255
 
256 256
     /**
257
-    * @param string $region
258
-    * @param array $plugins
259
-    * @param mixed $template
260
-    * @param bool   $forced
261
-    *
262
-    * @return null|string
263
-    */
257
+     * @param string $region
258
+     * @param array $plugins
259
+     * @param mixed $template
260
+     * @param bool   $forced
261
+     *
262
+     * @return null|string
263
+     */
264 264
     public function load_region($region, $template, $plugins, $forced = false)
265 265
     {
266 266
         if ($region == 'course_tool_plugin') {
Please login to merge, or discard this patch.
main/inc/lib/promotion.lib.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     }
130 130
 
131 131
     /**
132
-     * @return array
132
+     * @return string[]
133 133
      */
134 134
     public function get_status_list()
135 135
     {
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
     /**
273 273
      * @param int $id
274 274
      *
275
-     * @return bool
275
+     * @return null|false
276 276
      */
277 277
     public function delete($id)
278 278
     {
Please login to merge, or discard this patch.
main/inc/lib/skill.lib.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -326,6 +326,7 @@  discard block
 block discarded – undo
326 326
 
327 327
     /**
328 328
      * Gets an element
329
+     * @param integer $gradebook_id
329 330
      */
330 331
     public function get_skill_info($skill_id, $gradebook_id)
331 332
     {
@@ -544,7 +545,7 @@  discard block
 block discarded – undo
544 545
      * Gets an element
545 546
      * @param int $id
546 547
      *
547
-     * @return array|mixed
548
+     * @return integer
548 549
      */
549 550
     public function get($id)
550 551
     {
@@ -885,7 +886,7 @@  discard block
 block discarded – undo
885 886
     /**
886 887
      * Get user's skills
887 888
      *
888
-     * @param int $userId User's id
889
+     * @param integer $user_id User's id
889 890
      * @param bool $get_skill_data
890 891
      */
891 892
     public function get_user_skills($user_id, $get_skill_data = false)
Please login to merge, or discard this patch.
main/inc/lib/sortable_table.class.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -443,6 +443,7 @@
 block discarded – undo
443 443
      * @param bool       hide navigation optionally
444 444
      * @param int        content per page when show navigation (optional)
445 445
      * @param bool       sort data optionally
446
+     * @param boolean $visibility_options
446 447
      * @return string    grid html
447 448
      */
448 449
     public function display_simple_grid($visibility_options, $hide_navigation = true, $per_page = 20, $sort_data = true, $grid_class = array())
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -340,9 +340,9 @@  discard block
 block discarded – undo
340 340
     }
341 341
 
342 342
     /**
343
-    * This function shows the content of a table in a grid.
344
-    * Should not be use to edit information (edit/delete rows) only.
345
-    **/
343
+     * This function shows the content of a table in a grid.
344
+     * Should not be use to edit information (edit/delete rows) only.
345
+     **/
346 346
     public function display_grid()
347 347
     {
348 348
         $empty_table = false;
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
                 //$param[$tablename.'_direction'] = $_GET[$tablename.'_direction'];
801 801
                 $my_get_direction = $_GET[$tablename.'_direction'];
802 802
                 if (!in_array($my_get_direction, array('ASC', 'DESC'))) {
803
-                     $param[$tablename.'_direction'] = 'ASC';
803
+                        $param[$tablename.'_direction'] = 'ASC';
804 804
                 } else {
805 805
                     $param[$tablename.'_direction'] = $my_get_direction;
806 806
                 }
@@ -929,7 +929,7 @@  discard block
 block discarded – undo
929 929
         if (is_array($row)) {
930 930
             foreach ($row as & $value) {
931 931
                 if (empty($value)) {
932
-                     $value = '-';
932
+                        $value = '-';
933 933
                 }
934 934
             }
935 935
         }
Please login to merge, or discard this patch.
main/inc/lib/statsUtils.lib.inc.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -85,6 +85,7 @@
 block discarded – undo
85 85
     /**
86 86
      * @author Sebastien Piraux <[email protected]>
87 87
      * @param sql : a sql query (as a string)
88
+     * @param integer $X
88 89
      * @desc Return many results of a query in a X column tab
89 90
      * in $resu[$i][0], $resu[$i][1],$resu[$i][2],...
90 91
      * this function is more 'standard' but use a little
Please login to merge, or discard this patch.
main/inc/lib/template.lib.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -330,6 +330,7 @@  discard block
 block discarded – undo
330 330
     /**
331 331
      * Sets the footer visibility
332 332
      * @param bool true if we show the footer
333
+     * @param boolean $status
333 334
      */
334 335
     public function set_footer($status)
335 336
     {
@@ -370,6 +371,7 @@  discard block
 block discarded – undo
370 371
     /**
371 372
      * Sets the header visibility
372 373
      * @param bool true if we show the header
374
+     * @param boolean $status
373 375
      */
374 376
     public function set_header($status)
375 377
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -615,7 +615,7 @@
 block discarded – undo
615 615
         return [
616 616
             '_p' => $_p,
617 617
             '_s' => $_s,
618
-     //       '_u' => $user_info,
618
+        //       '_u' => $user_info,
619 619
             'template' => 'default' // @todo setup template folder in config.yml;
620 620
         ];
621 621
     }
Please login to merge, or discard this patch.