mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 02:54:03 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
081799e233
commit
db61054889
2 changed files with 5 additions and 3 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Stancl\Tenancy\Contracts\Future;
|
namespace Stancl\Tenancy\Contracts\Future;
|
||||||
|
|
||||||
use Stancl\Tenancy\Tenant;
|
use Stancl\Tenancy\Tenant;
|
||||||
|
|
@ -16,4 +18,4 @@ interface CanDeleteKeys
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function deleteMany(array $keys, Tenant $tenant = null): void;
|
public function deleteMany(array $keys, Tenant $tenant = null): void;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -365,12 +365,12 @@ class Tenant implements ArrayAccess
|
||||||
|
|
||||||
if (! $this->storage instanceof CanDeleteKeys) {
|
if (! $this->storage instanceof CanDeleteKeys) {
|
||||||
throw new NotImplementedException(get_class($this->storage), 'deleteMany',
|
throw new NotImplementedException(get_class($this->storage), 'deleteMany',
|
||||||
'This method was added to storage drivers provided by the package in 2.2.0 and will be part of the StorageDriver contract in 3.0.0.'
|
'This method was added to storage drivers provided by the package in 2.2.0 and will be part of the StorageDriver contract in 3.0.0.'
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$this->storage->deleteMany($keys);
|
$this->storage->deleteMany($keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue