XoopsModules25x/apcal

View on GitHub

Showing 26,336 of 26,336 total issues

The property $_leading_context_lines is not named in camelCase.
Open

class Text_Diff_Renderer_inline extends Text_Diff_Renderer
{
    /**
     * Number of leading context "lines" to preserve.
     */
Severity: Minor
Found in include/Text_Diff_Renderer_inline.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 $k. Configured minimum length is 3.
Open

                        $k = $this->_lcsPos($y);
Severity: Minor
Found in include/Text_Diff.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 $_trailing_context_lines is not named in camelCase.
Open

class Text_Diff_Renderer_inline extends Text_Diff_Renderer
{
    /**
     * Number of leading context "lines" to preserve.
     */
Severity: Minor
Found in include/Text_Diff_Renderer_inline.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 $i. Configured minimum length is 3.
Open

        $i = 0;
Severity: Minor
Found in include/Text_Diff.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 $_del_suffix is not named in camelCase.
Open

class Text_Diff_Renderer_inline extends Text_Diff_Renderer
{
    /**
     * Number of leading context "lines" to preserve.
     */
Severity: Minor
Found in include/Text_Diff_Renderer_inline.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 $xi. Configured minimum length is 3.
Open

        $xi      = $yi = 1;
Severity: Minor
Found in include/Text_Diff_Renderer.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 $_ins_prefix is not named in camelCase.
Open

class Text_Diff_Renderer_inline extends Text_Diff_Renderer
{
    /**
     * Number of leading context "lines" to preserve.
     */
Severity: Minor
Found in include/Text_Diff_Renderer_inline.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 Text_Diff_Renderer_inline is not named in CamelCase.
Open

class Text_Diff_Renderer_inline extends Text_Diff_Renderer
{
    /**
     * Number of leading context "lines" to preserve.
     */
Severity: Minor
Found in include/Text_Diff_Renderer_inline.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

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

        $db  = XoopsDatabaseFactory::getDatabaseConnection();
Severity: Minor
Found in include/blocksadmin.inc.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

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

    $id,
Severity: Minor
Found in include/blocksadmin.inc.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 $_trailing_context_lines is not named in camelCase.
Open

class Text_Diff_Renderer_unified extends Text_Diff_Renderer
{
    /**
     * Number of leading context "lines" to preserve.
     */

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

    class XoopsGTicket
    {
        public $_errors       = array();
        public $_latest_token = '';

Severity: Minor
Found in include/gtickets.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 $UserName is not named in camelCase.
Open

function getuid($UserName)
{
    $rc  = -1;
    $db  = XoopsDatabaseFactory::getDatabaseConnection();
    $sql = 'SELECT uid FROM ' . $db->prefix('users') . " WHERE uname = '" . $UserName . "' LIMIT 0,1";
Severity: Minor
Found in include/ro_contacthandler.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 $v. Configured minimum length is 3.
Open

            $v = '_' . $param;
Severity: Minor
Found in include/Text_Diff_Renderer.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 $_del_prefix is not named in camelCase.
Open

class Text_Diff_Renderer_inline extends Text_Diff_Renderer
{
    /**
     * Number of leading context "lines" to preserve.
     */
Severity: Minor
Found in include/Text_Diff_Renderer_inline.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 $_latest_token is not named in camelCase.
Open

    class XoopsGTicket
    {
        public $_errors       = array();
        public $_latest_token = '';

Severity: Minor
Found in include/gtickets.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 Text_Diff_Renderer_unified is not named in CamelCase.
Open

class Text_Diff_Renderer_unified extends Text_Diff_Renderer
{
    /**
     * Number of leading context "lines" to preserve.
     */

CamelCaseClassName

Since: 0.2

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

Example

class class_name {
}

Source

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

        $nl = "\0";
Severity: Minor
Found in include/Text_Diff_Renderer_inline.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

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

                list($Y, $m) = explode('-', $_GET['caldate']);
Severity: Minor
Found in blocks/apcal_minical_ex.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

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

    $rc  = -1;
Severity: Minor
Found in include/ro_contacthandler.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

Severity
Category
Status
Source
Language