Skip to content

Commit 63b9c68

Browse files
committed
Minor: Format code
1 parent e25b8e9 commit 63b9c68

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/CoreBundle/Controller/CatalogueController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace Chamilo\CoreBundle\Controller;
88

9+
use BuyCoursesPlugin;
910
use Chamilo\CoreBundle\Entity\Admin;
1011
use Chamilo\CoreBundle\Entity\CatalogueCourseRelAccessUrlRelUsergroup;
1112
use Chamilo\CoreBundle\Entity\CatalogueSessionRelAccessUrlRelUsergroup;
@@ -151,7 +152,7 @@ public function listSessions(): JsonResponse
151152
->getSingleScalarResult()
152153
;
153154

154-
$buyCoursesPlugin = \BuyCoursesPlugin::create();
155+
$buyCoursesPlugin = BuyCoursesPlugin::create();
155156
$buyData = $buyCoursesPlugin->getBuyCoursePluginPrice($session);
156157

157158
return [

src/CoreBundle/Form/ExtraFieldType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
224224
case \ExtraField::FIELD_TYPE_RADIO:
225225
case \ExtraField::FIELD_TYPE_SELECT:
226226
$defaultOptions['attr']['class'] = 'p-select p-component p-inputwrapper p-inputwrapper-filled';
227-
//no break
227+
228+
// no break
228229
case \ExtraField::FIELD_TYPE_SELECT_MULTIPLE:
229230
if (empty($value)) {
230231
$defaultOptions['data'] = null;

src/CoreBundle/Migrations/Schema/V200/Version20250604143900.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function getDescription(): string
1818

1919
public function up(Schema $schema): void
2020
{
21-
$this->addSql("
21+
$this->addSql('
2222
CREATE TABLE third_party (
2323
id INT AUTO_INCREMENT NOT NULL,
2424
name TEXT NOT NULL,
@@ -29,9 +29,9 @@ public function up(Schema $schema): void
2929
recruiter TINYINT(1) NOT NULL,
3030
PRIMARY KEY(id)
3131
);
32-
");
32+
');
3333

34-
$this->addSql("
34+
$this->addSql('
3535
CREATE TABLE third_party_data_exchange (
3636
id INT AUTO_INCREMENT NOT NULL,
3737
third_party_id INT NOT NULL,
@@ -41,9 +41,9 @@ public function up(Schema $schema): void
4141
PRIMARY KEY(id),
4242
CONSTRAINT FK_TPDE_TP FOREIGN KEY (third_party_id) REFERENCES third_party(id) ON DELETE CASCADE
4343
);
44-
");
44+
');
4545

46-
$this->addSql("
46+
$this->addSql('
4747
CREATE TABLE third_party_data_exchange_user (
4848
id INT AUTO_INCREMENT NOT NULL,
4949
third_party_data_exchange_id INT NOT NULL,
@@ -52,7 +52,7 @@ public function up(Schema $schema): void
5252
CONSTRAINT FK_TPDEU_TPDE FOREIGN KEY (third_party_data_exchange_id) REFERENCES third_party_data_exchange(id) ON DELETE CASCADE,
5353
CONSTRAINT FK_TPDEU_USER FOREIGN KEY (user_id) REFERENCES user(id) ON DELETE CASCADE
5454
);
55-
");
55+
');
5656
}
5757

5858
public function down(Schema $schema): void

0 commit comments

Comments
 (0)