soderlind/read-offline

View on GitHub

Showing 1,262 of 1,262 total issues

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( __( '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

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

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

                    return add_action( 'admin_notices', function() use ( $directory ) {
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Expected 1 space after comma in function call; 10 found
Open

        add_action( 'parse_request',          array( $this, 'parse_request' ) );

Equals sign not aligned correctly; expected 1 space but found 2 spaces
Open

                    $code  = $_REQUEST['read-offline-code'];

Space found before comma in function call
Open

            header( 'Content-Type: ' . $mime_type , false );
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

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

            $post = get_page( $post_id );

Found precision alignment of 2 spaces.
Open

                      'theme_style'                => __( 'The site theme style', 'read-offline' ),

Array double arrow not aligned correctly; expected 3 space(s) between "'field_id'" and double arrow, but found 9.
Open

                'field_id'         => 'css',

Space after opening control structure is required
Open

        if( (bool) self::$options['what']['formats']['mobi'] ) {
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

Expected 1 space before ":"; 2 found
Open

                ( $refresh ) ? '&read-offline-code=' . $code  : ''
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

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

                'label'            => array(

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

            6,   // [] bmp
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

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

There must be no space before the colon in a CASE statement
Open

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

Found precision alignment of 1 spaces.
Open

             ),

No space before opening parenthesis is prohibited
Open

        if( (bool) self::$options['what']['formats']['mobi'] ) {
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

            $attachments = new WP_Query( array(
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
Severity
Category
Status
Source
Language