mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Use short array declaration
This commit is contained in:
@@ -29,7 +29,7 @@ class connection_pdoStatementDebugger
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function execute($params = array())
|
||||
public function execute($params = [])
|
||||
{
|
||||
$start = microtime(true);
|
||||
$exception = null;
|
||||
@@ -39,10 +39,10 @@ class connection_pdoStatementDebugger
|
||||
$exception = $e;
|
||||
}
|
||||
$time = microtime(true) - $start;
|
||||
connection::$log[] = array(
|
||||
connection::$log[] = [
|
||||
'query' => '' . str_replace(array_keys($params), array_values($params), $this->statement->queryString),
|
||||
'time' => $time
|
||||
);
|
||||
];
|
||||
if ($exception instanceof Exception)
|
||||
throw $exception;
|
||||
|
||||
@@ -51,6 +51,6 @@ class connection_pdoStatementDebugger
|
||||
|
||||
public function __call($function_name, $parameters)
|
||||
{
|
||||
return call_user_func_array(array($this->statement, $function_name), $parameters);
|
||||
return call_user_func_array([$this->statement, $function_name], $parameters);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user