felixarntz/wp-psr-cache

View on GitHub

Showing 28 of 28 total issues

Expected 0 spaces before closing bracket; 1 found
Open

        $out[] = '<strong>Non-Persistent Cache Client:</strong> <code>' . get_class( $this->selector->selectNonPersistentCache( '' )->getClient() ) . '</code>';
Severity: Minor
Found in src/ObjectCache.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $out[] = '<strong>Persistent Cache Client:</strong> <code>' . get_class( $this->selector->selectPersistentCache( '' )->getClient() ) . '</code><br>';
Severity: Minor
Found in src/ObjectCache.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $out[] = '<strong>Persistent Cache Client:</strong> <code>' . get_class( $this->selector->selectPersistentCache( '' )->getClient() ) . '</code><br>';
Severity: Minor
Found in src/ObjectCache.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        echo implode( PHP_EOL, $out );
Severity: Minor
Found in src/ObjectCache.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        echo implode( PHP_EOL, $out );
Severity: Minor
Found in src/ObjectCache.php by phpcodesniffer

There must be a comment when fall-through is intentional in a non-empty case body
Open

            case 'cache_hits':
Severity: Minor
Found in src/ObjectCache.php by phpcodesniffer

Expected 1 space after SWITCH keyword; 0 found
Open

        switch($name) {
Severity: Minor
Found in src/ObjectCache.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $out[] = '<strong>Persistent Cache Client:</strong> <code>' . get_class( $this->selector->selectPersistentCache( '' )->getClient() ) . '</code><br>';
Severity: Minor
Found in src/ObjectCache.php by phpcodesniffer
Severity
Category
Status
Source
Language