1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 17:44:04 +00:00

Apply fixes from StyleCI

This commit is contained in:
stancl 2019-09-15 10:17:00 +00:00 committed by StyleCI Bot
parent e25a01a997
commit d320fa221d
3 changed files with 7 additions and 2 deletions

View file

@ -6,7 +6,7 @@ namespace Stancl\Tenancy\Exceptions;
use Stancl\Tenancy\Contracts\TenantCannotBeCreatedException;
class DomainOccupiedByOtherTenantException extends TenantCannotBeCreatedException
class DomainsOccupiedByOtherTenantException extends TenantCannotBeCreatedException
{
public function reason(): string
{

View file

@ -1,6 +1,9 @@
<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Exceptions;
class TenantStorageException extends \Exception
{}
{
}

View file

@ -99,12 +99,14 @@ class DatabaseStorageDriver implements StorageDriver
public function get(string $key, Tenant $tenant = null)
{
$tenant = $tenant ?? $this->tenant();
return Tenants::find($tenant->id)->get($key);
}
public function getMany(array $keys, Tenant $tenant = null): array
{
$tenant = $tenant ?? $this->tenant();
return Tenants::find($tenant->id)->getMany($keys);
}