Fix formatting and interfaces in nearly every file
This commit is contained in:
@@ -21,7 +21,7 @@ class MeasureExecutionTime
|
||||
{
|
||||
// Get the response
|
||||
$response = $next($request);
|
||||
if(!defined('LUMEN_START')) {
|
||||
if (!defined('LUMEN_START')) {
|
||||
return $response;
|
||||
}
|
||||
|
||||
@@ -31,8 +31,8 @@ class MeasureExecutionTime
|
||||
// I assume you're using valid json in your responses
|
||||
// Then I manipulate them below
|
||||
$content = json_decode($response->getContent(), true) + [
|
||||
'execution_time' => $executionTime,
|
||||
];
|
||||
'execution_time' => $executionTime,
|
||||
];
|
||||
|
||||
// Change the content of your response
|
||||
$response->setData($content);
|
||||
|
||||
Reference in New Issue
Block a user