Minor - format code

pull/3215/head
Julio Montoya 6 years ago
parent bdf7a91eb6
commit c3b86dba4e
  1. 2
      public/main/attendance/index.php
  2. 3
      public/main/auth/courses_controller.php
  3. 2
      public/main/webservices/api/v2.php

@ -41,7 +41,6 @@ $actions = [
'calendar_all_delete',
];
$action = 'attendance_list';
if (isset($_REQUEST['action']) && (in_array($_REQUEST['action'], $actions))) {
$action = $_REQUEST['action'];
@ -673,7 +672,6 @@ switch ($action) {
header('Location: '.$currentUrl.'&action=calendar_list&attendance_id='.$attendanceId);
exit;
break;
//no break
case 'calendar_list':
$groupList = isset($_POST['groups']) ? [$_POST['groups']] : [];
$attendance_calendar = $attendance->get_attendance_calendar(

@ -2,7 +2,6 @@
/* For licensing terms, see /license.txt */
use Chamilo\CoreBundle\Repository\SequenceResourceRepository;
use Chamilo\CoreBundle\Entity\SequenceResource;
use Chamilo\CoreBundle\Entity\SessionRelCourse;
use Chamilo\CoreBundle\Entity\Tag;
@ -614,7 +613,7 @@ class CoursesController
$hasRequirements = false;
foreach ($sequences as $sequence) {
if (count($sequence['requirements']) === 0) {
if (0 === count($sequence['requirements'])) {
continue;
}
$hasRequirements = true;

@ -84,7 +84,7 @@ try {
throw new Exception(get_lang('NoData'));
}
$messageStatus = $action === Rest::POST_USER_MESSAGE_READ ? MESSAGE_STATUS_NEW : MESSAGE_STATUS_UNREAD;
$messageStatus = Rest::POST_USER_MESSAGE_READ === $action ? MESSAGE_STATUS_NEW : MESSAGE_STATUS_UNREAD;
$data = array_flip($messagesId);

Loading…
Cancel
Save