mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 09:24:02 +00:00
Fix style with php-cs-fixer
This commit is contained in:
parent
eeefb17f2a
commit
5010e798b3
4 changed files with 4 additions and 5 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue