soderlind/read-offline

View on GitHub

Showing 1,262 of 1,262 total issues

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

            2,  // [] jpg
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

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

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

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

        $excerpt_length = 35; //Sets excerpt length by word count
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

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

        return $mime_types;
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

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

        if ( count( $words ) > $excerpt_length ) :
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Array item not aligned correctly; expected 12 spaces but found 9
Open

         'read-offline/([^/]+)/([^\.]+).(pdf|epub|mobi|docx|print)$' => sprintf( 'index.php?read_offline_id=%s&read_offline_name=%s&&read_offline_format=%s',$wp_rewrite->preg_index( 1 ),$wp_rewrite->preg_index( 2 ),$wp_rewrite->preg_index( 3 ) ),

Concat operator must be surrounded by a single space
Open

                header( 'Content-Length: '.filesize( $attached_file ) );
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

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

                            $msg[] = sprintf( __( 'Unable to create directory "<strong>%s</strong>". Is its parent directory writable by the server?','read-offline' ), $path );
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

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

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

        }
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

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

            $mime_types[ $file_extention ] = $mime_type;
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

Found precision alignment of 1 spaces.
Open

         'read-offline/([^/]+)/([^\.]+).(pdf|epub|mobi|docx|print)$' => sprintf( 'index.php?read_offline_id=%s&read_offline_name=%s&&read_offline_format=%s',$wp_rewrite->preg_index( 1 ),$wp_rewrite->preg_index( 2 ),$wp_rewrite->preg_index( 3 ) ),

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

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

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

            $filename = sprintf( '%s.%s',$wp_query->query_vars['read_offline_name'],$wp_query->query_vars['read_offline_format'] );

Found precision alignment of 1 spaces.
Open

             ),

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

                      '0'                          => __( 'None', 'read-offline' ),

Array double arrow not aligned correctly; expected 7 space(s) between "'help'" and double arrow, but found 13.
Open

                'help'             => __( 'Help text', 'read-offline' ),

Array double arrow not aligned correctly; expected 17 space(s) between "'order'" and double arrow, but found 12.
Open

                'order'            => null,
Severity
Category
Status
Source
Language