Permalink
Browse files

formatting. add proxy

  • Loading branch information...
taylorotwell committed Nov 5, 2018
1 parent eb6ea2d commit 8f7e647dcee5fe13d7fc33a1e0e1ce531ea9f49e
Showing with 14 additions and 14 deletions.
  1. +14 −14 src/Illuminate/Support/Collection.php
@@ -58,7 +58,7 @@ class Collection implements ArrayAccess, Arrayable, Countable, IteratorAggregate
protected static $proxies = [
'average', 'avg', 'contains', 'each', 'every', 'filter', 'first',
'flatMap', 'groupBy', 'keyBy', 'map', 'max', 'min', 'partition',
'reject', 'sortBy', 'sortByDesc', 'sum', 'unique',
'reject', 'some', 'sortBy', 'sortByDesc', 'sum', 'unique',
];
/**
@@ -238,6 +238,19 @@ public function collapse()
return new static(Arr::collapse($this->items));
}
/**
* Alias for the "contains" method.
*
* @param mixed $key
* @param mixed $operator
* @param mixed $value
* @return bool
*/
public function some($key, $operator = null, $value = null)
{
return $this->contains($key, $operator, $value);
}
/**
* Determine if an item exists in the collection.
*
@@ -261,19 +274,6 @@ public function contains($key, $operator = null, $value = null)
return $this->contains($this->operatorForWhere(...func_get_args()));
}
/**
* Alias for the "contains" method.
*
* @param mixed $key
* @param mixed $operator
* @param mixed $value
* @return bool
*/
public function some($key, $operator = null, $value = null)
{
return $this->contains($key, $operator, $value);
}
/**
* Determine if an item exists in the collection using strict comparison.
*

0 comments on commit 8f7e647

Please sign in to comment.