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

Apply fixes from StyleCI

This commit is contained in:
stancl 2019-10-27 17:56:53 +00:00 committed by StyleCI Bot
parent e872139c88
commit d2931530bd
3 changed files with 13 additions and 4 deletions

View file

@ -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();
}

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Stancl\Tenancy\StorageDrivers\Database;
use Illuminate\Config\Repository as ConfigRepository;

View file

@ -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]);