@@ 1568-1573 (lines=6) @@ | ||
1565 | public static function filter($var, $normalization_form = 4 /* n::NFC */, $leading_combining = '◌') |
|
1566 | { |
|
1567 | switch (gettype($var)) { |
|
1568 | case 'array': |
|
1569 | foreach ($var as $k => $v) { |
|
1570 | /** @noinspection AlterInForeachInspection */ |
|
1571 | $var[$k] = self::filter($v, $normalization_form, $leading_combining); |
|
1572 | } |
|
1573 | break; |
|
1574 | case 'object': |
|
1575 | foreach ($var as $k => $v) { |
|
1576 | $var->{$k} = self::filter($v, $normalization_form, $leading_combining); |
|
@@ 1574-1578 (lines=5) @@ | ||
1571 | $var[$k] = self::filter($v, $normalization_form, $leading_combining); |
|
1572 | } |
|
1573 | break; |
|
1574 | case 'object': |
|
1575 | foreach ($var as $k => $v) { |
|
1576 | $var->{$k} = self::filter($v, $normalization_form, $leading_combining); |
|
1577 | } |
|
1578 | break; |
|
1579 | case 'string': |
|
1580 | ||
1581 | if (false !== strpos($var, "\r")) { |