Use short array declaration

This commit is contained in:
Romain Neutron
2013-11-18 11:58:12 +01:00
parent 2898b317c4
commit 56b373ee6e
723 changed files with 8350 additions and 8352 deletions

View File

@@ -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);
}
}