src/Library/Input.php
Input
has 36 functions (exceeds 20 allowed). Consider refactoring. Wontfix
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])$/',
Method remove_unsafe_attributes
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
private function remove_unsafe_attributes($content)
{
$dom = new \DOMDocument('1.0', 'utf-8');
$dom->loadHTML($content);