diff --git a/src/Features/DisallowSqliteAttach.php b/src/Features/DisallowSqliteAttach.php index c3acb066..61cd0cb1 100644 --- a/src/Features/DisallowSqliteAttach.php +++ b/src/Features/DisallowSqliteAttach.php @@ -22,7 +22,9 @@ public function bootstrap(Tenancy $tenancy): void // Handle any already resolved connections foreach (DB::getConnections() as $connection) { if ($connection instanceof SQLiteConnection) { - if (! $this->loadExtension($connection->getPdo())) return; + if (! $this->loadExtension($connection->getPdo())) { + return; + } } } @@ -41,7 +43,9 @@ protected function loadExtension(PDO $pdo): bool static::$loadExtensionSupported = method_exists($pdo, 'loadExtension'); } - if (static::$loadExtensionSupported === false) return false; + if (static::$loadExtensionSupported === false) { + return false; + } $suffix = match (PHP_OS_FAMILY) { 'Linux' => '.so', @@ -54,7 +58,9 @@ protected function loadExtension(PDO $pdo): bool $arm = $arch === 'aarch64' || $arch === 'arm64'; static::$extensionPath ??= realpath(base_path('vendor/stancl/tenancy/src/extensions/lib/' . ($arm ? 'arm/' : '') . 'noattach' . $suffix)); - if (static::$extensionPath === false) return false; + if (static::$extensionPath === false) { + return false; + } $pdo->loadExtension(static::$extensionPath);