mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:44:04 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
61739dc5fc
commit
805644f85b
4 changed files with 11 additions and 5 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy\Contracts;
|
||||
|
||||
use Stancl\Tenancy\TenantManager;
|
||||
|
|
@ -9,4 +11,4 @@ interface Feature
|
|||
{
|
||||
// todo is the tenantManager argument necessary?
|
||||
public function bootstrap(TenantManager $tenantManager): void;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy\Features;
|
||||
|
||||
use Laravel\Telescope\Telescope;
|
||||
|
|
@ -31,8 +33,8 @@ class TelescopeTags implements Feature
|
|||
|
||||
public function getTags(IncomingEntry $entry): array
|
||||
{
|
||||
return array_reduce($this->callbacks, function ($tags, $listener) use($entry) {
|
||||
return array_reduce($this->callbacks, function ($tags, $listener) use ($entry) {
|
||||
return array_merge($tags, $listener($entry));
|
||||
}, []);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Stancl\Tenancy\TenantManager;
|
||||
use Stancl\Tenancy\Contracts\Feature;
|
||||
|
||||
|
|
@ -17,4 +19,4 @@ class TenantRedirect implements Feature
|
|||
return $this;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ use Stancl\Tenancy\Commands\Seed;
|
|||
use Illuminate\Cache\CacheManager;
|
||||
use Stancl\Tenancy\Commands\Install;
|
||||
use Stancl\Tenancy\Commands\Migrate;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Stancl\Tenancy\Commands\Rollback;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
|
@ -50,6 +49,7 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
|
||||
$this->app->register(TenantRouteServiceProvider::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register services.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue