1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-09 22:56:46 +02:00

feat(element-queries): refactor #436

This commit is contained in:
Awilum
2020-07-24 01:18:38 +03:00
parent 178c2efed4
commit 9e296a5e10

View File

@@ -13,7 +13,7 @@ if (! function_exists('collect')) {
/**
* Create a collection from the given value.
*
* @param mixed $value
* @param mixed $items Items
*/
function collect($items) : Collection
{
@@ -25,7 +25,8 @@ if (! function_exists('collect_filter')) {
/**
* Create a collection from the given value and filter it.
*
* @param mixed $value
* @param mixed $items Items
* @param array $filter Filters array
*/
function collect_filter($items, array $filter) : array
{