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:
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);
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue