Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Jan 30, 2024
1 parent 7c0d68e commit b1ab0be
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
3 changes: 1 addition & 2 deletions tests/Command/Migration/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ protected static function databaseManager(): DatabaseManager
protected static function migration(): FakeMigration
{
$migration = new FakeMigration();
$migration = $migration->withState(new State('test', new \DateTimeImmutable(), State::STATUS_PENDING));

return $migration;
return $migration->withState(new State('test', new \DateTimeImmutable(), State::STATUS_PENDING));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public function testReadFromConveyor(): void
SchemaInterface::SCOPE => null,
SchemaInterface::TYPECAST => ['id' => 'int', 'createdAt' => 'datetime'],
SchemaInterface::SCHEMA => [],
SchemaInterface::TYPECAST_HANDLER => null
]
SchemaInterface::TYPECAST_HANDLER => null,
],
], $provider->read());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class CompareHandlerTest extends TestCase
{
public function testValidateArgumentsException(): void
{
$handler = new class extends CompareHandler {
$handler = new class () extends CompareHandler {
public function getOperator(): string
{
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Data/Reader/FilterHandler/GroupHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class GroupHandlerTest extends TestCase
*/
public function testInvalidArgumentsException(array $arguments, string $error): void
{
$handler = new class extends GroupHandler {
$handler = new class () extends GroupHandler {
public function getOperator(): string
{
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Exception/NotFoundExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function testDefaultState(): void
$exception->getMessage()
);
$this->assertSame(0, $exception->getCode());
$this->assertNull( $exception->getPrevious());
$this->assertNull($exception->getPrevious());
}

public function testFriendly(): void
Expand Down
5 changes: 3 additions & 2 deletions tests/Unit/Exception/NotInstantiableClassExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ public function testDefaultState(): void
$exception = new NotInstantiableClassException(\stdClass::class);

$this->assertInstanceOf(\Exception::class, $exception);
$this->assertSame(\sprintf('Can not instantiate "%s" because it is not a subclass of "%s".',
$this->assertSame(\sprintf(
'Can not instantiate "%s" because it is not a subclass of "%s".',
\stdClass::class,
RepositoryInterface::class
), $exception->getMessage());
$this->assertSame(0, $exception->getCode());
$this->assertNull( $exception->getPrevious());
$this->assertNull($exception->getPrevious());
}

public function testFriendly(): void
Expand Down

0 comments on commit b1ab0be

Please sign in to comment.