src/Events/StartMeasuring.php
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string $name,
string $type = 'request',
?string $action = null,
?string $label = null,
?float $start_time = null
The parameter $start_time is not named in camelCase. Open
Open
public function __construct(
string $name,
string $type = 'request',
?string $action = null,
?string $label = null,
- 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 $start_time is not named in camelCase. Open
Open
class StartMeasuring
{
/** @var string */
public $name;
- 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 $start_time is not named in camelCase. Open
Open
public function __construct(
string $name,
string $type = 'request',
?string $action = null,
?string $label = null,
- 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();
}
}