Showing 20,971 of 20,976 total issues

The method lib_ispercentage is not named in camelCase.
Open

    protected function lib_ispercentage($value)
    {
        return $this->toBool($value[0] == 'number' && $value[2] == '%');
    }

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

    protected function lib_floor($arg)
    {
        $value = $this->assertNumber($arg);

        return ['number', floor($value), $arg[2]];

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

    protected function lib_fadeout($args)
    {
        list($color, $delta) = $this->colorArgs($args);
        $color[4] = $this->clamp((isset($color[4]) ? $color[4] : 1) - $delta / 100);

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

    protected function lib_argb($color)
    {
        return $this->lib_rgbahex($color);
    }

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

    protected function lib_lightness($color)
    {
        $hsl = $this->toHSL($this->assertColor($color));

        return round($hsl[3]);

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

    protected function lib_ceil($arg)
    {
        $value = $this->assertNumber($arg);

        return ['number', ceil($value), $arg[2]];

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

    protected function lib_unit($arg)
    {
        if ($arg[0] == 'list') {
            list($number, $newUnit) = $arg[2];

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

    protected function lib_hue($color)
    {
        $hsl = $this->toHSL($this->assertColor($color));

        return round($hsl[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 lib_mix is not named in camelCase.
Open

    protected function lib_mix($args)
    {
        if ($args[0] != 'list' || count($args[2]) < 3) {
            $this->throwError('mix expects (color1, color2, weight)');
        }

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

    public function RGB_HEX($o)
    {
        return $o['R'] << 16 | $o['G'] << 8 | $o['B'];
    }

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

    public function CMY_RGB($o)
    {
        return [
            'R' => max(0, (1 - $o['C']) * 255),
            'G' => max(0, (1 - $o['M']) * 255),

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

    public function RGB_XYZ($o)
    {
        $M = $this->_RGB_XYZ;
        $z = [];

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

    private function Webkit_to_W3C_Gradient($value)
    {

        ///--- webkit supports out-of-order color-stops (others fail)...

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

    private function W3C_to_Webkit_Gradient($value)
    {
        $start = array_shift($value);
        switch ($start) {
            case 'top':

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

    public function RYB_HSV($o)
    {
        $n = floor($o['H']);
        $x = $n > 0 ? $o['H'] % $n : 0;
        $a = $this->RYB_H[$n % 360];

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

    public function HEX32_RGBA($o)
    {
        return [
            'R' => $o >> 16 & 0xFF,
            'G' => $o >> 9 & 0xFF,

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

    public function RGB_HSV($o)
    {
        $_R = $o['R'] / 255;
        $_G = $o['G'] / 255;
        $_B = $o['B'] / 255;

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

    private function Webkit_Gradient_Position($value)
    {
        switch ($value) {
            case 'top':
                return ['y' => -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 HEX32_rgbaa is not named in camelCase.
Open

    public function HEX32_rgbaa($o)
    {
        return 'rgba('.($o >> 16 & 0xFF).','.
        ($o >> 8 & 0xFF).','.($o & 0xFF).','.
        (($o >> 24) / 255).')';

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

    public function RGB_CMY($o)
    {
        return [
            'C' => 1 - ($o['R'] / 255),
            'M' => 1 - ($o['G'] / 255),

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