Skip to content

Commit 2534601

Browse files
committed
Fixed code style issues
1 parent e9e101d commit 2534601

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

tests/Integration/TestCase/EntityTestCase.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,12 @@ public function testThatGetIdReturnsCorrectUuid(): void
9696

9797
#[DataProvider('dataProviderTestThatSetterAndGettersWorks')]
9898
#[TestDox('Test that `getter` and `setter` methods exists for `$type $property` property')]
99-
public function testThatGetterAndSetterExists(string $property, string $type, FieldMapping|AssociationMapping $meta, bool $readOnly): void
100-
{
99+
public function testThatGetterAndSetterExists(
100+
string $property,
101+
string $type,
102+
FieldMapping|AssociationMapping $meta,
103+
bool $readOnly,
104+
): void {
101105
$entity = $this->getEntity();
102106
$getter = 'get' . ucfirst($property);
103107
$setter = 'set' . ucfirst($property);

tests/bootstrap.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@
133133
return;
134134
}
135135

136-
function getApplication(): Application
137-
{
136+
$getApplication = static function (): Application {
138137
// Create and boot 'test' kernel
139138
$kernel = new Kernel((string)getenv('APP_ENV'), (bool)getenv('APP_DEBUG'));
140139
$kernel->boot();
@@ -143,9 +142,9 @@ function getApplication(): Application
143142
$application = new Application($kernel);
144143
$application->setAutoExit(false);
145144
return $application;
146-
}
145+
};
147146

148-
$application = getApplication();
147+
$application = $getApplication();
149148

150149
// Add the doctrine:database:drop command to the application and run it
151150
$dropDatabaseDoctrineCommand = static function () use ($application): void {
@@ -229,7 +228,7 @@ function getApplication(): Application
229228
* An exception occurred while executing a query: SQLSTATE[42000]: Syntax
230229
* error or access violation: 1305 SAVEPOINT DOCTRINE_8 does not exist
231230
*/
232-
$application = getApplication();
231+
$application = $getApplication();
233232

234233
// Add the doctrine:fixtures:load command to the application and run it
235234
$loadFixturesDoctrineCommand = static function () use ($application): void {

0 commit comments

Comments
 (0)