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:
parent
567648710e
commit
57344ccb95
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user