Skip to content

Commit c113946

Browse files
authored
template styling fixes (#1180)
1 parent da2df6f commit c113946

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ jobs:
7474
image: dunglas/mercure
7575
env:
7676
SERVER_NAME: :1337
77-
MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!'
78-
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!'
77+
MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!!ChangeMe!!ChangeMe!!ChangeMe!'
78+
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!!ChangeMe!!ChangeMe!!ChangeMe!'
7979
MERCURE_EXTRA_DIRECTIVES: |
8080
anonymous
8181
cors_origins *

src/Resources/skeleton/crud/test/Test.EntityManager.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class <?= $class_name ?> extends WebTestCase<?= "\n" ?>
1515
protected function setUp(): void
1616
{
1717
$this->client = static::createClient();
18-
$this->manager = (static::getContainer()->get('doctrine'))->getManager();
18+
$this->manager = static::getContainer()->get('doctrine')->getManager();
1919
$this->repository = $this->manager->getRepository(<?= $entity_class_name; ?>::class);
2020

2121
foreach ($this->repository->findAll() as $object) {

src/Resources/skeleton/crud/test/Test.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class <?= $class_name ?> extends WebTestCase<?= "\n" ?>
1414
protected function setUp(): void
1515
{
1616
$this->client = static::createClient();
17-
$this->repository = (static::getContainer()->get('doctrine'))->getRepository(<?= $entity_class_name; ?>::class);
17+
$this->repository = static::getContainer()->get('doctrine')->getRepository(<?= $entity_class_name; ?>::class);
1818

1919
foreach ($this->repository->findAll() as $object) {
2020
$this->repository->remove($object, true);

src/Resources/skeleton/validator/Constraint.tpl.php

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

77
/**
88
* @Annotation
9+
*
910
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
1011
*/
1112
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]

tests/Maker/MakeEntityTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,13 @@ public function getTestDetails(): \Generator
559559
'http://127.0.0.1:1337/.well-known/mercure'
560560
);
561561

562+
// JWT Secrets needs to be at least 256 bits in length
563+
$runner->replaceInFile(
564+
'.env',
565+
'MERCURE_JWT_SECRET="!ChangeMe!"',
566+
'MERCURE_JWT_SECRET="!ChangeMe!!ChangeMe!!ChangeMe!!ChangeMe!"'
567+
);
568+
562569
$runner->runMaker([
563570
// entity class name
564571
'User',

tests/Util/fixtures/source/User_empty.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
namespace App\Entity;
44

5-
class User {}
5+
class User
6+
{
7+
}

0 commit comments

Comments
 (0)