src/StringTranslatorAwareTrait.php
The method _getTranslator is not named in camelCase. Open
Open
protected function _getTranslator()
{
return $this->translator;
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method _setTranslator is not named in camelCase. Open
Open
protected function _setTranslator($translator)
{
if (!(is_null($translator) || $translator instanceof StringTranslatorInterface)) {
throw new InvalidArgumentException('Invalid translator');
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}