mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:04:03 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
c7a1ec0c39
commit
0d03414e80
2 changed files with 2 additions and 2 deletions
|
|
@ -275,7 +275,7 @@ class TenantManager
|
||||||
*/
|
*/
|
||||||
public function put($key, $value = null, string $uuid = null)
|
public function put($key, $value = null, string $uuid = null)
|
||||||
{
|
{
|
||||||
if (in_array($key, ['uuid', 'domain'], true) ||
|
if (in_array($key, ['uuid', 'domain'], true) ||
|
||||||
(is_array($key) && array_reduce(array_keys($key), function ($result, $k) {
|
(is_array($key) && array_reduce(array_keys($key), function ($result, $k) {
|
||||||
return $result || in_array($k, ['uuid', 'domain']);
|
return $result || in_array($k, ['uuid', 'domain']);
|
||||||
}, false))
|
}, false))
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,7 @@ class TenantManagerTest extends TestCase
|
||||||
config(['tenancy.database_name_key' => '_stancl_tenancy_database_name']);
|
config(['tenancy.database_name_key' => '_stancl_tenancy_database_name']);
|
||||||
|
|
||||||
$tenant = tenant()->create('foo.localhost', [
|
$tenant = tenant()->create('foo.localhost', [
|
||||||
'_stancl_tenancy_database_name' => $database
|
'_stancl_tenancy_database_name' => $database,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertSame($database, tenant()->getDatabaseName($tenant));
|
$this->assertSame($database, tenant()->getDatabaseName($tenant));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue