mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 13:14:05 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
ff71197341
commit
63ebbe1b44
2 changed files with 6 additions and 4 deletions
|
|
@ -1,10 +1,12 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy\Contracts;
|
||||
|
||||
abstract class TenantCannotBeCreatedException extends \Exception
|
||||
{
|
||||
abstract function reason(): string;
|
||||
abstract public function reason(): string;
|
||||
|
||||
private $message;
|
||||
|
||||
|
|
@ -12,4 +14,4 @@ abstract class TenantCannotBeCreatedException extends \Exception
|
|||
{
|
||||
$this->message = 'Tenant cannot be craeted. Reason: ' . $this->reason();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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']],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue