src/CourseBundle/Component/CourseCopy/Resources/Wiki.php
The method __construct has 10 parameters. Consider reducing the number of parameters to less than 10. Open
Open
public function __construct(
$id,
$page_id,
$reflink,
$title,
- Exclude checks
The parameter $user_id is not named in camelCase. Open
Open
public function __construct(
$id,
$page_id,
$reflink,
$title,
- 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 $group_id is not named in camelCase. Open
Open
class Wiki extends Resource
{
public $id;
public $page_id;
public $reflink;
- 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 $page_id is not named in camelCase. Open
Open
class Wiki extends Resource
{
public $id;
public $page_id;
public $reflink;
- 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 $page_id is not named in camelCase. Open
Open
public function __construct(
$id,
$page_id,
$reflink,
$title,
- 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 $user_id is not named in camelCase. Open
Open
class Wiki extends Resource
{
public $id;
public $page_id;
public $reflink;
- 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 $group_id is not named in camelCase. Open
Open
public function __construct(
$id,
$page_id,
$reflink,
$title,
- 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 variable $user_id is not named in camelCase. Open
Open
public function __construct(
$id,
$page_id,
$reflink,
$title,
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $group_id is not named in camelCase. Open
Open
public function __construct(
$id,
$page_id,
$reflink,
$title,
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $page_id is not named in camelCase. Open
Open
public function __construct(
$id,
$page_id,
$reflink,
$title,
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}