Avoid unused local variables such as '$_code'. Open
foreach ($this->_getSuites() as $_code => $_suite) {
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
The variable $_suite is not named in camelCase. Open
protected function _runAll()
{
$runner = $this->_getRunnerInstance();
$results = array();
foreach ($this->_getSuites() as $_code => $_suite) {
- 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 $_suite is not named in camelCase. Open
protected function _runAll()
{
$runner = $this->_getRunnerInstance();
$results = array();
foreach ($this->_getSuites() as $_code => $_suite) {
- 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 $_suite is not named in camelCase. Open
protected function _runAll()
{
$runner = $this->_getRunnerInstance();
$results = array();
foreach ($this->_getSuites() as $_code => $_suite) {
- 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 $_code is not named in camelCase. Open
protected function _runAll()
{
$runner = $this->_getRunnerInstance();
$results = array();
foreach ($this->_getSuites() as $_code => $_suite) {
- 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 $_suite is not named in camelCase. Open
protected function _runAll()
{
$runner = $this->_getRunnerInstance();
$results = array();
foreach ($this->_getSuites() as $_code => $_suite) {
- 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 $_suite is not named in camelCase. Open
protected function _runAll()
{
$runner = $this->_getRunnerInstance();
$results = array();
foreach ($this->_getSuites() as $_code => $_suite) {
- 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 method _getRunnerInstance is not named in camelCase. Open
abstract protected function _getRunnerInstance();
- 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 _afterRunSuite is not named in camelCase. Open
protected function _afterRunSuite(Suite\SuiteInterface $suite)
{
$this->_getCoordinatorInstance()->afterRunSuite($suite, $this);
return $this;
- 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 _afterRunAll is not named in camelCase. Open
protected function _afterRunAll(Test\ResultSetInterface $results)
{
$this->_getCoordinatorInstance()->afterRunAllSuites($results, $this);
return $this;
- 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 _getCoordinatorInstance is not named in camelCase. Open
abstract protected function _getCoordinatorInstance();
- 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 _runAll is not named in camelCase. Open
protected function _runAll()
{
$runner = $this->_getRunnerInstance();
$results = array();
foreach ($this->_getSuites() as $_code => $_suite) {
- 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 _prepareResults is not named in camelCase. Open
protected function _prepareResults($results)
{
return $this->_createResultSetIterator($results);
}
- 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 _beforeRunAll is not named in camelCase. Open
protected function _beforeRunAll()
{
$this->_getCoordinatorInstance()->beforeRunAllSuites($this, $this);
return $this;
- 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 _beforeRunSuite is not named in camelCase. Open
protected function _beforeRunSuite(Suite\SuiteInterface $suite)
{
$this->_getCoordinatorInstance()->beforeRunSuite($suite, $this);
return $this;
- 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 _getSuites is not named in camelCase. Open
abstract protected function _getSuites();
- 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() {
}
}