Avoid too many return
statements within this method. Open
return $this->_loop();
Call to method getKey
from undeclared class \Dhii\Iterator\IterationInterface
Open
if ($current->getKey() === null) {
- Exclude checks
Parameter $key
has undeclared type \Dhii\Util\String\StringableInterface
Open
protected function _createIteration($key, $value, $pathSegments = [])
- Exclude checks
Call to method getValue
from undeclared class \Dhii\Iterator\IterationInterface
Open
$children = $current->getValue();
- Exclude checks
Return type of _createIteration()
is undeclared type \Dhii\Iterator\IterationInterface
Open
protected function _createIteration($key, $value, $pathSegments = [])
- Exclude checks
Reference to constant MODE_CHILD_FIRST
from undeclared class \Dhii\Iterator\RecursiveIteratorInterface
Open
if ($this->_isMode(R::MODE_CHILD_FIRST)) {
- Exclude checks
Return type of _createRecursiveIteration()
is undeclared type \Dhii\Iterator\IterationInterface
Open
abstract protected function _createRecursiveIteration($key, $value, $pathSegments = []);
- Exclude checks
Parameter $pathSegments
has undeclared type \Dhii\Util\String\StringableInterface[]
Open
protected function _createIteration($key, $value, $pathSegments = [])
- Exclude checks
Reference to constant MODE_SELF_FIRST
from undeclared class \Dhii\Iterator\RecursiveIteratorInterface
Open
if ($this->_isMode(R::MODE_SELF_FIRST)) {
- Exclude checks
Return type of _reset()
is undeclared type \Dhii\Iterator\IterationInterface
Open
protected function _reset()
- Exclude checks
Return type of _loop()
is undeclared type \Dhii\Iterator\IterationInterface
Open
protected function _loop()
- Exclude checks
Call to method getValue
from undeclared class \Dhii\Iterator\IterationInterface
Open
if (!$this->_isElementHasChildren($current->getValue())) {
- Exclude checks
Return type of _backtrackLoop()
is undeclared type \Dhii\Iterator\IterationInterface
Open
protected function _backtrackLoop()
- Exclude checks
Return type of _createCurrentIteration()
is undeclared type \Dhii\Iterator\IterationInterface
Open
protected function _createCurrentIteration(&$iterable)
- Exclude checks
The method _loop is not named in camelCase. Open
protected function _loop()
{
// Ensure that there are items on the stack
if (!$this->_hasParents()) {
return $this->_createIteration(null, null);
- 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 _valid is not named in camelCase. Open
protected function _valid()
{
return $this->_hasParents();
}
- 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 _getCurrentIterable is not named in camelCase. Open
protected function &_getCurrentIterable()
{
$iterable = &$this->_getTopmostParent();
return $iterable;
- 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 _backtrackLoop is not named in camelCase. Open
protected function _backtrackLoop()
{
$this->_popParent();
if (!$this->_hasParents()) {
- 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 _pushParent is not named in camelCase. Open
protected function _pushParent(&$parent)
{
$children = &$this->_getElementChildren($parent);
$pathSegment = $this->_getElementPathSegment(null, $parent);
- 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 _getTopmostParent is not named in camelCase. Open
protected function &_getTopmostParent()
{
if (isset($this->parents[0])) {
return $this->parents[0];
}
- 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 _getCurrentIterableKey is not named in camelCase. Open
abstract protected function _getCurrentIterableKey(&$iterable);
- 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 _popParent is not named in camelCase. Open
protected function _popParent()
{
$this->_popPathSegment();
array_shift($this->parents);
- 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 _resetParents is not named in camelCase. Open
protected function _resetParents()
{
$this->parents = [];
$this->pathSegments = [];
- 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 _pushPathSegment is not named in camelCase. Open
protected function _pushPathSegment($segment)
{
array_push($this->pathSegments, $segment);
}
- 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 _getCurrentPath is not named in camelCase. Open
protected function _getCurrentPath($key, $value)
{
$path = $this->_getPathSegments();
$path[] = $this->_getElementPathSegment($key, $value);
- 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 _createCurrentIteration is not named in camelCase. Open
protected function _createCurrentIteration(&$iterable)
{
$key = $this->_getCurrentIterableKey($iterable);
$val = $this->_getCurrentIterableValue($iterable);
$path = $this->_getCurrentPath($key, $val);
- 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 _hasParents is not named in camelCase. Open
protected function _hasParents()
{
return count($this->parents) > 0;
}
- 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 _createIteration is not named in camelCase. Open
protected function _createIteration($key, $value, $pathSegments = [])
{
return $this->_createRecursiveIteration($key, $value, $pathSegments);
}
- 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 _createRecursiveIteration is not named in camelCase. Open
abstract protected function _createRecursiveIteration($key, $value, $pathSegments = []);
- 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 _getElementChildren is not named in camelCase. Open
abstract protected function &_getElementChildren($value);
- 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 _isMode is not named in camelCase. Open
abstract protected function _isMode($mode);
- 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 _reset is not named in camelCase. Open
protected function _reset()
{
$this->_resetParents();
$this->_pushParent($this->_getInitialParentIterable());
- 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 _getInitialParentIterable is not named in camelCase. Open
abstract protected function &_getInitialParentIterable();
- 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 _popPathSegment is not named in camelCase. Open
protected function _popPathSegment()
{
array_pop($this->pathSegments);
}
- 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 _getCurrentIterableValue is not named in camelCase. Open
abstract protected function _getCurrentIterableValue(&$iterable);
- 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 _isElementHasChildren is not named in camelCase. Open
abstract protected function _isElementHasChildren($value);
- 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 _getPathSegments is not named in camelCase. Open
protected function _getPathSegments()
{
return $this->pathSegments;
}
- 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 _getElementPathSegment is not named in camelCase. Open
abstract protected function _getElementPathSegment($key, $value);
- 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() {
}
}