1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 21:08:34 +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

@ -60,15 +60,16 @@ class TracedStatement
$this->exception = $e;
}
/**
/**
* Check parameters for illegal (non UTF-8) strings, like Binary data.
*
* @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]';
}
}
@ -130,8 +131,8 @@ class TracedStatement
*/
public function getParameters()
{
$params = array();
foreach($this->parameters as $param){
$params = array();
foreach ($this->parameters as $param) {
$params[] = htmlentities($param, ENT_QUOTES, 'UTF-8', false);
}
return $params;