The method __construct has 10 parameters. Consider reducing the number of parameters to less than 10. Open
public function __construct(
$id,
$title,
$content,
$date,
- Exclude checks
The property $attachment_filename is not named in camelCase. Open
class Announcement extends Resource
{
/**
* The title of the announcement.
*/
- 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 $attachment_path is not named in camelCase. Open
class Announcement extends Resource
{
/**
* The title of the announcement.
*/
- 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 $email_sent is not named in camelCase. Open
class Announcement extends Resource
{
/**
* The title of the announcement.
*/
- 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 $attachment_size is not named in camelCase. Open
class Announcement extends Resource
{
/**
* The title of the announcement.
*/
- 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 $email_sent is not named in camelCase. Open
public function __construct(
$id,
$title,
$content,
$date,
- 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 $display_order is not named in camelCase. Open
class Announcement extends Resource
{
/**
* The title of the announcement.
*/
- 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 $display_order is not named in camelCase. Open
public function __construct(
$id,
$title,
$content,
$date,
- 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 $attachment_comment is not named in camelCase. Open
class Announcement extends Resource
{
/**
* The title of the announcement.
*/
- 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 variable $display_order is not named in camelCase. Open
public function __construct(
$id,
$title,
$content,
$date,
- 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 $email_sent is not named in camelCase. Open
public function __construct(
$id,
$title,
$content,
$date,
- 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();
}
}