1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 01:14:03 +00:00

Fixed styling

This commit is contained in:
Jesper Jacobsen 2019-10-27 11:29:51 +01:00
parent a6d43cb5e2
commit 432dd8fd1d

View file

@ -7,7 +7,7 @@ namespace Stancl\Tenancy\Middleware;
use Closure; use Closure;
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException; use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException;
class InitializeTenancy class InitializeTenancyByRequestData
{ {
/** @var callable */ /** @var callable */
protected $onFail; protected $onFail;
@ -28,7 +28,7 @@ class InitializeTenancy
*/ */
public function handle($request, Closure $next) public function handle($request, Closure $next)
{ {
if(request()->method() !== 'OPTIONS') { if (request()->method() !== 'OPTIONS') {
try { try {
$this->parseTenant(); $this->parseTenant();
} catch (TenantCouldNotBeIdentifiedException $e) { } catch (TenantCouldNotBeIdentifiedException $e) {