mambax7/extgallery

View on GitHub

Showing 9,653 of 9,653 total issues

The method get_coin_slider_markup is not named in camelCase.
Open

    private function get_coin_slider_markup($slide)
    {
        $attributes = apply_filters('metaslider_coin_slider_image_attributes', [
            'src'    => $slide['src'],
            'height' => $slide['height'],

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_responsive_slides_markup is not named in camelCase.
Open

    private function get_responsive_slides_markup($slide)
    {
        $attributes = apply_filters('metaslider_responsive_slider_image_attributes', [
            'src'    => $slide['src'],
            'height' => $slide['height'],

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method update_title is not named in camelCase.
Open

    private function update_title($title)
    {
        $slide = [
            'ID'         => $this->id,
            'post_title' => $title,

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method build_anchor_tag is not named in camelCase.
Open

    public function build_anchor_tag($attributes, $content)
    {
        $html = '<a';

        foreach ($attributes as $att => $val) {

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method ajax_create_slide is not named in camelCase.
Open

    public function ajax_create_slide()
    {
        // security check
        if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'metaslider_addslide')) {
            echo "<tr><td colspan='2'>" . __('Security check failed. Refresh page and try again.', 'metaslider') . '</td></tr>';

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_flex_slider_markup is not named in camelCase.
Open

    private function get_flex_slider_markup($slide)
    {
        $attributes = apply_filters('metaslider_flex_slider_image_attributes', [
            'src'    => $slide['src'],
            'height' => $slide['height'],

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_inline_javascript is not named in camelCase.
Open

    private function get_inline_javascript()
    {
        $custom_js_before = $this->get_custom_javascript_before();
        $custom_js_after  = $this->get_custom_javascript_after();

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_javascript_parameters is not named in camelCase.
Open

    private function get_javascript_parameters()
    {
        $options = [];

        // construct an array of all parameters

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_param is not named in camelCase.
Open

    protected function get_param($param)
    {
        $params = [
            'effect'         => 'animation',
            'direction'      => 'direction',

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method register_admin_styles is not named in camelCase.
Open

    public function register_admin_styles()
    {
        wp_enqueue_style('metaslider-admin-styles', METASLIDER_ASSETS_URL . 'metaslider/admin.css', false, METASLIDER_VERSION);
        wp_enqueue_style('metaslider-colorbox-styles', METASLIDER_ASSETS_URL . 'colorbox/colorbox.css', false, METASLIDER_VERSION);
        wp_enqueue_style('metaslider-tipsy-styles', METASLIDER_ASSETS_URL . 'tipsy/tipsy.css', false, METASLIDER_VERSION);
Severity: Minor
Found in assets/js/ml-slider/ml-slider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method register_admin_menu is not named in camelCase.
Open

    public function register_admin_menu()
    {
        $title = apply_filters('metaslider_menu_title', 'Meta Slider');

        $page = add_menu_page($title, $title, 'edit_others_posts', 'metaslider', [
Severity: Minor
Found in assets/js/ml-slider/ml-slider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method delete_slider is not named in camelCase.
Open

    private function delete_slider($id)
    {
        // check nonce
        check_admin_referer('metaslider_delete_slider');

Severity: Minor
Found in assets/js/ml-slider/ml-slider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_settings is not named in camelCase.
Open

    private function get_settings()
    {
        $settings = get_post_meta($this->id, 'ml-slider_settings', true);

        if (is_array($settings) && isset($settings['type']) && in_array($settings['type'], ['flex', 'coin', 'nivo', 'responsive'])) {

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_container_id is not named in camelCase.
Open

    private function get_container_id()
    {
        $container_id = 'metaslider_container_' . $this->id;

        $id = apply_filters('metaslider_container_id', $container_id, $this->id, $this->settings);

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_inline_css is not named in camelCase.
Open

    private function get_inline_css()
    {
        $css = apply_filters('metaslider_css', '', $this->settings, $this->id);

        // use this to add the scoped attribute for HTML5 validation (if needed)

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_html is not named in camelCase.
Open

    protected function get_html()
    {
        $class = 'true' === $this->get_setting('noConflict') ? '' : ' class="flexslider"';

        $return_value = '<div id="' . $this->get_identifier() . '"' . $class . '>';

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method register_admin_scripts is not named in camelCase.
Open

    public function register_admin_scripts()
    {
        if (wp_script_is('wp-auth-check', 'queue')) {
            // meta slider checks for active AJAX requests in order to show the spinner
            // .. but the auth-check runs an AJAX request every 15 seconds
Severity: Minor
Found in assets/js/ml-slider/ml-slider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method create_slider is not named in camelCase.
Open

    private function create_slider($type, $id, $shortcode_settings)
    {
        switch ($type) {
            case ('coin'):

Severity: Minor
Found in assets/js/ml-slider/ml-slider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method build_settings_rows is not named in camelCase.
Open

    public function build_settings_rows($aFields)
    {
        // order the fields by priority
        uasort($aFields, [$this, 'compare_elems']);

Severity: Minor
Found in assets/js/ml-slider/ml-slider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method slide_exists_in_slideshow is not named in camelCase.
Open

    public function slide_exists_in_slideshow($slider_id, $slide_id)
    {
        return has_term((string)$slider_id, 'ml-slider', $slide_id);
    }

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

Severity
Category
Status
Source
Language