soderlind/plugin-customizer

View on GitHub
plugin-customizer-demo.php

Summary

Maintainability
A
0 mins
Test Coverage

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

                'capability'    => 'manage_options',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'priority'        => 10,
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'transport'     => 'postMessage',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'default'        => 'This was to be an eventful day for the travelers.  They had hardly been walking an hour when they saw before them a great ditch that crossed the road and divided the forest as far as they could see on either side.  It was a very wide ditch, and when they crept up to the edge and looked into it they could see it was also very deep, and there were many big, jagged rocks at the bottom.  The sides were so steep that none of them could climb down, and for a moment it seemed that their journey must end. "What shall we do?" asked Dorothy despairingly. "I haven\'t the faintest idea," said the Tin Woodman, and the Lion shook his shaggy mane and looked thoughtful.', //esc_html( '<p> Nulla laoreet erat vitae aliquet tristique. Quisque quis suscipit enim, a elementum eros. Vestibulum quis lacus ligula. Mauris sit amet nibh tincidunt, gravida tortor ac, maximus nisi. Nunc turpis mauris, blandit vitae nibh non, blandit pharetra purus. Sed sed convallis diam. In ante nisi, pellentesque in laoreet at, fringilla ac neque. </p> <p> Cras consequat eros lectus, ac dignissim justo cursus ac. In mi tortor, ornare eu quam a, ultrices tincidunt magna. Fusce non purus quis ex convallis vehicula. Aenean purus diam, vulputate vel pellentesque ultrices, tincidunt ac lectus. Nullam est purus, lobortis ac aliquam eget, egestas a diam. Praesent eget sapien vitae orci faucibus tempus. Ut sit amet lorem elit. Curabitur et vestibulum nibh. </p> <p> Mauris vestibulum eget nisl sit amet gravida. Nullam in orci ut sem maximus dapibus blandit quis dolor. Sed pretium efficitur elit, eget vulputate sapien bibendum non. Proin congue posuere sagittis. Ut fermentum mauris ut gravida faucibus. Aenean a malesuada magna. Vestibulum nec viverra metus. Nunc aliquam eros orci, ut malesuada felis malesuada vitae. Phasellus vehicula non ex at scelerisque. </p>' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Found precision alignment of 1 spaces.
Open

          */
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

     * @param   [type]    $wp_admin_bar [description]
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Space found before comma in function call
Open

        wp_enqueue_script( $handle, $src, $deps, $version , $in_footer );
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'description'    => __( 'Customize Your Logo Section', 'plugin-customizer' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'title'            => __( 'Content', 'plugin-customizer' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'description'    => __( 'Customize newsletter content', 'plugin-customizer' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'type'            => 'option',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'type'            => 'option',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'title'            => __( 'Title', 'plugin-customizer' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'priority'        => 5,
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'type'            => 'option',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'type'            => 'option',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'title'            => __( 'Title', 'plugin-customizer' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'capability'    => 'manage_options',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'label' => __( 'Content', 'plugin-customizer' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Found precision alignment of 1 spaces.
Open

          * Add admin menu, You'll most likely only need one of them.
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

            'newsletter_content_section'  => parent::template_url( 'content.php' ), // translates to templates/content.php
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

        $handle = 'plugin-customizer-demo-init';
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

        $src = plugins_url( 'js/plugin-customizer-init.js' ,  __FILE__ );
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'capability'    => 'manage_options',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'type' => 'textarea',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'priority'        => 5,
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'capability'    => 'manage_options',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'capability'    => 'manage_options',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'title'            => __( 'Content', 'plugin-customizer' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'transport'     => 'postMessage',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'default'        => __( 'The Wizard of Oz', 'plugin-customizer' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'default'        => 'This was to be an eventful day for the travelers.  They had hardly been walking an hour when they saw before them a great ditch that crossed the road and divided the forest as far as they could see on either side.  It was a very wide ditch, and when they crept up to the edge and looked into it they could see it was also very deep, and there were many big, jagged rocks at the bottom.  The sides were so steep that none of them could climb down, and for a moment it seemed that their journey must end. "What shall we do?" asked Dorothy despairingly. "I haven\'t the faintest idea," said the Tin Woodman, and the Lion shook his shaggy mane and looked thoughtful.', //esc_html( '<p> Nulla laoreet erat vitae aliquet tristique. Quisque quis suscipit enim, a elementum eros. Vestibulum quis lacus ligula. Mauris sit amet nibh tincidunt, gravida tortor ac, maximus nisi. Nunc turpis mauris, blandit vitae nibh non, blandit pharetra purus. Sed sed convallis diam. In ante nisi, pellentesque in laoreet at, fringilla ac neque. </p> <p> Cras consequat eros lectus, ac dignissim justo cursus ac. In mi tortor, ornare eu quam a, ultrices tincidunt magna. Fusce non purus quis ex convallis vehicula. Aenean purus diam, vulputate vel pellentesque ultrices, tincidunt ac lectus. Nullam est purus, lobortis ac aliquam eget, egestas a diam. Praesent eget sapien vitae orci faucibus tempus. Ut sit amet lorem elit. Curabitur et vestibulum nibh. </p> <p> Mauris vestibulum eget nisl sit amet gravida. Nullam in orci ut sem maximus dapibus blandit quis dolor. Sed pretium efficitur elit, eget vulputate sapien bibendum non. Proin congue posuere sagittis. Ut fermentum mauris ut gravida faucibus. Aenean a malesuada magna. Vestibulum nec viverra metus. Nunc aliquam eros orci, ut malesuada felis malesuada vitae. Phasellus vehicula non ex at scelerisque. </p>' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'priority'        => 10,
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

        $url = $pagenow;
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

             \PluginCustomizer\Plugin_Customizer::get_customizer_url( 'admin.php?page=plugin-customizer', 'newsletter_title_section' ), __( 'Customize', 'plugin-customizer' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

            'newsletter_title_section' => parent::template_url( 'title.php' ), // translates to templates/title.php
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'description'    => __( 'Customize newsletter content', 'plugin-customizer' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

        $version = PLUGIN_CUSTOMIZER_DEMO_VERSION;
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'description'    => __( 'Customize Your Logo Section', 'plugin-customizer' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'capability'    => 'manage_options',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'capability'    => 'manage_options',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

define( 'PLUGIN_CUSTOMIZER_DEMO_PATH',   plugin_dir_path( __FILE__ ) );
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Space found before comma in function call
Open

        add_action( 'admin_init', array( $this, 'root_menu_redirect_to_customizer' ) , 1 );
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

            'href' => \PluginCustomizer\Plugin_Customizer::get_customizer_url( $return_url ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

        $src = plugins_url( 'js/plugin-customizer-init.js' ,  __FILE__ );
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Space found before comma in function call
Open

        $src = plugins_url( 'js/plugin-customizer-init.js' ,  __FILE__ );
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

        $deps = array( 'customize-preview', 'jquery' );
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

Spaces must be used for mid-line alignment; tabs are not allowed
Open

                'capability'    => 'manage_options',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'default'        => __( 'The Wizard of Oz', 'plugin-customizer' ),
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

                'section' => 'newsletter_content_section',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

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

            'id' => 'plugin-customizer-link',
Severity: Minor
Found in plugin-customizer-demo.php by phpcodesniffer

There are no issues that match your filters.

Category
Status