Skip to content

Commit c4a9f73

Browse files
Fix putting the class-opening bracket on its own line
1 parent 468ff27 commit c4a9f73

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

templates/controller/Controller.tpl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<?= $class_data->getUseStatements(); ?>
66

77
<?= $class_data->getClassDeclaration(); ?>
8+
89
{
910
<?= $generator->generateRouteForControllerMethod($route_path, $route_name); ?>
1011
public function <?= $method_name ?>(): <?php if ($with_template) { ?>Response<?php } else { ?>JsonResponse<?php } ?>

templates/controller/test/Test.tpl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<?= $class_data->getUseStatements(); ?>
66

77
<?= $class_data->getClassDeclaration(); ?>
8+
89
{
910
public function testIndex(): void
1011
{

templates/crud/controller/Controller.tpl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#[Route('<?= $route_path ?>')]
88
<?= $class_data->getClassDeclaration() ?>
9+
910
{
1011
<?= $generator->generateRouteForControllerMethod('', sprintf('%s_index', $route_name), ['GET']) ?>
1112
<?php if (isset($repository_full_class_name)): ?>

templates/crud/test/Test.EntityManager.tpl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<?= $class_data->getUseStatements(); ?>
77

88
<?= $class_data->getClassDeclaration() ?>
9+
910
{
1011
private KernelBrowser $client;
1112
private EntityManagerInterface $manager;

templates/security/Voter.tpl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<?= $class_data->getUseStatements(); ?>
66

77
<?= $class_data->getClassDeclaration() ?>
8+
89
{
910
public const EDIT = 'POST_EDIT';
1011
public const VIEW = 'POST_VIEW';

templates/validator/Constraint.tpl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
88
<?= $class_data->getClassDeclaration(); ?>
9+
910
{
1011
public string $message = 'The string "{{ string }}" contains an illegal character: it can only contain letters or numbers.';
1112

templates/validator/Validator.tpl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<?= $class_data->getUseStatements(); ?>
66

77
<?= $class_data->getClassDeclaration(); ?>
8+
89
{
910
public function validate(mixed $value, Constraint $constraint): void
1011
{

0 commit comments

Comments
 (0)