1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 23:54:03 +00:00

Apply fixes from StyleCI

This commit is contained in:
stancl 2019-08-17 20:23:04 +00:00 committed by StyleCI Bot
parent a00113b3d1
commit 85de1ad1c8

View file

@ -49,7 +49,7 @@ class TenancyServiceProvider extends ServiceProvider
$this->app->register(TenantRouteServiceProvider::class);
if (class_exists(Telescope::class)) {
if (\class_exists(Telescope::class)) {
$this->setTelescopeTags();
}
}
@ -60,12 +60,12 @@ class TenancyServiceProvider extends ServiceProvider
Telescope::tag(function (\Laravel\Telescope\IncomingEntry $entry) use ($original_callback) {
$tags = [];
if (! is_null($original_callback)) {
if (! \is_null($original_callback)) {
$tags = $original_callback($entry);
}
if (in_array('tenancy', request()->route()->middleware())) {
$tags = array_merge($tags, ['tenant:' . tenant('uuid')]);
if (\in_array('tenancy', request()->route()->middleware())) {
$tags = \array_merge($tags, ['tenant:' . tenant('uuid')]);
}
return $tags;