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

Fix style with php-cs-fixer

This commit is contained in:
Mark 2024-12-29 09:31:52 +01:00
parent eeefb17f2a
commit 5010e798b3
No known key found for this signature in database
GPG key ID: 79CFF7869BD39873
4 changed files with 4 additions and 5 deletions

View file

@ -113,7 +113,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

@ -35,7 +35,7 @@ class TraitRLSManager implements RLSPolicyManager
*/ */
public static bool $implicitRLS = false; public static bool $implicitRLS = false;
/** @var array<class-string<\Illuminate\Database\Eloquent\Model>> */ /** @var array<class-string<Model>> */
public static array $excludedModels = []; public static array $excludedModels = [];
public function generateQueries(): array public function generateQueries(): array
@ -99,7 +99,7 @@ class TraitRLSManager implements RLSPolicyManager
* Models are either discovered in the directories specified in static::$modelDirectories (by default), * Models are either discovered in the directories specified in static::$modelDirectories (by default),
* or by a custom closure specified in static::$modelDiscoveryOverride. * or by a custom closure specified in static::$modelDiscoveryOverride.
* *
* @return array<\Illuminate\Database\Eloquent\Model> * @return array<Model>
*/ */
public function getModels(): array public function getModels(): array
{ {

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
{ {

View file

@ -7,7 +7,6 @@ namespace Stancl\Tenancy\ResourceSyncing;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
use Stancl\Tenancy\Contracts\Tenant;
use Stancl\Tenancy\Contracts\UniqueIdentifierGenerator; use Stancl\Tenancy\Contracts\UniqueIdentifierGenerator;
use Stancl\Tenancy\Database\Contracts\TenantWithDatabase; use Stancl\Tenancy\Database\Contracts\TenantWithDatabase;
use Stancl\Tenancy\ResourceSyncing\Events\CentralResourceAttachedToTenant; use Stancl\Tenancy\ResourceSyncing\Events\CentralResourceAttachedToTenant;