soderlind/read-offline

View on GitHub

Showing 1,262 of 1,262 total issues

Functions must not contain multiple empty lines in a row; found 2 empty lines
Open


Assignments must be the first block of code on a line
Open

        for ( $i = 0, $len = sizeof( $entries ); $i < $len; $i++ ) {

Array item not aligned correctly; expected 16 spaces but found 17
Open

                 'post' => 1,
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Tabs must be used to indent lines; spaces are not allowed
Open

            array_push( $words, '…' );
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
Open

                self::$options['epub']['toc'] = 0;
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Tabs must be used to indent lines; spaces are not allowed
Open

                            $msg[] = '<div class="error"><p>';
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Tabs must be used to indent lines; spaces are not allowed
Open

                            $msg[] = '<div class="error"><p>';
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

A gettext call containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
Open

                            $msg[] = sprintf( __( 'Unable to remove cache directory "<strong>%s</strong>". Is it and its directories writable by the server?','read-offline' ), $directory );
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
Open

            $to_filename = sprintf( '%s.%s',$post->post_name,$file_extention );
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Tabs must be used to indent lines; spaces are not allowed
Open

                        echo implode( PHP_EOL, $msg );
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Concat operator must be surrounded by a single space
Open

            header( 'Content-disposition: attachment; filename="'. basename( $attached_file ) .'"' );
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Expected 1 space after open parenthesis; 0 found
Open

        $version = (isset( $options['version'] )) ? $options['version'] : '0';
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Tabs must be used to indent lines; spaces are not allowed
Open

                            $msg[] = '</p></div>';
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Tabs must be used to indent lines; spaces are not allowed
Open

                            echo implode( PHP_EOL, $msg );
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
Open

                    $mime_type = parent::$mime_types[ $docformat ];

Array item not aligned correctly; expected 20 spaces but found 22
Open

                      '#fieldrow-print_css' => __( 'Custom CSS (added below)', 'read-offline' ),

Array item not aligned correctly; expected 20 spaces but found 18
Open

                  // 'language'            => 'css', // available languages https://github.com/ajaxorg/ace/tree/master/lib/ace/mode

Tabs must be used to indent lines; spaces are not allowed
Open

                        $msg[] = sprintf( __( 'wp_upload_bits failed,  error: "<strong>%s</strong>','read-offline' ), $error );
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Tabs must be used to indent lines; spaces are not allowed
Open

                $im = imageCreateFromGif( $filepath );
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Tabs must be used to indent lines; spaces are not allowed
Open

            break;
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer
Severity
Category
Status
Source
Language