gavinggordon/htmlentities

View on GitHub

Showing 62 of 62 total issues

Closing brace indented incorrectly; expected 16 spaces, found 15
Open

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

Whitespace found at end of line
Open

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

Whitespace found at end of line
Open

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

Expected 1 space after closing parenthesis; found 14
Open

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

Expected 1 space after closing parenthesis; found 18
Open

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

Whitespace found at end of line
Open

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

Expected 1 space after closing parenthesis; found 18
Open

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

Expected 1 space after closing parenthesis; found 18
Open

                if (in_array($input, $encodedChars)) 
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

            foreach ($input as $index => $char) 
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

Whitespace found at end of line
Open

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

Whitespace found at end of line
Open

        if (is_array($input)) 
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 closing parenthesis; found 18
Open

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

Expected 1 space after closing parenthesis; found 14
Open

            if (strlen($input) === 1) 
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 closing parenthesis; found 22
Open

                    if (in_array($char, $encodedChars)) 
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($char, $decodedChars)) 
Severity: Minor
Found in src/HtmlEntities.php by phpcodesniffer
Severity
Category
Status
Source
Language