Dhii/collections-abstract-base

View on GitHub

Showing 62 of 62 total issues

The method _arraySearch is not named in camelCase.
Open

    protected function _arraySearch(&$array, $value, $strict = false)
    {
        // Regular array matching
        if (is_array($array)) {
            return array_search($value, $array, $strict);
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _arrayGet is not named in camelCase.
Open

    protected function _arrayGet(&$list, $key, $default = null)
    {
        if (is_array($list)) {
            return isset($list[$key])
                ? $list[$key]
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _addItems is not named in camelCase.
Open

    protected function _addItems($items)
    {
        foreach ($items as $_key => $_item) {
            $this->_validateItem($_item);
            $this->_addItem($_item);
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _findItem is not named in camelCase.
Open

    public function _findItem($item, $strict = false)
    {
        return $this->_arraySearch($this->items, $item, $strict);
    }
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _isValidItem is not named in camelCase.
Open

    protected function _isValidItem($item)
    {
        try {
            $this->_validateItem($item);
        } catch (Exception $ex) {
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _validateItemList is not named in camelCase.
Open

    protected function _validateItemList($items)
    {
        if (!is_array($items) && !($items instanceof \Traversable)) {
            throw new UnexpectedValueException(sprintf('Must be a valid item list'));
        }
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _next is not named in camelCase.
Open

    protected function _next()
    {
        $this->_arrayNext($this->_getCachedItems());
    }
Severity: Minor
Found in src/AbstractIterableCollection.php by phpmd

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 _arrayConvert is not named in camelCase.
Open

    protected function _arrayConvert(&$list)
    {
        if (is_array($list)) {
            return $list;
        }
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _hash is not named in camelCase.
Open

    protected function _hash($value)
    {
        return is_scalar($value)
                ? $this->_hashScalar($value)
                : $this->_hashNonScalar($value);
Severity: Minor
Found in src/AbstractHasher.php by phpmd

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 _addItem is not named in camelCase.
Open

    protected function _addItem($item)
    {
        $key = $this->_getItemUniqueKey($item);

        return $this->_arraySet($this->items, $item, $key);
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _arrayUnset is not named in camelCase.
Open

    protected function _arrayUnset(&$array, $key)
    {
        if (is_array($array)) {
            if (isset($array[$key])) {
                unset($array[$key]);
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _rewind is not named in camelCase.
Open

    protected function _rewind()
    {
        $this->_clearItemCache();
    }
Severity: Minor
Found in src/AbstractIterableCollection.php by phpmd

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 _arrayCount is not named in camelCase.
Open

    public function _arrayCount(&$list)
    {
        if (is_array($list)) {
            return count($list);
        }
Severity: Minor
Found in src/AbstractIterableCollection.php by phpmd

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 _getItem is not named in camelCase.
Open

    protected function _getItem($key, $default = null)
    {
        return $this->_arrayGet($this->items, $key, $default);
    }
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _arraySet is not named in camelCase.
Open

    protected function _arraySet(&$list, $item, $key)
    {
        if (is_array($list)) {
            $list[$key] = $item;

Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _getIterator is not named in camelCase.
Open

    protected function _getIterator(\Traversable $iterator)
    {
        if ($iterator instanceof \Iterator) {
            return $iterator;
        }
Severity: Minor
Found in src/AbstractIterableCollection.php by phpmd

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 _getItems is not named in camelCase.
Open

    protected function _getItems()
    {
        return $this->items;
    }
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _setItems is not named in camelCase.
Open

    protected function _setItems($items)
    {
        $this->_validateItemList($items);
        $this->items = $items;

Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _construct is not named in camelCase.
Open

    protected function _construct()
    {
        $this->items = array();
    }
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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 _setItem is not named in camelCase.
Open

    protected function _setItem($key, $item)
    {
        return $this->_arraySet($this->items, $item, $key);
    }
Severity: Minor
Found in src/AbstractCollection.php by phpmd

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

Severity
Category
Status
Source
Language