From f639909eb7482447e1755b5c26649861b7540f2d Mon Sep 17 00:00:00 2001 From: stancl Date: Fri, 22 May 2020 10:34:35 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Middleware/IdentificationMiddleware.php | 2 +- tests/CachedTenantResolverTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Middleware/IdentificationMiddleware.php b/src/Middleware/IdentificationMiddleware.php index e4c3de2d..16056fea 100644 --- a/src/Middleware/IdentificationMiddleware.php +++ b/src/Middleware/IdentificationMiddleware.php @@ -39,7 +39,7 @@ abstract class IdentificationMiddleware } else { $this->tenancy->initialize( $this->resolver->resolve(...$resolverArguments) - ); + ); } } catch (TenantCouldNotBeIdentifiedException $e) { $onFail = static::$onFail ?? function ($e) { diff --git a/tests/CachedTenantResolverTest.php b/tests/CachedTenantResolverTest.php index 8d0e0ff2..98b8bf43 100644 --- a/tests/CachedTenantResolverTest.php +++ b/tests/CachedTenantResolverTest.php @@ -69,7 +69,7 @@ class CachedTenantResolverTest extends TestCase // create cache $this->get('http://acme.localhost/foo') ->assertSee('bar'); - + $this->mock(CachedTenantResolver::class, function ($mock) { return $mock->shouldReceive('resolve')->once(); // only once });