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);
- 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 _arrayGet is not named in camelCase. Open
protected function _arrayGet(&$list, $key, $default = null)
{
if (is_array($list)) {
return isset($list[$key])
? $list[$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 _addItems is not named in camelCase. Open
protected function _addItems($items)
{
foreach ($items as $_key => $_item) {
$this->_validateItem($_item);
$this->_addItem($_item);
- 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 _findItem is not named in camelCase. Open
public function _findItem($item, $strict = false)
{
return $this->_arraySearch($this->items, $item, $strict);
}
- 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 _isValidItem is not named in camelCase. Open
protected function _isValidItem($item)
{
try {
$this->_validateItem($item);
} catch (Exception $ex) {
- 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 _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'));
}
- 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 _next is not named in camelCase. Open
protected function _next()
{
$this->_arrayNext($this->_getCachedItems());
}
- 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 _arrayConvert is not named in camelCase. Open
protected function _arrayConvert(&$list)
{
if (is_array($list)) {
return $list;
}
- 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 _hash is not named in camelCase. Open
protected function _hash($value)
{
return is_scalar($value)
? $this->_hashScalar($value)
: $this->_hashNonScalar($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 _addItem is not named in camelCase. Open
protected function _addItem($item)
{
$key = $this->_getItemUniqueKey($item);
return $this->_arraySet($this->items, $item, $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 _arrayUnset is not named in camelCase. Open
protected function _arrayUnset(&$array, $key)
{
if (is_array($array)) {
if (isset($array[$key])) {
unset($array[$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 _rewind is not named in camelCase. Open
protected function _rewind()
{
$this->_clearItemCache();
}
- 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 _arrayCount is not named in camelCase. Open
public function _arrayCount(&$list)
{
if (is_array($list)) {
return count($list);
}
- 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 _getItem is not named in camelCase. Open
protected function _getItem($key, $default = null)
{
return $this->_arrayGet($this->items, $key, $default);
}
- 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 _arraySet is not named in camelCase. Open
protected function _arraySet(&$list, $item, $key)
{
if (is_array($list)) {
$list[$key] = $item;
- 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 _getIterator is not named in camelCase. Open
protected function _getIterator(\Traversable $iterator)
{
if ($iterator instanceof \Iterator) {
return $iterator;
}
- 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 _getItems is not named in camelCase. Open
protected function _getItems()
{
return $this->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 _setItems is not named in camelCase. Open
protected function _setItems($items)
{
$this->_validateItemList($items);
$this->items = $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 _construct is not named in camelCase. Open
protected function _construct()
{
$this->items = array();
}
- 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 _setItem is not named in camelCase. Open
protected function _setItem($key, $item)
{
return $this->_arraySet($this->items, $item, $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() {
}
}