mambax7/extgallery

View on GitHub

Showing 9,653 of 9,653 total issues

The method _parse_size is not named in camelCase.
Open

    public function _parse_size($new_size, $old_size)
    {
        if ('%' == mb_substr($new_size, -1)) {
            $new_size = mb_substr($new_size, 0, -1);
            $new_size = $new_size / 100;
Severity: Minor
Found in class/pear/Image/Transform.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 _postProcess is not named in camelCase.
Open

    public function _postProcess($type, $quality)
    {
        array_unshift($this->command, $this->_prepare_cmd(IMAGE_TRANSFORM_NETPBM_PATH, mb_strtolower($this->type) . 'topnm', escapeshellarg($this->image)));
        $arg     = '';
        $type    = mb_strtolower($type);

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

    public function _resize($new_x, $new_y, $options = null)
    {
        if (!imagick_resize($this->imageHandle, $new_x, $new_y, IMAGICK_FILTER_UNKNOWN, 1, '!')) {
            return $this->raiseError('Couldn\'t resize image.', IMAGE_TRANSFORM_ERROR_FAILED);
        }

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

    public function Image_Transform_Driver_NetPBM()
    {
        $this->__construct();
    }

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

    public function _get_default_text_params()
    {
        return $this->default_text_params;
    }
Severity: Minor
Found in class/pear/Image/Transform.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 _resize is not named in camelCase.
Open

    public function _resize($new_x, $new_y, $options = null)
    {
        try {
            $scaleMethod = $this->_getOption('scaleMethod', $options, 'smooth');
            $blur        = ('pixel' == $scaleMethod) ? 0 : 1;

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

    public function _set_img_y($size)
    {
        $this->img_y = $size;
    }
Severity: Minor
Found in class/pear/Image/Transform.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 _resize is not named in camelCase.
Open

    public function _resize($new_x, $new_y, $options = null)
    {
        // there's no technical reason why resize can't be called multiple
        // times...it's just silly to do so
        $scaleMethod = $this->_getOption('scaleMethod', $options, 'smooth');

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

    public function _rotation_angle($angle)
    {
        $angle %= 360;

        return ($angle < 0) ? $angle + 360 : $angle;
Severity: Minor
Found in class/pear/Image/Transform.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_image_details is not named in camelCase.
Open

    public function _get_image_details($image)
    {
        $data = @getimagesize($image);
        //  1 = GIF,   2 = JPG,  3 = PNG,  4 = SWF,  5 = PSD,  6 = BMP,
        //  7 = TIFF (intel byte order),   8 = TIFF (motorola byte order),
Severity: Minor
Found in class/pear/Image/Transform.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 _getOption is not named in camelCase.
Open

    public function _getOption($name, $options = [], $default = null)
    {
        $opt = array_merge($this->_options, (array)$options);

        return $opt[$name] ?? $default;
Severity: Minor
Found in class/pear/Image/Transform.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 _set_img_x is not named in camelCase.
Open

    public function _set_img_x($size)
    {
        $this->img_x = $size;
    }
Severity: Minor
Found in class/pear/Image/Transform.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 _resize is not named in camelCase.
Open

    public function _resize()
    {
        return PEAR::raiseError('Resize method not supported by driver', IMAGE_TRANSFORM_ERROR_UNSUPPORTED);
    }
Severity: Minor
Found in class/pear/Image/Transform.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 _PEAR is not named in camelCase.
Open

    public function _PEAR()
    {
        if ($this->_debug) {
            printf("PEAR destructor called, class=%s\n", strtolower(get_class($this)));
        }
Severity: Minor
Found in class/pear/PEAR.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 _pushErrorHandling is not named in camelCase.
Open

    protected static function _pushErrorHandling($object, $mode, $options = null)
    {
        $stack = &$GLOBALS['_PEAR_error_handler_stack'];
        if (null !== $object) {
            $def_mode    = &$object->_default_error_mode;
Severity: Minor
Found in class/pear/PEAR.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 _convert_image_type is not named in camelCase.
Open

    public function _convert_image_type($type)
    {
        switch (mb_strtolower($type)) {
            case 'gif':
                return IMAGETYPE_GIF;
Severity: Minor
Found in class/pear/Image/Transform.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 PEAR is not named in camelCase.
Open

    public function PEAR($error_class = null)
    {
        self::__construct($error_class);
    }
Severity: Minor
Found in class/pear/PEAR.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 _checkDelExpect is not named in camelCase.
Open

    public function _checkDelExpect($error_code)
    {
        $deleted = false;
        foreach ($this->_expected_errors as $key => $error_array) {
            if (in_array($error_code, $error_array)) {
Severity: Minor
Found in class/pear/PEAR.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 _raiseError is not named in camelCase.
Open

    protected static function _raiseError(
        $object,
        $message = null,
        $code = null,
        $mode = null,
Severity: Minor
Found in class/pear/PEAR.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 Image_Transform_Imlib is not named in camelCase.
Open

    public function Image_Transform_Imlib()
    {
        $this->__construct();
    }

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