From 359766ccfabebd9f559ea1a1076b4487620b0bb5 Mon Sep 17 00:00:00 2001 From: stancl Date: Sun, 15 Sep 2019 15:44:41 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Tenant.php | 2 +- tests/TestCase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tenant.php b/src/Tenant.php index 56815cbd..7af3e8a4 100644 --- a/src/Tenant.php +++ b/src/Tenant.php @@ -211,7 +211,7 @@ class Tenant implements ArrayAccess if (is_array($keys)) { if ((array_intersect(array_keys($this->data), $keys) === $keys) || ! $this->persisted) { // if all keys are present in cache - + return array_reduce($keys, function ($pairs, $key) { $pairs[$key] = $this->data[$key] ?? null; diff --git a/tests/TestCase.php b/tests/TestCase.php index 521cc7d2..d68438d1 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -106,7 +106,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase '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') { $app['config']->set([ 'tenancy.storage_driver' => DatabaseStorageDriver::class,