From 63ebbe1b449b3f9ed7e1ddde9b2aaf8f7353cf77 Mon Sep 17 00:00:00 2001 From: stancl Date: Sun, 8 Sep 2019 13:05:21 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Contracts/TenantCannotBeCreatedException.php | 6 ++++-- src/TenantManagerv2.php | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Contracts/TenantCannotBeCreatedException.php b/src/Contracts/TenantCannotBeCreatedException.php index 2bfae8e7..fead49ea 100644 --- a/src/Contracts/TenantCannotBeCreatedException.php +++ b/src/Contracts/TenantCannotBeCreatedException.php @@ -1,10 +1,12 @@ message = 'Tenant cannot be craeted. Reason: ' . $this->reason(); } -} \ No newline at end of file +} diff --git a/src/TenantManagerv2.php b/src/TenantManagerv2.php index 1ef50505..5a9b1230 100644 --- a/src/TenantManagerv2.php +++ b/src/TenantManagerv2.php @@ -6,8 +6,8 @@ namespace Stancl\Tenancy; use Illuminate\Foundation\Application; use Illuminate\Contracts\Console\Kernel as Artisan; -use Stancl\Tenancy\Contracts\TenantCannotBeCreatedException; use Stancl\Tenancy\Exceptions\NoTenantIdentifiedException; +use Stancl\Tenancy\Contracts\TenantCannotBeCreatedException; use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException; /** @@ -46,7 +46,7 @@ class TenantManagerv2 $this->storage->createTenant($tenant); $this->database->create($tenant); - + if ($this->migrateAfterCreation()) { $this->artisan->call('tenants:migrate', [ '--tenants' => [$tenant['id']],