From 5a499a1da8e66a3e681f83a5feeacbce46d8c60f Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 16 Dec 2020 16:54:07 +0100 Subject: [PATCH] Minor - format code --- .../Migrations/Schema/V200/Version20180319145700.php | 2 ++ .../Migrations/Schema/V200/Version20201215072918.php | 2 +- src/CourseBundle/Entity/CThematic.php | 3 --- src/CourseBundle/Entity/CThematicAdvance.php | 1 + src/CourseBundle/Entity/CThematicPlan.php | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/CoreBundle/Migrations/Schema/V200/Version20180319145700.php b/src/CoreBundle/Migrations/Schema/V200/Version20180319145700.php index 6f8e5bccd0..e2d1098978 100644 --- a/src/CoreBundle/Migrations/Schema/V200/Version20180319145700.php +++ b/src/CoreBundle/Migrations/Schema/V200/Version20180319145700.php @@ -20,6 +20,8 @@ class Version20180319145700 extends AbstractMigrationChamilo if (!$survey->hasColumn('is_mandatory')) { $this->addSql('ALTER TABLE c_survey ADD COLUMN is_mandatory TINYINT(1) DEFAULT "0" NOT NULL'); } + + /*if (!$survey->hasIndex('idx_survey_code')) { $this->addSql('CREATE INDEX idx_survey_code ON c_survey (code)'); }*/ diff --git a/src/CoreBundle/Migrations/Schema/V200/Version20201215072918.php b/src/CoreBundle/Migrations/Schema/V200/Version20201215072918.php index ea681c453d..f2e35b9b29 100644 --- a/src/CoreBundle/Migrations/Schema/V200/Version20201215072918.php +++ b/src/CoreBundle/Migrations/Schema/V200/Version20201215072918.php @@ -78,7 +78,7 @@ final class Version20201215072918 extends AbstractMigrationChamilo 'to_group_id' => 0, 'session_id' => $eventData['session_id'], ]; - $this->fixItemProperty('calendar_event',$eventRepo, $course, $admin, $event, $course, $items); + $this->fixItemProperty('calendar_event', $eventRepo, $course, $admin, $event, $course, $items); $em->persist($event); $em->flush(); continue; diff --git a/src/CourseBundle/Entity/CThematic.php b/src/CourseBundle/Entity/CThematic.php index c58d77f0e8..2b71be9c7f 100644 --- a/src/CourseBundle/Entity/CThematic.php +++ b/src/CourseBundle/Entity/CThematic.php @@ -265,9 +265,6 @@ class CThematic extends AbstractResource implements ResourceInterface return $this->advances; } - /** - * Resource identifier. - */ public function getResourceIdentifier(): int { return $this->getIid(); diff --git a/src/CourseBundle/Entity/CThematicAdvance.php b/src/CourseBundle/Entity/CThematicAdvance.php index 5d3d665941..f051d457f7 100644 --- a/src/CourseBundle/Entity/CThematicAdvance.php +++ b/src/CourseBundle/Entity/CThematicAdvance.php @@ -271,6 +271,7 @@ class CThematicAdvance //extends AbstractResource implements ResourceInterface { return $this->iid; } + /* public function getResourceIdentifier(): int { diff --git a/src/CourseBundle/Entity/CThematicPlan.php b/src/CourseBundle/Entity/CThematicPlan.php index 68047f7f72..15e53c04cd 100644 --- a/src/CourseBundle/Entity/CThematicPlan.php +++ b/src/CourseBundle/Entity/CThematicPlan.php @@ -211,6 +211,7 @@ class CThematicPlan //extends AbstractResource implements ResourceInterface return $this; } + /* public function getResourceIdentifier(): int {