mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Use short array declaration
This commit is contained in:
@@ -28,11 +28,11 @@ class API_V1_Timer implements ServiceProviderInterface
|
||||
$n++;
|
||||
$name = $event->getName() . '#' . $n;
|
||||
}
|
||||
$app['api.timers']->add(array(
|
||||
$app['api.timers']->add([
|
||||
'name' => $name,
|
||||
'memory' => memory_get_usage(),
|
||||
'time' => microtime(true) - $app['api.timers.start'],
|
||||
));
|
||||
]);
|
||||
};
|
||||
|
||||
$app['dispatcher']->addListener(KernelEvents::CONTROLLER, $callback, -999999);
|
||||
|
Reference in New Issue
Block a user