From 9b84f469ecf130f2bf5d662139897da4f866df0a Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 15 Jul 2020 23:45:12 +0300 Subject: [PATCH] feat(element-queries): refactor #436 --- src/flextype/Support/Collection.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/flextype/Support/Collection.php b/src/flextype/Support/Collection.php index b44c6c8d..524ad99b 100644 --- a/src/flextype/Support/Collection.php +++ b/src/flextype/Support/Collection.php @@ -20,6 +20,7 @@ use function array_rand; use function array_undot; use function count; use function error_reporting; +use function is_array; use function is_null; use function shuffle; use const E_NOTICE; @@ -308,7 +309,7 @@ class Collection $results = $collection->last(); // Return first matching result - return is_array ($results) ? array_undot($results) : $results; + return is_array($results) ? array_undot($results) : $results; } /** @@ -332,7 +333,7 @@ class Collection $results = $collection->next(); // Return first matching result - return is_array ($results) ? array_undot($results) : $results; + return is_array($results) ? array_undot($results) : $results; } /** @@ -385,7 +386,7 @@ class Collection $results = $collection->first(); // Return first matching result - return is_array ($results) ? array_undot($results) : $results; + return is_array($results) ? array_undot($results) : $results; } /**