mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:24:03 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
27ded685f8
commit
359766ccfa
2 changed files with 2 additions and 2 deletions
|
|
@ -211,7 +211,7 @@ class Tenant implements ArrayAccess
|
||||||
if (is_array($keys)) {
|
if (is_array($keys)) {
|
||||||
if ((array_intersect(array_keys($this->data), $keys) === $keys) ||
|
if ((array_intersect(array_keys($this->data), $keys) === $keys) ||
|
||||||
! $this->persisted) { // if all keys are present in cache
|
! $this->persisted) { // 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] ?? null;
|
$pairs[$key] = $this->data[$key] ?? null;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
|
||||||
'tenancy.storage_driver' => RedisStorageDriver::class,
|
'tenancy.storage_driver' => RedisStorageDriver::class,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// tenancy()->storage = $app->make(RedisStorageDriver::class); // todo this shouldn't be necessary
|
// tenancy()->storage = $app->make(RedisStorageDriver::class); // todo this shouldn't be necessary
|
||||||
} elseif (env('TENANCY_TEST_STORAGE_DRIVER', 'redis') === 'db') {
|
} elseif (env('TENANCY_TEST_STORAGE_DRIVER', 'redis') === 'db') {
|
||||||
$app['config']->set([
|
$app['config']->set([
|
||||||
'tenancy.storage_driver' => DatabaseStorageDriver::class,
|
'tenancy.storage_driver' => DatabaseStorageDriver::class,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue