mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 06:24:04 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
a00113b3d1
commit
85de1ad1c8
1 changed files with 4 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ class TenancyServiceProvider extends ServiceProvider
|
||||||
|
|
||||||
$this->app->register(TenantRouteServiceProvider::class);
|
$this->app->register(TenantRouteServiceProvider::class);
|
||||||
|
|
||||||
if (class_exists(Telescope::class)) {
|
if (\class_exists(Telescope::class)) {
|
||||||
$this->setTelescopeTags();
|
$this->setTelescopeTags();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -60,12 +60,12 @@ class TenancyServiceProvider extends ServiceProvider
|
||||||
|
|
||||||
Telescope::tag(function (\Laravel\Telescope\IncomingEntry $entry) use ($original_callback) {
|
Telescope::tag(function (\Laravel\Telescope\IncomingEntry $entry) use ($original_callback) {
|
||||||
$tags = [];
|
$tags = [];
|
||||||
if (! is_null($original_callback)) {
|
if (! \is_null($original_callback)) {
|
||||||
$tags = $original_callback($entry);
|
$tags = $original_callback($entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array('tenancy', request()->route()->middleware())) {
|
if (\in_array('tenancy', request()->route()->middleware())) {
|
||||||
$tags = array_merge($tags, ['tenant:' . tenant('uuid')]);
|
$tags = \array_merge($tags, ['tenant:' . tenant('uuid')]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $tags;
|
return $tags;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue