soderlind/read-offline

View on GitHub

Showing 1,262 of 1,262 total issues

Space found before comma in function call
Open

            , parent::$options['where']['placements']

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

            'bottom' => 1,

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

                 'top'    => 1,

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

            'docx'  => __( 'Download DocX', 'read-offline' ),

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

            'mobi'  => __( 'Download mobi', 'read-offline' ),

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

                     'pdf'   => __( 'Download PDF',  'read-offline' ),

Class file names should be based on the class name with "class-" prepended. Expected class-read-offline-loader.php, but found read-offline.php.
Open

<?php
Severity: Minor
Found in read-offline.php by phpcodesniffer

Concat operator must be surrounded by a single space
Open

            wp_enqueue_script( 'read-offline-ga', READOFFLINE_URL.'/js/read-offline-ga.js',array( 'jquery' ), READOFFLINE_VERSION );

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

            'print' => __( 'Print',         'read-offline' ),

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

            'mobi'  => __( 'Download mobi', 'read-offline' ),

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

            'print' => __( 'Print',         'read-offline' ),

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

        wp_enqueue_style( 'read-offline-css',   READOFFLINE_URL . '/css/read-offline.css',array(), READOFFLINE_VERSION );

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

        wp_enqueue_script( 'read-offline',      READOFFLINE_URL . '/js/read-offline-wp.js',array( 'jquery' ), READOFFLINE_VERSION );

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

                     'pdf'   => __( 'Download PDF',  'read-offline' ),

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

            'epub'  => __( 'Download ePub', 'read-offline' ),

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

                'title'            => __( 'General Options', 'read-offline' ),        // page title

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

                'title'            => __( 'Download link, icons only?', 'read-offline' ),

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

                'page_slug'        => 'read_offline_options',    // the page slug that the section belongs to

Expected 1 space after open parenthesis; 0 found
Open

                , ('print' == $type) ? '' : $type

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

                'description'      => __( 'Also available via the [pdf], [epub], [mobi] and [print] shortcodes.' , 'read-offline' ),
Severity
Category
Status
Source
Language