diff --git a/src/DebugBar/DataCollector/PDO/TracedStatement.php b/src/DebugBar/DataCollector/PDO/TracedStatement.php index 8d730eb..124ad7f 100644 --- a/src/DebugBar/DataCollector/PDO/TracedStatement.php +++ b/src/DebugBar/DataCollector/PDO/TracedStatement.php @@ -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;