1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 18:04:03 +00:00

Apply fixes from StyleCI

This commit is contained in:
stancl 2019-09-08 09:11:59 +00:00 committed by StyleCI Bot
parent 61739dc5fc
commit 805644f85b
4 changed files with 11 additions and 5 deletions

View file

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

View file

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

View file

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

View file

@ -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.
*