src/Zephyrus/Security/IntrusionDetection/Converters/StringConverter.php
Method convertFromControlChars
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function convertFromControlChars(string $value): string
{
// critical ctrl values
$search = [
chr(0), chr(1), chr(2), chr(3), chr(4), chr(5),
Method convertFromConcatenated
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function convertFromConcatenated(string $value): string
{
//normalize remaining backslashes
if ($value != preg_replace('/(\w)\\\/', "$1", $value)) {
$value .= preg_replace('/(\w)\\\/', "$1", $value);