From 2d083cb8f4a57bbb68a197de8f39ee8aa4dcf31a Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 12 Feb 2024 11:47:15 +0100 Subject: [PATCH] minor code cleanup --- code/Middleware/DebugBarMiddleware.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/Middleware/DebugBarMiddleware.php b/code/Middleware/DebugBarMiddleware.php index 26fdb19..a9739e1 100644 --- a/code/Middleware/DebugBarMiddleware.php +++ b/code/Middleware/DebugBarMiddleware.php @@ -25,11 +25,12 @@ public function process(HTTPRequest $request, callable $delegate) * Track the start up of the framework boot * * @param HTTPRequest $request + * @return void */ protected function beforeRequest(HTTPRequest $request) { DebugBar::withDebugBar(function (\DebugBar\DebugBar $debugbar) { - /** @var DebugBar\DataCollector\TimeDataCollector $timeData */ + /** @var \DebugBar\DataCollector\TimeDataCollector|null $timeData */ $timeData = $debugbar->getCollector('time'); if (!$timeData) { @@ -78,6 +79,7 @@ protected function beforeRequest(HTTPRequest $request) * * @param HTTPRequest $request * @param HTTPResponse $response + * @return void */ protected function afterRequest(HTTPRequest $request, HTTPResponse $response) {