src/Locator/ClassLocator.php
The method _matchMethod is not named in camelCase. Open
Open
protected function _matchMethod(\ReflectionMethod $method)
{
return $this->_stringStartsWith($method->getName(), 'test');
}
- 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 _createTest is not named in camelCase. Open
Open
protected function _createTest($className, $methodName, $key)
{
return new Test\Test($className, $methodName, $key);
}
- 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 _createResultSet is not named in camelCase. Open
Open
protected function _createResultSet($items)
{
return new ResultSet($items);
}
- 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 _stringStartsWith is not named in camelCase. Open
Open
protected function _stringStartsWith($string, $requiredPrefix)
{
$requiredLength = strlen($requiredPrefix);
$prefix = substr($string, 0, $requiredLength);
- 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() {
}
}