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

Apply fixes from StyleCI

This commit is contained in:
stancl 2019-10-17 11:38:58 +00:00 committed by StyleCI Bot
parent fb6b186af5
commit ecde8901e7
3 changed files with 3 additions and 3 deletions

View file

@ -133,7 +133,7 @@ class DatabaseManager
{
$database = $tenant->getDatabaseName();
$manager = $this->getTenantDatabaseManager($tenant);
if ($this->app['config']['tenancy.queue_database_creation'] ?? false) {
QueuedTenantDatabaseCreator::withChain($afterCreating)->dispatch($manager, $database);
} else {

View file

@ -62,7 +62,7 @@ class TenantManager
$this->ensureTenantCanBeCreated($tenant);
$this->storage->createTenant($tenant);
/** @var \Illuminate\Contracts\Queue\ShouldQueue[]|callable[] $afterCreating */
$afterCreating = [];

View file

@ -262,7 +262,7 @@ class TenantManagerTest extends TestCase
$tenant = Tenant::new()->save();
Queue::assertPushedWithChain(QueuedTenantDatabaseCreator::class, [
QueuedTenantDatabaseMigrator::class
QueuedTenantDatabaseMigrator::class,
]);
// foreach (Queue::pushedJobs() as $job) {