mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 23:34:03 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
93fc961b34
commit
6faac920c9
2 changed files with 2 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ class DatabaseStorageDriver implements StorageDriver
|
||||||
public function updateTenant(Tenant $tenant): void
|
public function updateTenant(Tenant $tenant): void
|
||||||
{
|
{
|
||||||
Tenants::find($tenant->id)->putMany($tenant->data);
|
Tenants::find($tenant->id)->putMany($tenant->data);
|
||||||
|
|
||||||
$original_domains = Domains::where('tenant_id', $tenant->id)->get()->map(function ($model) {
|
$original_domains = Domains::where('tenant_id', $tenant->id)->get()->map(function ($model) {
|
||||||
return $model->domain;
|
return $model->domain;
|
||||||
})->toArray();
|
})->toArray();
|
||||||
|
|
|
||||||
|
|
@ -291,7 +291,7 @@ class Tenant implements ArrayAccess
|
||||||
public function __call($method, $parameters)
|
public function __call($method, $parameters)
|
||||||
{
|
{
|
||||||
if (Str::startsWith($method, 'with')) {
|
if (Str::startsWith($method, 'with')) {
|
||||||
return $this->with(Str::snake(substr($method, 4)), $parameters[0]);
|
return $this->with(Str::snake(substr($method, 4)), $parameters[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo throw some exception?
|
// todo throw some exception?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue