Skip to content

Commit

Permalink
Pass tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Mulder committed Jul 31, 2024
1 parent 3a0fd61 commit 701ead4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plugin/AppInterfacePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function aroundLaunch(

$this->profiler->handle();
$response = $proceed();
$this->profiler->terminate();
$this->profiler->terminate(['uri' => $this->request->getUriString()]);
return $response;
}

Expand All @@ -37,6 +37,6 @@ public function isEnabled(): bool
return filter_var($this->request->getHeader(XhprofProfiler::HEADER), FILTER_VALIDATE_BOOLEAN);
}

return isset($_ENV['XHPROF_ENABLED']) && is_bool($_ENV['XHPROF_ENABLED']) ? $_ENV['XHPROF_ENABLED'] : false;
return isset($_ENV['XHPROF_ENABLED']) ? (bool) $_ENV['XHPROF_ENABLED'] : false;
}
}

0 comments on commit 701ead4

Please sign in to comment.