XoopsModules25x/apcal

View on GitHub

Showing 26,336 of 26,336 total issues

Avoid variables with short names like $l. Configured minimum length is 3.
Open

    global $l;
Severity: Minor
Found in getevents.php by phpmd

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 property $date_short_names is not named in camelCase.
Open

class apcal_locale
{
    public $hour_names_24;
    public $hour_names_12;
    public $holidays;
Severity: Minor
Found in getevents.php by phpmd

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

class apcal_locale
{
    public $hour_names_24;
    public $hour_names_12;
    public $holidays;
Severity: Minor
Found in getevents.php by phpmd

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 $gd. Configured minimum length is 3.
Open

            $gd = $this->PlotPixelsGD($ThisFileInfo['bmp'], $truecolor);
Severity: Minor
Found in thumbs/phpthumb.bmp.php by phpmd

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 property $config_cache_directory_depth is not named in camelCase.
Open

class phpthumb
{

    // public:
    // START PARAMETERS (for object mode and phpThumb.php)
Severity: Minor
Found in thumbs/phpthumb.class.php by phpmd

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

class phpthumb
{

    // public:
    // START PARAMETERS (for object mode and phpThumb.php)
Severity: Minor
Found in thumbs/phpthumb.class.php by phpmd

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

class apcal_locale
{
    public $hour_names_24;
    public $hour_names_12;
    public $holidays;
Severity: Minor
Found in getevents.php by phpmd

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

function phpThumbURL($ParameterString)
{
    global $PHPTHUMB_CONFIG;

    return str_replace(@$PHPTHUMB_CONFIG['document_root'], '', __DIR__) . DIRECTORY_SEPARATOR . 'phpThumb.php?' . $ParameterString . '&hash=' . md5($ParameterString
Severity: Minor
Found in thumbs/phpThumb.config.php by phpmd

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

Avoid variables with short names like $im. Configured minimum length is 3.
Open

        $im = $this->PlotPixelsGD($BMPinfo['bmp']);
Severity: Minor
Found in thumbs/phpthumb.bmp.php by phpmd

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 property $config_output_interlace is not named in camelCase.
Open

class phpthumb
{

    // public:
    // START PARAMETERS (for object mode and phpThumb.php)
Severity: Minor
Found in thumbs/phpthumb.class.php by phpmd

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

class phpthumb
{

    // public:
    // START PARAMETERS (for object mode and phpThumb.php)
Severity: Minor
Found in thumbs/phpthumb.class.php by phpmd

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 apcal_locale is not named in CamelCase.
Open

class apcal_locale
{
    public $hour_names_24;
    public $hour_names_12;
    public $holidays;
Severity: Minor
Found in getevents.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

The parameter $BMPdata is not named in camelCase.
Open

    public function phpthumb_bmp2gd(&$BMPdata, $truecolor = true)
    {
        $ThisFileInfo = array();
        if ($this->getid3_bmp($BMPdata, $ThisFileInfo, true, true)) {
            $gd = $this->PlotPixelsGD($ThisFileInfo['bmp'], $truecolor);
Severity: Minor
Found in thumbs/phpthumb.bmp.php by phpmd

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 parameter $ThisFileInfo is not named in camelCase.
Open

    public function getid3_bmp(&$BMPdata, &$ThisFileInfo, $ExtractPalette = false, $ExtractData = false)
    {

        // shortcuts
        $ThisFileInfo['bmp']['header']['raw'] = array();
Severity: Minor
Found in thumbs/phpthumb.bmp.php by phpmd

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

Avoid variables with short names like $gd. Configured minimum length is 3.
Open

            $gd = @imagecreatetruecolor($imagewidth, $imageheight);
Severity: Minor
Found in thumbs/phpthumb.bmp.php by phpmd

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 property $config_document_root is not named in camelCase.
Open

class phpthumb
{

    // public:
    // START PARAMETERS (for object mode and phpThumb.php)
Severity: Minor
Found in thumbs/phpthumb.class.php by phpmd

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

class apcal_locale
{
    public $hour_names_24;
    public $hour_names_12;
    public $holidays;
Severity: Minor
Found in getevents.php by phpmd

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

class apcal_locale
{
    public $hour_names_24;
    public $hour_names_12;
    public $holidays;
Severity: Minor
Found in getevents.php by phpmd

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

class apcal_locale
{
    public $hour_names_24;
    public $hour_names_12;
    public $holidays;
Severity: Minor
Found in getevents.php by phpmd

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 getid3_bmp(&$BMPdata, &$ThisFileInfo, $ExtractPalette = false, $ExtractData = false)
    {

        // shortcuts
        $ThisFileInfo['bmp']['header']['raw'] = array();
Severity: Minor
Found in thumbs/phpthumb.bmp.php by phpmd

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

Severity
Category
Status
Source
Language