From 470b84d1721b7f9787607b38dc2df685be5ab48a Mon Sep 17 00:00:00 2001 From: PHP CS Fixer Date: Thu, 16 Jan 2025 09:25:44 +0000 Subject: [PATCH] Fix code style (php-cs-fixer) --- src/Concerns/ParallelCommand.php | 4 ++-- src/Resolvers/DomainTenantResolver.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Concerns/ParallelCommand.php b/src/Concerns/ParallelCommand.php index aad7a1ec..e8f87ec9 100644 --- a/src/Concerns/ParallelCommand.php +++ b/src/Concerns/ParallelCommand.php @@ -70,7 +70,7 @@ trait ParallelCommand // perflevel0 refers to P-cores on M-series, and the entire CPU on Intel Macs if ($darwin && $ffi->sysctlbyname('hw.perflevel0.logicalcpu', FFI::addr($cores), FFI::addr($size), null, 0) === 0) { return $cores->cdata; - } else if ($darwin) { + } elseif ($darwin) { // Reset the size in case the pointer got written to (likely shouldn't happen) $size->cdata = FFI::sizeof($cores); } @@ -109,7 +109,7 @@ trait ParallelCommand if ($processes === null) { // This is used when the option is set but *without* a value (-p). $processes = $this->getLogicalCoreCount(); - } else if ((int) $processes === -1) { + } elseif ((int) $processes === -1) { // Default value we set for the option -- this is used when the option is *not set*. $processes = 1; } else { diff --git a/src/Resolvers/DomainTenantResolver.php b/src/Resolvers/DomainTenantResolver.php index 4d34811e..b5767172 100644 --- a/src/Resolvers/DomainTenantResolver.php +++ b/src/Resolvers/DomainTenantResolver.php @@ -7,12 +7,12 @@ namespace Stancl\Tenancy\Resolvers; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\Relation; +use Illuminate\Support\Str; use Stancl\Tenancy\Contracts\Domain; use Stancl\Tenancy\Contracts\SingleDomainTenant; use Stancl\Tenancy\Contracts\Tenant; use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedOnDomainException; use Stancl\Tenancy\Tenancy; -use Illuminate\Support\Str; class DomainTenantResolver extends Contracts\CachedTenantResolver {