mambax7/extgallery

View on GitHub
assets/js/ml-slider/inc/slider/metaslider.responsive.class.php

Summary

Maintainability
A
0 mins
Test Coverage

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class MetaResponsiveSlider extends MetaSlider

The property $js_path is not named in camelCase.
Open

class MetaResponsiveSlider extends MetaSlider
{
    protected $js_function = 'responsiveSlides';
    protected $js_path     = 'sliders/responsiveslides/responsiveslides.min.js';
    protected $css_path    = 'sliders/responsiveslides/responsiveslides.css';

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $js_function is not named in camelCase.
Open

class MetaResponsiveSlider extends MetaSlider
{
    protected $js_function = 'responsiveSlides';
    protected $js_path     = 'sliders/responsiveslides/responsiveslides.min.js';
    protected $css_path    = 'sliders/responsiveslides/responsiveslides.css';

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $css_path is not named in camelCase.
Open

class MetaResponsiveSlider extends MetaSlider
{
    protected $js_function = 'responsiveSlides';
    protected $js_path     = 'sliders/responsiveslides/responsiveslides.min.js';
    protected $css_path    = 'sliders/responsiveslides/responsiveslides.css';

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

Method name "MetaResponsiveSlider::get_html" is not in camel caps format
Open

    protected function get_html()

Method name "MetaResponsiveSlider::get_param" is not in camel caps format
Open

    protected function get_param($param)

The variable $return_value is not named in camelCase.
Open

    protected function get_html()
    {
        $return_value = "<ul id='" . $this->get_identifier() . "' class='rslides'>";

        $first = true;

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $return_value is not named in camelCase.
Open

    protected function get_html()
    {
        $return_value = "<ul id='" . $this->get_identifier() . "' class='rslides'>";

        $first = true;

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $return_value is not named in camelCase.
Open

    protected function get_html()
    {
        $return_value = "<ul id='" . $this->get_identifier() . "' class='rslides'>";

        $first = true;

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $return_value is not named in camelCase.
Open

    protected function get_html()
    {
        $return_value = "<ul id='" . $this->get_identifier() . "' class='rslides'>";

        $first = true;

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The method get_param is not named in camelCase.
Open

    protected function get_param($param)
    {
        $params = [
            'prevText'       => 'prevText',
            'nextText'       => 'nextText',

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()
    {
        $return_value = "<ul id='" . $this->get_identifier() . "' class='rslides'>";

        $first = true;

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

There are no issues that match your filters.

Category
Status