1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 08:44:04 +00:00

Fix code style (php-cs-fixer)

This commit is contained in:
PHP CS Fixer 2025-01-16 09:25:44 +00:00
parent 9a2d3bdb80
commit 470b84d172
2 changed files with 3 additions and 3 deletions

View file

@ -70,7 +70,7 @@ trait ParallelCommand
// perflevel0 refers to P-cores on M-series, and the entire CPU on Intel Macs // 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) { if ($darwin && $ffi->sysctlbyname('hw.perflevel0.logicalcpu', FFI::addr($cores), FFI::addr($size), null, 0) === 0) {
return $cores->cdata; return $cores->cdata;
} else if ($darwin) { } elseif ($darwin) {
// Reset the size in case the pointer got written to (likely shouldn't happen) // Reset the size in case the pointer got written to (likely shouldn't happen)
$size->cdata = FFI::sizeof($cores); $size->cdata = FFI::sizeof($cores);
} }
@ -109,7 +109,7 @@ trait ParallelCommand
if ($processes === null) { if ($processes === null) {
// This is used when the option is set but *without* a value (-p). // This is used when the option is set but *without* a value (-p).
$processes = $this->getLogicalCoreCount(); $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*. // Default value we set for the option -- this is used when the option is *not set*.
$processes = 1; $processes = 1;
} else { } else {

View file

@ -7,12 +7,12 @@ namespace Stancl\Tenancy\Resolvers;
use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\Str;
use Stancl\Tenancy\Contracts\Domain; use Stancl\Tenancy\Contracts\Domain;
use Stancl\Tenancy\Contracts\SingleDomainTenant; use Stancl\Tenancy\Contracts\SingleDomainTenant;
use Stancl\Tenancy\Contracts\Tenant; use Stancl\Tenancy\Contracts\Tenant;
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedOnDomainException; use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedOnDomainException;
use Stancl\Tenancy\Tenancy; use Stancl\Tenancy\Tenancy;
use Illuminate\Support\Str;
class DomainTenantResolver extends Contracts\CachedTenantResolver class DomainTenantResolver extends Contracts\CachedTenantResolver
{ {