Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Nov 23, 2020
1 parent e75221e commit bdeced3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function getUpsertSQL(string $table, array $row): string;
*
* Example for MySQL: 'foo' => '`foo`'
*/
public function quoteIdentifier(string $name) : string;
public function quoteIdentifier(string $name): string;

/**
* Returns a quoted table identifier for the given table.
Expand All @@ -92,5 +92,5 @@ public function getTableIdentifier(Table $table): string;
*
* @param scalar|null $value
*/
public function quoteValue($value) : string;
public function quoteValue($value): string;
}
4 changes: 2 additions & 2 deletions src/Driver/MySQLDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function getUpsertSQL(string $table, array $row): string
return sprintf('INSERT INTO %s SET %s ON DUPLICATE KEY UPDATE %s;', $table, $values, $values);
}

public function quoteIdentifier(string $name) : string
public function quoteIdentifier(string $name): string
{
return '`' . str_replace('`', '``', $name) . '`';
}
Expand All @@ -226,7 +226,7 @@ public function getTableIdentifier(Table $table): string
return $this->quoteIdentifier($table->schema) . '.' . $this->quoteIdentifier($table->name);
}

public function quoteValue($value) : string
public function quoteValue($value): string
{
if ($value === null) {
return 'NULL';
Expand Down

0 comments on commit bdeced3

Please sign in to comment.