mambax7/extgallery

View on GitHub

Showing 9,653 of 9,653 total issues

The method admin_footer is not named in camelCase.
Open

    public function admin_footer()
    {
        global $pagenow;

        // Only run in post/page creation and edit screens
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 enable_easing is not named in camelCase.
Open

    public function enable_easing($options, $slider_id)
    {
        if (isset($options['easing'])) {
            $options['useCSS'] = 'false';
        }

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 load_plugin_textdomain is not named in camelCase.
Open

    public function load_plugin_textdomain()
    {
        load_plugin_textdomain('metaslider', false, \dirname(plugin_basename(__FILE__)) . '/languages/');
    }
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 custom_media_upload_tab_name is not named in camelCase.
Open

    public function custom_media_upload_tab_name($tabs)
    {
        $metaslider_tabs = ['post_feed', 'layer', 'youtube', 'vimeo'];

        // restrict our tab changes to the meta slider plugin page
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_post_type is not named in camelCase.
Open

    public function register_post_type()
    {
        register_post_type('ml-slider', [
            'query_var' => false,
            'rewrite'   => false,
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 SetAudioPath is not named in camelCase.
Open

    public function SetAudioPath($sAudioPath)
    {
        $this->sAudioPath = $sAudioPath;
    }
Severity: Minor
Found in class/AudioPhpCaptcha.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_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

The method register_slide_types is not named in camelCase.
Open

    private function register_slide_types()
    {
        $image = new MetaImageSlide();
    }
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 _toObject is not named in camelCase.
Open

    public function _toObject($data)
    {
        if (\is_array($data)) {
            $ret = [];
            foreach ($data as $v) {
Severity: Minor
Found in class/PersistableObjectHandler.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 _makeWatermark is not named in camelCase.
Open

    public function _makeWatermark($imageTransform)
    {
        if (!\function_exists('imagettfbbox')) {
            return;
        }
Severity: Minor
Found in class/PhotoHandler.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 _mediumPhotoTreatment is not named in camelCase.
Open

    public function _mediumPhotoTreatment($photoName, $filePath = null, $mediumFilePath = null)
    {
        /** @var Extgallery\Helper $helper */
        $helper = Extgallery\Helper::getInstance();

Severity: Minor
Found in class/PhotoHandler.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 is not named in camelCase.
Open

    public function Create()
    {
        $sText = $this->Mask($this->sCode);
        $sFile = \md5($this->sCode . \time());

Severity: Minor
Found in class/AudioPhpCaptcha.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 DrawCharacters is not named in camelCase.
Open

    public function DrawCharacters()
    {
        $iShadowColour = '';
        // loop through and write out selected number of characters
        for ($i = 0, $iMax = mb_strlen($this->sCode); $i < $iMax; ++$i) {
Severity: Minor
Found in class/PhpCaptcha.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 _getImageDimension is not named in camelCase.
Open

    public function _getImageDimension($photoName)
    {
        /** @var Extgallery\Helper $helper */
        $helper = Extgallery\Helper::getInstance();

Severity: Minor
Found in class/PhotoHandler.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 SetHeight is not named in camelCase.
Open

    public function SetHeight($iHeight)
    {
        $this->iHeight = $iHeight;
        if ($this->iHeight > 200) {
            $this->iHeight = 200;
Severity: Minor
Found in class/PhpCaptcha.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 SetNumLines is not named in camelCase.
Open

    public function SetNumLines($iNumLines)
    {
        $this->iNumLines = $iNumLines;
    }
Severity: Minor
Found in class/PhpCaptcha.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 CaseInsensitive is not named in camelCase.
Open

    public function CaseInsensitive($bCaseInsensitive)
    {
        $this->bCaseInsensitive = $bCaseInsensitive;
    }
Severity: Minor
Found in class/PhpCaptcha.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 UseColour is not named in camelCase.
Open

    public function UseColour($bUseColour)
    {
        $this->bUseColour = $bUseColour;
    }
Severity: Minor
Found in class/PhpCaptcha.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 is not named in camelCase.
Open

    public function Create($sFilename = '')
    {
        // check for required gd functions
        if (!\function_exists('imagecreate') || !\function_exists("image$this->sFileType")
            || ('' != $this->vBackgroundImages && !\function_exists('imagecreatetruecolor'))) {
Severity: Minor
Found in class/PhpCaptcha.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 SetWidth is not named in camelCase.
Open

    public function SetWidth($iWidth)
    {
        $this->iWidth = $iWidth;
        if ($this->iWidth > 500) {
            $this->iWidth = 500;
Severity: Minor
Found in class/PhpCaptcha.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

Severity
Category
Status
Source
Language