From 143b494e51661a350ea8d43491ad90331f42f6fe Mon Sep 17 00:00:00 2001 From: PHP CS Fixer Date: Sat, 4 Jan 2025 14:21:01 +0000 Subject: [PATCH] Fix code style (php-cs-fixer) --- src/Features/DisallowSqliteAttach.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Features/DisallowSqliteAttach.php b/src/Features/DisallowSqliteAttach.php index d1533d51..f428a051 100644 --- a/src/Features/DisallowSqliteAttach.php +++ b/src/Features/DisallowSqliteAttach.php @@ -43,8 +43,12 @@ class DisallowSqliteAttach implements Feature static::$loadExtensionSupported = method_exists($pdo, 'loadExtension'); } - if (static::$loadExtensionSupported === false) return false; - if (static::$extensionPath === false) return false; + if (static::$loadExtensionSupported === false) { + return false; + } + if (static::$extensionPath === false) { + return false; + } $suffix = match (PHP_OS_FAMILY) { 'Linux' => 'so', @@ -57,7 +61,9 @@ class DisallowSqliteAttach implements Feature $arm = $arch === 'aarch64' || $arch === 'arm64'; static::$extensionPath ??= realpath(base_path('vendor/stancl/tenancy/extensions/lib/' . ($arm ? 'arm/' : '') . 'noattach.' . $suffix)); - if (static::$extensionPath === false) return false; + if (static::$extensionPath === false) { + return false; + } $pdo->loadExtension(static::$extensionPath); // @phpstan-ignore method.notFound