soderlind/read-offline

View on GitHub

Showing 1,262 of 1,262 total issues

Multi-line array item not aligned correctly; expected 20 spaces, but found 18
Open

                  // 'theme'               => 'chrome', //available themes https://github.com/ajaxorg/ace/tree/master/lib/ace/theme

Found precision alignment of 1 spaces.
Open

                     '0' == parent::$options['pdffooter']['default_footer'][2] ) ) {

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

        if ( ! in_array( $type, $allowed_types ) ) {
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

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

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

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

        $type = exif_imagetype( $filepath ); // [] if you don't have exif you could use getImageSize()
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

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

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

Terminating statement must be indented to the same level as the CASE body
Open

            break;
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

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

            $the_excerpt = implode( ' ', $words );
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

Array double arrow not aligned correctly; expected 1 space(s) between "'style'" and double arrow, but found 20.
Open

                        'style'                    => 'width: 200px;',

Found precision alignment of 1 spaces.
Open

             ),

Array closer not aligned correctly; expected 12 space(s) but found 13
Open

             ),

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

                  'gutter'                 => true,

Simple placeholders should not be quoted in the query string in $wpdb->prepare(). Found: '%s'.
Open

            $attachment_id = $wpdb->get_var( $wpdb->prepare( "SELECT wposts.ID FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = '_wp_attached_file' AND wpostmeta.meta_value = '%s' AND wposts.post_type = 'attachment'", $attachment_url ) );

No space before opening parenthesis is prohibited
Open

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

Found precision alignment of 1 spaces.
Open

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

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

        $type = exif_imagetype( $filepath ); // [] if you don't have exif you could use getImageSize()
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

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

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

Terminating statement must be indented to the same level as the CASE body
Open

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