Showing 910 of 910 total issues

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

    public static function update($request, $match, $p)
Severity: Minor
Found in src/ELearn/Views/Course.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 class ELearn_Views_Part is not named in CamelCase.
Open

class ELearn_Views_Part
{

    // *******************************************************************
    // Part of Lesson
Severity: Minor
Found in src/ELearn/Views/Part.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 property $forced_where is not named in camelCase.
Open

class ELearn_Searcher
{

    /**
     * این مدل داده‌ای جستجوگر خواهد شد.
Severity: Minor
Found in src/ELearn/Searcher.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 $p. Configured minimum length is 3.
Open

    public static function update($request, $match, $p)
Severity: Minor
Found in src/ELearn/Views/Lesson.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 $s. Configured minimum length is 3.
Open

            $s = $this->sort_order[1];
Severity: Minor
Found in src/ELearn/Searcher.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 parameter $search_fields is not named in camelCase.
Open

    function __construct($model = null, $search_fields = array())
    {
        $this->model = $model;
        $this->configure($search_fields);
    }
Severity: Minor
Found in src/ELearn/Searcher.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 $q. Configured minimum length is 3.
Open

    $q = new Pluf_SQL('name=%s', array(
Severity: Minor
Found in src/ELearn/Shortcuts.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 $p. Configured minimum length is 3.
Open

    public static function create($request, $match, $p)
Severity: Minor
Found in src/ELearn/Views/Course.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 class ELearn_Views_Topic is not named in CamelCase.
Open

class ELearn_Views_Topic
{

    // *******************************************************************
    // Topics of Domain
Severity: Minor
Found in src/ELearn/Views/Topic.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

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 5 and the first side effect is on line 2.
Open

<?php
Severity: Minor
Found in src/ELearn/Views/Course.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 5 and the first side effect is on line 2.
Open

<?php
Severity: Minor
Found in src/ELearn/Views/Part.php by phpcodesniffer

The class ELearn_Grade is not named in CamelCase.
Open

class ELearn_Grade extends Pluf_Model
{

    /**
     * @brief مدل داده‌ای را بارگذاری می‌کند.
Severity: Minor
Found in src/ELearn/Grade.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 property $active_list_filter is not named in camelCase.
Open

class ELearn_Searcher
{

    /**
     * این مدل داده‌ای جستجوگر خواهد شد.
Severity: Minor
Found in src/ELearn/Searcher.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

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 5 and the first side effect is on line 2.
Open

<?php
Severity: Minor
Found in src/ELearn/Views/Lesson.php by phpcodesniffer

The property $model_view is not named in camelCase.
Open

class ELearn_Searcher
{

    /**
     * این مدل داده‌ای جستجوگر خواهد شد.
Severity: Minor
Found in src/ELearn/Searcher.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 $search_string is not named in camelCase.
Open

class ELearn_Searcher
{

    /**
     * این مدل داده‌ای جستجوگر خواهد شد.
Severity: Minor
Found in src/ELearn/Searcher.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 ELearn_Topic is not named in CamelCase.
Open

class ELearn_Topic extends Pluf_Model
{

    /**
     * @brief مدل داده‌ای را بارگذاری می‌کند.
Severity: Minor
Found in src/ELearn/Topic.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 class ELearn_Comment is not named in CamelCase.
Open

class ELearn_Comment extends Pluf_Model
{

    /**
     * @brief مدل داده‌ای را بارگذاری می‌کند.
Severity: Minor
Found in src/ELearn/Comment.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

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 5 and the first side effect is on line 2.
Open

<?php
Severity: Minor
Found in src/ELearn/Views/Topic.php by phpcodesniffer

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

    $q = new Pluf_SQL('name=%s', array(
Severity: Minor
Found in src/ELearn/Shortcuts.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