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:
parent
dabaff1338
commit
7eba041509
3 changed files with 4 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ namespace Stancl\Tenancy\Facades;
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Facade;
|
use Illuminate\Support\Facades\Facade;
|
||||||
|
|
||||||
class GlobalCacheFacade extends Facade
|
class GlobalCache extends Facade
|
||||||
{
|
{
|
||||||
protected static function getFacadeAccessor()
|
protected static function getFacadeAccessor()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ namespace Stancl\Tenancy\Facades;
|
||||||
use Stancl\Tenancy\TenantManager;
|
use Stancl\Tenancy\TenantManager;
|
||||||
use Illuminate\Support\Facades\Facade;
|
use Illuminate\Support\Facades\Facade;
|
||||||
|
|
||||||
class TenancyFacade extends Facade
|
class Tenancy extends Facade
|
||||||
{
|
{
|
||||||
protected static function getFacadeAccessor()
|
protected static function getFacadeAccessor()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -111,9 +111,11 @@ class Tenant implements ArrayAccess
|
||||||
if (array_intersect(array_keys($this->data), $keys)) { // if all keys are present in cache
|
if (array_intersect(array_keys($this->data), $keys)) { // if all keys are present in cache
|
||||||
return array_reduce($keys, function ($pairs, $key) {
|
return array_reduce($keys, function ($pairs, $key) {
|
||||||
$pairs[$key] = $this->data[$key];
|
$pairs[$key] = $this->data[$key];
|
||||||
|
|
||||||
return $pairs;
|
return $pairs;
|
||||||
}, []);
|
}, []);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->storage->getMany($keys);
|
return $this->storage->getMany($keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue