Showing 26,336 of 26,336 total issues
The property $week_middle_names is not named in camelCase. Open
class apcal_locale
{
public $hour_names_24;
public $hour_names_12;
public $holidays;
- Read upRead up
- Exclude checks
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 $month_long_names is not named in camelCase. Open
class apcal_locale
{
public $hour_names_24;
public $hour_names_12;
public $holidays;
- Read upRead up
- Exclude checks
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 $byday2langday_w is not named in camelCase. Open
class apcal_locale
{
public $hour_names_24;
public $hour_names_12;
public $holidays;
- Read upRead up
- Exclude checks
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 class phpthumb_bmp is not named in CamelCase. Open
class phpthumb_bmp
{
// removed for XOOPS
//function phpthumb_bmp() {
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
The property $config_cache_source_directory is not named in camelCase. Open
class phpthumb
{
// public:
// START PARAMETERS (for object mode and phpThumb.php)
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
Avoid variables with short names like $fp. Configured minimum length is 3. Open
if ($fp = @fopen($filename, 'rb')) {
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Avoid variables with short names like $r. Configured minimum length is 3. Open
list($r, $g, $b) = $this->IntColor2RGB($color);
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Avoid variables with short names like $g. Configured minimum length is 3. Open
list($r, $g, $b) = $this->IntColor2RGB($color);
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
The parameter $BMPinfo is not named in camelCase. Open
public function PlotBMP(&$BMPinfo)
{
$starttime = time();
if (!isset($BMPinfo['bmp']['data']) || !is_array($BMPinfo['bmp']['data'])) {
echo 'ERROR: no pixel data<br>';
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The property $config_cache_prefix is not named in camelCase. Open
class phpthumb
{
// public:
// START PARAMETERS (for object mode and phpThumb.php)
- Read upRead up
- Exclude checks
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 $config_mysql_hostname is not named in camelCase. Open
class phpthumb
{
// public:
// START PARAMETERS (for object mode and phpThumb.php)
- Read upRead up
- Exclude checks
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 $config_cache_disable_warning is not named in camelCase. Open
class phpthumb
{
// public:
// START PARAMETERS (for object mode and phpThumb.php)
- Read upRead up
- Exclude checks
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 parameter $BMPdata is not named in camelCase. Open
public function PlotPixelsGD(&$BMPdata, $truecolor = true)
{
$imagewidth = $BMPdata['header']['raw']['width'];
$imageheight = $BMPdata['header']['raw']['height'];
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The property $config_error_image_height is not named in camelCase. Open
class phpthumb
{
// public:
// START PARAMETERS (for object mode and phpThumb.php)
- Read upRead up
- Exclude checks
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 $config_error_fontsize is not named in camelCase. Open
class phpthumb
{
// public:
// START PARAMETERS (for object mode and phpThumb.php)
- Read upRead up
- Exclude checks
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 class phpthumb is not named in CamelCase. Open
class phpthumb
{
// public:
// START PARAMETERS (for object mode and phpThumb.php)
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
The property $config_cache_source_enabled is not named in camelCase. Open
class phpthumb
{
// public:
// START PARAMETERS (for object mode and phpThumb.php)
- Read upRead up
- Exclude checks
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 $config_cache_directory is not named in camelCase. Open
class phpthumb
{
// public:
// START PARAMETERS (for object mode and phpThumb.php)
- Read upRead up
- Exclude checks
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 $config_nooffsitelink_erase_image is not named in camelCase. Open
class phpthumb
{
// public:
// START PARAMETERS (for object mode and phpThumb.php)
- Read upRead up
- Exclude checks
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 $byday2langday_m is not named in camelCase. Open
class apcal_locale
{
public $hour_names_24;
public $hour_names_12;
public $holidays;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}