* Return the flight fares if there are no subfleet fares #488 * Formatting * Formatting
This commit is contained in:
@@ -25,8 +25,8 @@ class MeasureExecutionTime implements Middleware
|
||||
// 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