soderlind/read-offline

View on GitHub

Showing 1,262 of 1,262 total issues

Expected 1 space before ":"; 2 found
Open

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

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

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

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

        switch ( $type ) {
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 1 :
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

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

                'section_id'       => 'print',

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

                'description'      => __( 'Enter header text here. The following aliases can be used:', 'read-offline' ) . ' {DATE}, {TODAY}, {TITLE}, {AUTHOR}, {DOCURL}, {SITENAME} ' . __( 'and','read-offline' ) . ' {SITEURL}',

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 2 spaces.
Open

                  // 'readonly'            => false

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

                 'page' => 1,
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

        $the_excerpt = $the_post->post_content; //Gets post_content to be used as a basis for the excerpt
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

        $words = explode( ' ', $the_excerpt, $excerpt_length + 1 );
Severity: Minor
Found in inc/class-read-offline.php by phpcodesniffer

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

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

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

                'section_id'       => 'print',

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

                'type'             => 'revealer',

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

                    'style'                 => 'width:100%;max-width:600px;height:100%;max-height:400px;',

Array double arrow not aligned correctly; expected 5 space(s) between "'hidden'" and double arrow, but found 11.
Open

                'hidden'           => true,

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

                $levels    = array_map(

Found precision alignment of 1 spaces.
Open

                     '0' == parent::$options['pdffooter']['default_footer'][1] &&

Space found before comma in function call
Open

        if ( strpos( $href, '//' ) !== 0 && in_array( substr( $href, 0, 1 ) , array( '/', '#', '?' ), true ) ) {
Severity
Category
Status
Source
Language