Skip to content

Commit 0fdc59d

Browse files
committed
comment grammar
1 parent 1ae7d58 commit 0fdc59d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Bootstrappers/DatabaseTenancyBootstrapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ protected function verifyTenantCanUseDatabase(Tenant $tenant): void
9292
/** @var \Stancl\Tenancy\Database\Models\Tenant&TenantWithDatabase $tenant */
9393
$tenantDbName = $tenant->database()->getName();
9494

95-
// Check if any other tenant uses this tenant's database
95+
// Check that no other tenant uses this tenant's database
9696
if ($tenant::where($tenant->getTenantKeyName(), '!=', $tenant->getTenantKey())
9797
->where($tenant::getDataColumn() . '->' . $tenant->internalPrefix() . 'db_name', $tenantDbName)
9898
->exists()) {
9999
throw new RuntimeException('Tenant cannot use a database of another tenant.');
100100
}
101101

102-
// Check if the current database is not the central database
102+
// Check that the current database is not the central database
103103
$centralDbName = DB::connection(
104104
config('tenancy.database.central_connection', 'central')
105105
)->getDatabaseName();

0 commit comments

Comments
 (0)