1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 05:18:32 +01:00

coding conventions

This commit is contained in:
Maxime Bouroumeau-Fuseau 2013-11-08 15:26:30 -02:00
parent 567648710e
commit 57344ccb95

View File

@ -66,9 +66,10 @@ class TracedStatement
* @param $params
* @return mixed
*/
public function checkParameters($params){
foreach($params as &$param){
if(!mb_check_encoding($param, 'UTF-8')){
public function checkParameters($params)
{
foreach ($params as &$param) {
if(!mb_check_encoding($param, 'UTF-8')) {
$param = '[BINARY DATA]';
}
}
@ -131,7 +132,7 @@ class TracedStatement
public function getParameters()
{
$params = array();
foreach($this->parameters as $param){
foreach ($this->parameters as $param) {
$params[] = htmlentities($param, ENT_QUOTES, 'UTF-8', false);
}
return $params;