Showing 910 of 910 total issues

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/Part.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_Searcher is not named in CamelCase.
Open

class ELearn_Searcher
{

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

    function configure($search_fields = array(), $sort_fields = array())
    {
        if (is_array($search_fields)) {
            $this->search_fields = $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

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 32 and the first side effect is on line 34.
Open

#!/usr/bin/env php
Severity: Minor
Found in run.php by phpcodesniffer

The class ELearn_Course is not named in CamelCase.
Open

class ELearn_Course extends Pluf_Model
{

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

class ELearn_Form_PartCreate extends Pluf_Form_Model
{

    public $tenant = null;

Severity: Minor
Found in src/ELearn/Form/PartCreate.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_Part is not named in CamelCase.
Open

class ELearn_Part extends Pluf_Model
{

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

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

    $q = new Pluf_SQL('title=%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

The class ELearn_Views_Lesson is not named in CamelCase.
Open

class ELearn_Views_Lesson
{

    // *******************************************************************
    // Lesson of Course
Severity: Minor
Found in src/ELearn/Views/Lesson.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 $p. Configured minimum length is 3.
Open

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

class ELearn_Domain extends Pluf_Model
{

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

class ELearn_Form_PartUpdate extends Pluf_Form_Model
{

    public function initFields($extra = array())
    {
Severity: Minor
Found in src/ELearn/Form/PartUpdate.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 $sort_order 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 parameter $search_fields is not named in camelCase.
Open

    function configure($search_fields = array(), $sort_fields = array())
    {
        if (is_array($search_fields)) {
            $this->search_fields = $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

The class ELearn_Views_Course is not named in CamelCase.
Open

class ELearn_Views_Course
{

    // *******************************************************************
    // Course of Topic
Severity: Minor
Found in src/ELearn/Views/Course.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 $p. Configured minimum length is 3.
Open

    private static function getModel ($p)
Severity: Minor
Found in src/ELearn/Views.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 is not named in CamelCase.
Open

class ELearn_Views{
    
    /**
     * Return list of all instance of the data model defined in $p 
     * @param Pluf_HTTP_Request $request
Severity: Minor
Found in src/ELearn/Views.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

Severity
Category
Status
Source
Language