mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 21:34:04 +00:00
Fix code style (php-cs-fixer)
This commit is contained in:
parent
fadf1001f8
commit
be93d6031c
1 changed files with 3 additions and 2 deletions
|
|
@ -38,6 +38,7 @@ class DisallowSqliteAttach implements Feature
|
||||||
{
|
{
|
||||||
if (PHP_VERSION_ID >= 80500) {
|
if (PHP_VERSION_ID >= 80500) {
|
||||||
$this->setNativeAuthorizer($pdo);
|
$this->setNativeAuthorizer($pdo);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -72,8 +73,8 @@ class DisallowSqliteAttach implements Feature
|
||||||
{
|
{
|
||||||
$pdo->setAuthorizer(static function (int $action): int {
|
$pdo->setAuthorizer(static function (int $action): int {
|
||||||
return $action === 24 // SQLITE_ATTACH
|
return $action === 24 // SQLITE_ATTACH
|
||||||
? Pdo\Sqlite::DENY
|
? PDO\Sqlite::DENY
|
||||||
: Pdo\Sqlite::OK;
|
: PDO\Sqlite::OK;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue