Skip to content

Commit

Permalink
Cs - added trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgfeller committed Oct 28, 2024
1 parent f5b3c00 commit 03ceff2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Console/SqlSchemaGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
public function __construct(
private PDO $pdo,
private string $schemaOutputPath
private string $schemaOutputPath,
) {
}

Expand Down
4 changes: 2 additions & 2 deletions src/Trait/DatabaseTableExtensionTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected function findTableRowsByColumn(
string $table,
string $whereColumn,
mixed $whereValue,
?array $fields = null
?array $fields = null,
): array {
$sql = sprintf('SELECT * FROM `%s` WHERE `%s` = :whereValue', $table, $whereColumn);
$statement = $this->createPreparedStatement($sql);
Expand Down Expand Up @@ -107,7 +107,7 @@ protected function assertTableRowsByColumn(
string $whereColumn,
mixed $whereValue,
?array $fields = null,
string $message = ''
string $message = '',
): void {
$rows = $this->findTableRowsByColumn($table, $whereColumn, $whereValue, $fields ?: array_keys($expectedRow));
foreach ($rows as $row) {
Expand Down
6 changes: 3 additions & 3 deletions src/Trait/DatabaseTableTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function assertTableRow(
string $table,
int $id,
?array $fields = null,
string $message = ''
string $message = '',
): void {
$this->assertSame(
$expectedRow,
Expand Down Expand Up @@ -81,7 +81,7 @@ protected function assertTableRowEquals(
string $table,
int $id,
?array $fields = null,
string $message = ''
string $message = '',
): void {
$this->assertEquals(
$expectedRow,
Expand All @@ -106,7 +106,7 @@ protected function assertTableRowValue(
string $table,
int $id,
string $field,
string $message = ''
string $message = '',
): void {
$actual = $this->getTableRowById($table, $id, [$field])[$field];
$this->assertSame($expected, $actual, $message);
Expand Down
2 changes: 1 addition & 1 deletion src/Trait/HttpJsonTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ trait HttpJsonTestTrait
protected function createJsonRequest(
string $method,
string|UriInterface $uri,
?array $data = null
?array $data = null,
): ServerRequestInterface {
$request = $this->createRequest($method, $uri);

Expand Down
6 changes: 3 additions & 3 deletions src/Trait/MailerTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function assertEmailHeaderSame(
RawMessage $email,
string $headerName,
string $expectedValue,
string $message = ''
string $message = '',
): void {
$this->assertThat($email, new EmailHeaderSame($headerName, $expectedValue), $message);
}
Expand All @@ -97,7 +97,7 @@ protected function assertEmailHeaderNotSame(
RawMessage $email,
string $headerName,
string $expectedValue,
string $message = ''
string $message = '',
): void {
$this->assertThat(
$email,
Expand All @@ -110,7 +110,7 @@ protected function assertEmailAddressContains(
RawMessage $email,
string $headerName,
string $expectedValue,
string $message = ''
string $message = '',
): void {
$this->assertThat($email, new EmailAddressContains($headerName, $expectedValue), $message);
}
Expand Down

0 comments on commit 03ceff2

Please sign in to comment.