dadajuice/zephyrus

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

Summary

Maintainability
A
1 hr
Test Coverage
B
88%

Method convertFromUTF7 has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function convertFromUTF7(string $value): string
    {
        if (preg_match('/\+A\w+-?/m', $value)) {
            if (function_exists('mb_convert_encoding')) {
                $value .= "\n" . mb_convert_encoding($value, 'UTF-8', 'UTF-7');

    There are no issues that match your filters.

    Category
    Status