src/AgentBuilder.php
Method newAgent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Config $config,
ContextCollection $sharedContext,
Connector $connector,
EventFactoryInterface $eventFactory,
TransactionsStore $transactionsStore): ApmAgent
The parameter $app_config is not named in camelCase. Open
Open
public function withAppConfig(Repository $app_config): self
{
$this->app_config = $app_config;
return $this;
- 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 $app_config is not named in camelCase. Open
Open
class AgentBuilder extends NipwaayoniAgentBuilder
{
/** @var Repository */
private $app_config;
- 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 $app_config is not named in camelCase. Open
Open
public function withAppConfig(Repository $app_config): self
{
$this->app_config = $app_config;
return $this;
- 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();
}
}