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)
- 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 class ELearn_Searcher is not named in CamelCase. Open
class ELearn_Searcher
{
/**
* این مدل دادهای جستجوگر خواهد شد.
- 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 $search_fields is not named in camelCase. Open
class ELearn_Searcher
{
/**
* این مدل دادهای جستجوگر خواهد شد.
- 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 $where_clause is not named in camelCase. Open
class ELearn_Searcher
{
/**
* این مدل دادهای جستجوگر خواهد شد.
- 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 $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;
}
- 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
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
- Exclude checks
The class ELearn_Course is not named in CamelCase. Open
class ELearn_Course extends Pluf_Model
{
/**
* @brief مدل دادهای را بارگذاری میکند.
- 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 class ELearn_Form_PartCreate is not named in CamelCase. Open
class ELearn_Form_PartCreate extends Pluf_Form_Model
{
public $tenant = null;
- 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 class ELearn_Part is not named in CamelCase. Open
class ELearn_Part extends Pluf_Model
{
/**
* @brief مدل دادهای را بارگذاری میکند.
- 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
Avoid variables with short names like $q. Configured minimum length is 3. Open
$q = new Pluf_SQL('title=%s', array(
- 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 class ELearn_Views_Lesson is not named in CamelCase. Open
class ELearn_Views_Lesson
{
// *******************************************************************
// Lesson of Course
- 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
Avoid variables with short names like $p. Configured minimum length is 3. Open
public static function update($request, $match, $p)
- 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 $p. Configured minimum length is 3. Open
public static function create($request, $match, $p)
- 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 class ELearn_Domain is not named in CamelCase. Open
class ELearn_Domain extends Pluf_Model
{
/**
* @brief مدل دادهای را بارگذاری میکند.
- 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 class ELearn_Form_PartUpdate is not named in CamelCase. Open
class ELearn_Form_PartUpdate extends Pluf_Form_Model
{
public function initFields($extra = array())
{
- 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 $sort_order is not named in camelCase. Open
class ELearn_Searcher
{
/**
* این مدل دادهای جستجوگر خواهد شد.
- 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 $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;
}
- 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 class ELearn_Views_Course is not named in CamelCase. Open
class ELearn_Views_Course
{
// *******************************************************************
// Course of Topic
- 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
Avoid variables with short names like $p. Configured minimum length is 3. Open
private static function getModel ($p)
- 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 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
- 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 {
}