Passed
Push — 1.10.x ( 70be1b...a0d9ce )
by
unknown
44:24
created
main/inc/ajax/agenda.ajax.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /* For licensing terms, see /license.txt */
3 3
 /**
4
- * Responses to AJAX calls
5
- */
4
+     * Responses to AJAX calls
5
+     */
6 6
 
7 7
 require_once '../global.inc.php';
8 8
 require_once api_get_path(SYS_CODE_PATH).'work/work.lib.php';
Please login to merge, or discard this patch.
main/inc/lib/agenda.lib.php 1 patch
Doc Comments   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
      * @param string $color
561 561
      * @param bool $addAnnouncement
562 562
      *
563
-     * @return bool
563
+     * @return null|false
564 564
      */
565 565
     public function editEvent(
566 566
         $id,
@@ -1291,6 +1291,7 @@  discard block
 block discarded – undo
1291 1291
      *
1292 1292
      * @param int $eventId
1293 1293
      * @param int $courseId
1294
+     * @param integer $sessionId
1294 1295
      * @paraù int $sessionId
1295 1296
      *
1296 1297
      * @return array
@@ -2283,6 +2284,7 @@  discard block
 block discarded – undo
2283 2284
      * @param array $fileUserUpload ($_FILES['user_upload'])
2284 2285
      * @param string comment about file
2285 2286
      * @param array $courseInfo
2287
+     * @param string $comment
2286 2288
      * @return string
2287 2289
      */
2288 2290
     public function addAttachment($eventId, $fileUserUpload, $comment, $courseInfo)
@@ -2402,6 +2404,7 @@  discard block
 block discarded – undo
2402 2404
      * Adds x weeks to a UNIX timestamp
2403 2405
      * @param   int     The timestamp
2404 2406
      * @param   int     The number of weeks to add
2407
+     * @param integer $timestamp
2405 2408
      * @return  int     The new timestamp
2406 2409
      */
2407 2410
     function addWeek($timestamp, $num = 1)
@@ -2413,6 +2416,7 @@  discard block
 block discarded – undo
2413 2416
      * Adds x months to a UNIX timestamp
2414 2417
      * @param   int     The timestamp
2415 2418
      * @param   int     The number of years to add
2419
+     * @param integer $timestamp
2416 2420
      * @return  int     The new timestamp
2417 2421
      */
2418 2422
     function addMonth($timestamp, $num = 1)
@@ -2431,6 +2435,7 @@  discard block
 block discarded – undo
2431 2435
      * Adds x years to a UNIX timestamp
2432 2436
      * @param   int     The timestamp
2433 2437
      * @param   int     The number of years to add
2438
+     * @param integer $timestamp
2434 2439
      * @return  int     The new timestamp
2435 2440
      */
2436 2441
     function addYear($timestamp, $num = 1)
@@ -2630,7 +2635,7 @@  discard block
 block discarded – undo
2630 2635
     /**
2631 2636
      * @param array $courseInfo
2632 2637
      * @param $file
2633
-     * @return array|bool|string
2638
+     * @return false|string
2634 2639
      */
2635 2640
     public function importEventFile($courseInfo, $file)
2636 2641
     {
@@ -2743,7 +2748,7 @@  discard block
 block discarded – undo
2743 2748
 
2744 2749
     /**
2745 2750
      * Parse filter turns USER:12 to ['users' => [12])] or G:1 ['groups' => [1]]
2746
-     * @param $filter
2751
+     * @param integer $filter
2747 2752
      * @return array
2748 2753
      */
2749 2754
     public function parseAgendaFilter($filter)
@@ -3258,6 +3263,7 @@  discard block
 block discarded – undo
3258 3263
      * @param	int		user ID of the user
3259 3264
      * @param	string	Optional start date in datetime format (if no start date is given, uses today)
3260 3265
      * @param	string	Optional end date in datetime format (if no date is given, uses one year from now)
3266
+     * @param integer $user_id
3261 3267
      * @return	array	Array of events ordered by start date, in
3262 3268
      * [0]('datestart','dateend','title'),[1]('datestart','dateend','title','link','coursetitle') format,
3263 3269
      * where datestart and dateend are in yyyyMMddhhmmss format.
Please login to merge, or discard this patch.
main/calendar/agenda.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@
 block discarded – undo
274 274
             }
275 275
             break;
276 276
         case "delete":
277
-            if (!(api_is_course_coach() && !api_is_element_in_the_session(TOOL_AGENDA, $eventId) )) {
277
+            if (!(api_is_course_coach() && !api_is_element_in_the_session(TOOL_AGENDA, $eventId))) {
278 278
                 // a coach can only delete an element belonging to his session
279 279
                 $content = $agenda->deleteEvent($eventId);
280 280
             }
Please login to merge, or discard this patch.