mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 10:54:04 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
e872139c88
commit
d2931530bd
3 changed files with 13 additions and 4 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy\StorageDrivers\Database;
|
||||
|
||||
use Illuminate\Config\Repository as ConfigRepository;
|
||||
|
|
@ -20,6 +22,7 @@ class DomainRepository extends Repository
|
|||
public function getTenantDomains($tenant)
|
||||
{
|
||||
$id = $tenant instanceof Tenant ? $tenant->id : $tenant;
|
||||
|
||||
return $this->where('tenant_id', $id)->get('domain')->toArray();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy\StorageDrivers\Database;
|
||||
|
||||
use Illuminate\Config\Repository as ConfigRepository;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy\StorageDrivers\Database;
|
||||
|
||||
use Illuminate\Config\Repository as ConfigRepository;
|
||||
|
|
@ -74,6 +76,7 @@ class TenantRepository extends Repository
|
|||
foreach ($kvPairs as $key => $value) {
|
||||
if (in_array($key, static::customColumns())) {
|
||||
$data[$key] = $value;
|
||||
|
||||
return;
|
||||
} else {
|
||||
$jsonData[$key] = $value;
|
||||
|
|
@ -94,6 +97,7 @@ class TenantRepository extends Repository
|
|||
foreach ($keys as $key => $key) {
|
||||
if (in_array($key, static::customColumns())) {
|
||||
$data[$key] = null;
|
||||
|
||||
return;
|
||||
} else {
|
||||
unset($jsonData[$key]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue