From a855f562e6ce95cbad70a7c96284c39b7ca8ec42 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Wed, 9 Mar 2022 09:37:03 -0500 Subject: [PATCH] Minor: Format code --- .../DataProvider/Extension/TrackEExerciseExtension.php | 4 ++-- .../Migrations/Schema/V200/Version20180904175500.php | 2 +- .../Security/Authorization/Voter/TrackEExerciseVoter.php | 4 +++- src/CourseBundle/Entity/CQuiz.php | 3 --- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/CoreBundle/DataProvider/Extension/TrackEExerciseExtension.php b/src/CoreBundle/DataProvider/Extension/TrackEExerciseExtension.php index 6e0932399a..89a7be761a 100644 --- a/src/CoreBundle/DataProvider/Extension/TrackEExerciseExtension.php +++ b/src/CoreBundle/DataProvider/Extension/TrackEExerciseExtension.php @@ -25,7 +25,7 @@ final class TrackEExerciseExtension implements QueryCollectionExtensionInterface QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null - ) { + ): void { if (TrackEExercise::class !== $resourceClass) { return; } @@ -51,4 +51,4 @@ final class TrackEExerciseExtension implements QueryCollectionExtensionInterface $queryBuilder->setParameter('user', $user); } } -} \ No newline at end of file +} diff --git a/src/CoreBundle/Migrations/Schema/V200/Version20180904175500.php b/src/CoreBundle/Migrations/Schema/V200/Version20180904175500.php index 5d747385f7..acf50e4a8b 100644 --- a/src/CoreBundle/Migrations/Schema/V200/Version20180904175500.php +++ b/src/CoreBundle/Migrations/Schema/V200/Version20180904175500.php @@ -133,7 +133,7 @@ class Version20180904175500 extends AbstractMigrationChamilo } $this->addSql('ALTER TABLE track_e_exercises CHANGE exe_exo_id exe_exo_id INT DEFAULT NULL'); - $this->addSql("UPDATE track_e_exercises SET exe_exo_id = NULL WHERE exe_exo_id NOT IN (SELECT iid FROM c_quiz)"); + $this->addSql('UPDATE track_e_exercises SET exe_exo_id = NULL WHERE exe_exo_id NOT IN (SELECT iid FROM c_quiz)'); if (!$table->hasForeignKey('FK_AA0DA082B9773F9E')) { $this->addSql('ALTER TABLE track_e_exercises ADD CONSTRAINT FK_AA0DA082B9773F9E FOREIGN KEY (exe_exo_id) REFERENCES c_quiz (iid) ON DELETE SET NULL'); diff --git a/src/CoreBundle/Security/Authorization/Voter/TrackEExerciseVoter.php b/src/CoreBundle/Security/Authorization/Voter/TrackEExerciseVoter.php index 03f4309923..01f3a13248 100644 --- a/src/CoreBundle/Security/Authorization/Voter/TrackEExerciseVoter.php +++ b/src/CoreBundle/Security/Authorization/Voter/TrackEExerciseVoter.php @@ -1,5 +1,7 @@ iid;