Showing 20,971 of 20,976 total issues
The method lib_fade is not named in camelCase. Open
protected function lib_fade($args)
{
list($color, $alpha) = $this->colorArgs($args);
$color[4] = $this->clamp($alpha / 100.0);
- Read upRead up
- Exclude checks
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__sprintf is not named in camelCase. Open
protected function lib__sprintf($args)
{
if ($args[0] != 'list') {
return $args;
}
- Read upRead up
- Exclude checks
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_round is not named in camelCase. Open
protected function lib_round($arg)
{
$value = $this->assertNumber($arg);
return ['number', round($value), $arg[2]];
- Read upRead up
- Exclude checks
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_red is not named in camelCase. Open
public function lib_red($color)
{
$color = $this->coerceColor($color);
if (is_null($color)) {
$this->throwError('color expected for red()');
- Read upRead up
- Exclude checks
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_e is not named in camelCase. Open
protected function lib_e($arg)
{
switch ($arg[0]) {
case 'list':
$items = $arg[2];
- Read upRead up
- Exclude checks
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_rgbahex is not named in camelCase. Open
protected function lib_rgbahex($color)
{
$color = $this->coerceColor($color);
if (is_null($color)) {
$this->throwError('color expected for rgbahex');
- Read upRead up
- Exclude checks
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_lighten is not named in camelCase. Open
protected function lib_lighten($args)
{
list($color, $delta) = $this->colorArgs($args);
$hsl = $this->toHSL($color);
- Read upRead up
- Exclude checks
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_saturation is not named in camelCase. Open
protected function lib_saturation($color)
{
$hsl = $this->toHSL($this->assertColor($color));
return round($hsl[2]);
- Read upRead up
- Exclude checks
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_green is not named in camelCase. Open
public function lib_green($color)
{
$color = $this->coerceColor($color);
if (is_null($color)) {
$this->throwError('color expected for green()');
- Read upRead up
- Exclude checks
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 op_number_number is not named in camelCase. Open
protected function op_number_number($op, $left, $right)
{
$unit = empty($left[2]) ? $right[2] : $left[2];
$value = 0;
- Read upRead up
- Exclude checks
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_desaturate is not named in camelCase. Open
protected function lib_desaturate($args)
{
list($color, $delta) = $this->colorArgs($args);
$hsl = $this->toHSL($color);
- Read upRead up
- Exclude checks
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_spin is not named in camelCase. Open
protected function lib_spin($args)
{
list($color, $delta) = $this->colorArgs($args);
$hsl = $this->toHSL($color);
- Read upRead up
- Exclude checks
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_contrast is not named in camelCase. Open
protected function lib_contrast($args)
{
if ($args[0] != 'list' || count($args[2]) < 3) {
return [['color', 0, 0, 0], 0];
}
- Read upRead up
- Exclude checks
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 toRGB_helper is not named in camelCase. Open
protected function toRGB_helper($comp, $temp1, $temp2)
{
if ($comp < 0) {
$comp += 1.0;
} elseif ($comp > 1) {
- Read upRead up
- Exclude checks
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 op_color_color is not named in camelCase. Open
protected function op_color_color($op, $left, $right)
{
$out = ['color'];
$max = count($left) > count($right) ? count($left) : count($right);
foreach (range(1, $max - 1) as $i) {
- Read upRead up
- Exclude checks
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_isem is not named in camelCase. Open
protected function lib_isem($value)
{
return $this->toBool($value[0] == 'number' && $value[2] == 'em');
}
- Read upRead up
- Exclude checks
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_alpha is not named in camelCase. Open
protected function lib_alpha($value)
{
if (!is_null($color = $this->coerceColor($value))) {
return isset($color[4]) ? $color[4] : 1;
}
- Read upRead up
- Exclude checks
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_percentage is not named in camelCase. Open
protected function lib_percentage($arg)
{
$num = $this->assertNumber($arg);
return ['number', $num * 100, '%'];
- Read upRead up
- Exclude checks
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_isrem is not named in camelCase. Open
protected function lib_isrem($value)
{
return $this->toBool($value[0] == 'number' && $value[2] == 'rem');
}
- Read upRead up
- Exclude checks
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 op_number_color is not named in camelCase. Open
protected function op_number_color($op, $lft, $rgt)
{
if ($op == '+' || $op == '*') {
return $this->op_color_number($op, $rgt, $lft);
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}