diff --git a/public/main/mySpace/tc_report.php b/public/main/mySpace/tc_report.php index 3c77f44e6a..15deeea220 100644 --- a/public/main/mySpace/tc_report.php +++ b/public/main/mySpace/tc_report.php @@ -17,8 +17,8 @@ if (!$allowToTrack) { } $userInfo = []; -$action = isset($_REQUEST['a']) ? $_REQUEST['a'] : null; -$languageFilter = isset($_REQUEST['language']) ? $_REQUEST['language'] : ''; +$action = $_REQUEST['a'] ?? null; +$languageFilter = $_REQUEST['language'] ?? ''; $content = ''; switch ($action) { @@ -27,7 +27,7 @@ switch ($action) { $bossInfo = api_get_user_info($bossId); $form = new FormValidator('add_user'); - $form->addHeader(get_lang('AddUser').' '.$bossInfo['complete_name']); + $form->addHeader(get_lang('Add user').' '.$bossInfo['complete_name']); $form->addHidden('a', 'add_user'); $form->addHidden('boss_id', $bossId); $form->addSelectAjax( @@ -94,7 +94,7 @@ if ('add_user' !== $action) { $form->addSelectLanguage( 'language', get_lang('Language'), - ['placeholder' => get_lang('SelectAnOption')] + ['placeholder' => get_lang('Select an option')] ); $form->addButtonSearch(get_lang('Search')); @@ -150,7 +150,7 @@ if ('add_user' !== $action) { $url = api_get_self().'?a=add_user&boss_id='.$bossId; $tableContent .= '
'; - $tableContent .= ''.get_lang('AddStudent').''; + $tableContent .= ''.get_lang('Add student').''; $addUserForm = new FormValidator( 'add_user_to_'.$bossId, 'post', diff --git a/src/CoreBundle/DataProvider/Extension/CCalendarEventExtension.php b/src/CoreBundle/DataProvider/Extension/CCalendarEventExtension.php index 5f87af6504..72d49dafda 100644 --- a/src/CoreBundle/DataProvider/Extension/CCalendarEventExtension.php +++ b/src/CoreBundle/DataProvider/Extension/CCalendarEventExtension.php @@ -90,7 +90,8 @@ final class CCalendarEventExtension implements QueryCollectionExtensionInterface ); $qb ->setParameter('start', $startDate) - ->setParameter('end', $endDate); + ->setParameter('end', $endDate) + ; } if (empty($courseId)) { diff --git a/src/CoreBundle/DataProvider/Extension/CDocumentExtension.php b/src/CoreBundle/DataProvider/Extension/CDocumentExtension.php index 550ef6e1a5..54070d5669 100644 --- a/src/CoreBundle/DataProvider/Extension/CDocumentExtension.php +++ b/src/CoreBundle/DataProvider/Extension/CDocumentExtension.php @@ -37,7 +37,6 @@ final class CDocumentExtension implements QueryCollectionExtensionInterface //, /*public function applyToItem(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, array $identifiers, string $operationName = null, array $context = []): void { - error_log('applyToItem'); $this->addWhere($queryBuilder, $resourceClass); }*/