Minor - format code

pull/4017/head
Julio 4 years ago
parent b2dd07db82
commit e8d967d7fe
  1. 4
      public/main/survey/create_meeting.php
  2. 1
      public/main/survey/edit_meeting.php
  3. 2
      public/main/survey/surveyUtil.class.php
  4. 2
      src/CoreBundle/Migrations/Schema/V200/Version20.php
  5. 5
      tests/CoreBundle/Repository/SessionRepositoryTest.php

@ -110,10 +110,6 @@ if ($form->validate()) {
if (isset($values[$name]) && !empty($values[$name])) {
$date = $values[$name];
if (empty($date)) {
continue;
}
$start = $name.'_time_range_start';
$end = $name.'_time_range_end';

@ -22,7 +22,6 @@ if (!api_is_allowed_to_edit()) {
}
}
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'survey/survey_list.php?'.api_get_cidreq(),
'name' => get_lang('Survey list'),

@ -2966,7 +2966,7 @@ class SurveyUtil
public static function modify_filter($survey_id, $drh = false)
{
$repo = Container::getSurveyRepository();
/** @var CSurvey $survey */
/** @var CSurvey|null $survey */
$survey = $repo->find($survey_id);
if (null === $survey) {

@ -504,7 +504,7 @@ class Version20 extends AbstractMigrationChamilo
'message' => ['user_receiver_id'],
];
$this->addSql("ALTER TABLE c_survey_invitation CHANGE survey_code survey_code VARCHAR(20) DEFAULT NULL");
$this->addSql('ALTER TABLE c_survey_invitation CHANGE survey_code survey_code VARCHAR(20) DEFAULT NULL');
foreach ($tables as $tableName => $fields) {
$table = $schema->getTable($tableName);

@ -23,7 +23,6 @@ class SessionRepositoryTest extends AbstractApiTest
public function testCreate(): void
{
self::bootKernel();
/** @var SessionRepository $repo */
$repo = self::getContainer()->get(SessionRepository::class);
@ -38,7 +37,6 @@ class SessionRepositoryTest extends AbstractApiTest
public function testCreateSessionSameTitle(): void
{
self::bootKernel();
$name = 'session';
$session = $this->createSession($name);
$this->assertHasNoEntityViolations($session);
@ -86,12 +84,11 @@ class SessionRepositoryTest extends AbstractApiTest
public function testUpdateWithApi(): void
{
$token = $this->getUserToken();
$sessionName = 'simple';
$newSessionName = 'simple2';
$session = $this->createSession($sessionName);
$token = $this->getUserToken();
$this->createClientWithCredentials($token)->request(
'PUT',
'/api/sessions/'.$session->getId(),

Loading…
Cancel
Save