Skip to content

Commit 8f7e647

Browse files
committed
formatting. add proxy
1 parent eb6ea2d commit 8f7e647

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/Illuminate/Support/Collection.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Collection implements ArrayAccess, Arrayable, Countable, IteratorAggregate
5858
protected static $proxies = [
5959
'average', 'avg', 'contains', 'each', 'every', 'filter', 'first',
6060
'flatMap', 'groupBy', 'keyBy', 'map', 'max', 'min', 'partition',
61-
'reject', 'sortBy', 'sortByDesc', 'sum', 'unique',
61+
'reject', 'some', 'sortBy', 'sortByDesc', 'sum', 'unique',
6262
];
6363

6464
/**
@@ -238,6 +238,19 @@ public function collapse()
238238
return new static(Arr::collapse($this->items));
239239
}
240240

241+
/**
242+
* Alias for the "contains" method.
243+
*
244+
* @param mixed $key
245+
* @param mixed $operator
246+
* @param mixed $value
247+
* @return bool
248+
*/
249+
public function some($key, $operator = null, $value = null)
250+
{
251+
return $this->contains($key, $operator, $value);
252+
}
253+
241254
/**
242255
* Determine if an item exists in the collection.
243256
*
@@ -261,19 +274,6 @@ public function contains($key, $operator = null, $value = null)
261274
return $this->contains($this->operatorForWhere(...func_get_args()));
262275
}
263276

264-
/**
265-
* Alias for the "contains" method.
266-
*
267-
* @param mixed $key
268-
* @param mixed $operator
269-
* @param mixed $value
270-
* @return bool
271-
*/
272-
public function some($key, $operator = null, $value = null)
273-
{
274-
return $this->contains($key, $operator, $value);
275-
}
276-
277277
/**
278278
* Determine if an item exists in the collection using strict comparison.
279279
*

0 commit comments

Comments
 (0)