silviodelgado/flywork

View on GitHub
src/Library/Input.php

Summary

Maintainability
A
0 mins
Test Coverage

Input has 36 functions (exceeds 20 allowed). Consider refactoring.
Wontfix

final class Input
{
    private $date_patterns = [
        'Y-m'           => '/^([0-9]{4})-(0[1-9]|1[0-2])$/',
        'Y-m-d'         => '/^([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/',
Severity: Minor
Found in src/Library/Input.php - About 4 hrs to fix

    Method remove_unsafe_attributes has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

        private function remove_unsafe_attributes($content)
        {
            $dom = new \DOMDocument('1.0', 'utf-8');
            $dom->loadHTML($content);
    
    
    Severity: Minor
    Found in src/Library/Input.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status