Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 395c19d

Browse files
committed
Use single quotes instead of double
1 parent b324e7e commit 395c19d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/UserRepository/Htpasswd.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(string $filename)
2626
{
2727
if (! file_exists($filename)) {
2828
throw new Exception\InvalidConfigException(sprintf(
29-
"I cannot access the htpasswd file %s",
29+
'I cannot access the htpasswd file %s',
3030
$filename
3131
));
3232
}
@@ -38,7 +38,7 @@ public function __construct(string $filename)
3838
*/
3939
public function authenticate(string $credential, string $password = null): ?UserInterface
4040
{
41-
if (! $handle = fopen($this->filename, "r")) {
41+
if (! $handle = fopen($this->filename, 'r')) {
4242
return null;
4343
}
4444
$found = false;

src/UserRepository/PdoDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(PDO $pdo, array $config)
3434
public function authenticate(string $credential, string $password = null): ?UserInterface
3535
{
3636
$sql = sprintf(
37-
"SELECT * FROM %s WHERE %s = :username",
37+
'SELECT * FROM %s WHERE %s = :username',
3838
$this->config['table'],
3939
$this->config['field']['username']
4040
);

0 commit comments

Comments
 (0)