Showing 26,336 of 26,336 total issues
The property $user_id is not named in camelCase. Open
class APCal
{
// SKELTON (they will be defined in language files)
public $holidays = array();
public $date_short_names = array();
- 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 $images_path is not named in camelCase. Open
class APCal
{
// SKELTON (they will be defined in language files)
public $holidays = array();
public $date_short_names = array();
- 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 $week_numbering is not named in camelCase. Open
class APCal
{
// SKELTON (they will be defined in language files)
public $holidays = array();
public $date_short_names = array();
- 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 $get_target is not named in camelCase. Open
public function get_date_schedule($get_target = '')
{
// if( $get_target == '' ) $get_target = $_SERVER['SCRIPT_NAME'] ;
$ret = '';
- 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 property $ro_extrainfo2_obl is not named in camelCase. Open
class APCal
{
// SKELTON (they will be defined in language files)
public $holidays = array();
public $date_short_names = array();
- 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 $event_id is not named in camelCase. Open
public function make_event_link($event_id, $get_target = '', $caldate = '')
{
if ($caldate === '') {
$caldate = $this->caldate;
}
- 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 parameter $range_start_s is not named in camelCase. Open
public function get_flags_date_has_events($range_start_s, $range_end_s, $mode = '')
{
// ���餫����������������Ƥ���
/* for ($time = $start ; $time < $end ; $time += 86400) {
$ret[ date( 'j' , $time ) ] = 0 ;
- 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 parameter $range_end_s is not named in camelCase. Open
public function get_flags_date_has_events($range_start_s, $range_end_s, $mode = '')
{
// ���餫����������������Ƥ���
/* for ($time = $start ; $time < $end ; $time += 86400) {
$ret[ date( 'j' , $time ) ] = 0 ;
- 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 property $base_url is not named in camelCase. Open
class APCal
{
// SKELTON (they will be defined in language files)
public $holidays = array();
public $date_short_names = array();
- 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 $last_summary is not named in camelCase. Open
class APCal
{
// SKELTON (they will be defined in language files)
public $holidays = array();
public $date_short_names = array();
- 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 $plugins_path_weekly is not named in camelCase. Open
class APCal
{
// SKELTON (they will be defined in language files)
public $holidays = array();
public $date_short_names = array();
- 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 $ro_mail_sendername is not named in camelCase. Open
class APCal
{
// SKELTON (they will be defined in language files)
public $holidays = array();
public $date_short_names = array();
- 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 $ro_mail_signature is not named in camelCase. Open
class APCal
{
// SKELTON (they will be defined in language files)
public $holidays = array();
public $date_short_names = array();
- 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 $get_target is not named in camelCase. Open
public function make_event_link($event_id, $get_target = '', $caldate = '')
{
if ($caldate === '') {
$caldate = $this->caldate;
}
- 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 parameter $for_print is not named in camelCase. Open
public function get_yearly($get_target = '', $query_string = '', $for_print = false)
{
// $PHP_SELF = $_SERVER['SCRIPT_NAME'] ;
// if( $get_target == '' ) $get_target = $PHP_SELF ;
- 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 property $plugins_path_monthly is not named in camelCase. Open
class APCal
{
// SKELTON (they will be defined in language files)
public $holidays = array();
public $date_short_names = array();
- 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 $table_ro_events is not named in camelCase. Open
class APCal
{
// SKELTON (they will be defined in language files)
public $holidays = array();
public $date_short_names = array();
- 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 $ro_extrainfo3_obl is not named in camelCase. Open
class APCal
{
// SKELTON (they will be defined in language files)
public $holidays = array();
public $date_short_names = array();
- 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
Avoid variables with short names like $id. Configured minimum length is 3. Open
while (list($title, $id, $server_time, $location, $contact, $gmlat, $gmlong) = $GLOBALS['xoopsDB']->fetchRow($result)) {
- 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 parameter $query_string is not named in camelCase. Open
public function get_yearly($get_target = '', $query_string = '', $for_print = false)
{
// $PHP_SELF = $_SERVER['SCRIPT_NAME'] ;
// if( $get_target == '' ) $get_target = $PHP_SELF ;
- 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) {
}
}