dadajuice/zephyrus

View on GitHub
src/Zephyrus/Security/IntrusionDetection/Converters/StringConverter.php

Summary

Maintainability
A
3 hrs
Test Coverage
A
100%

Method convertFromControlChars has 55 lines of code (exceeds 25 allowed). Consider refactoring.
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

        private function convertFromConcatenated(string $value): string
        {
            //normalize remaining backslashes
            if ($value != preg_replace('/(\w)\\\/', "$1", $value)) {
                $value .= preg_replace('/(\w)\\\/', "$1", $value);

      There are no issues that match your filters.

      Category
      Status