gavinggordon/htmlentities

View on GitHub

Showing 62 of 62 total issues

Line indented incorrectly; expected at least 16 spaces, found 15
Open

               {
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 13
Open

            if (strlen($input) >= 2)
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 10
Open

        if (is_string($input)) 
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 14
Open

            if (strlen($input) >= 2) 
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 18
Open

                foreach ($chars as $index => $char) 
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Expected 1 space after ELSE keyword; newline found
Open

                else
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Expected 1 space after closing brace; newline found
Open

                }
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Whitespace found at end of line
Open

            if (strlen($input) === 1) 
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Expected 1 space after ELSE keyword; newline found
Open

                else
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Whitespace found at end of line
Open

                if (in_array($input, $encodedChars)) 
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 22
Open

                    if (in_array($char, $decodedChars)) 
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 10
Open

        if (is_array($input)) 
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Expected 1 space after closing brace; newline found
Open

                }
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Line indented incorrectly; expected at least 20 spaces, found 19
Open

                   $encoded[$index] = $char;
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Whitespace found at end of line
Open

                if (in_array($input, $decodedChars)) 
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Whitespace found at end of line
Open

                foreach ($chars as $index => $char) 
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Expected 1 space after ELSE keyword; newline found
Open

                    else
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 10
Open

        if (is_string($input)) 
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Whitespace found at end of line
Open

        if (is_string($input)) 
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer

Line indented incorrectly; expected 16 spaces, found 15
Open

               }
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer
Severity
Category
Status
Source
Language