File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -365,20 +365,6 @@ function array_except($array, $keys)
365365 }
366366}
367367
368- if (!function_exists ('array_first ' )) {
369- /**
370- * array_first returns the first element in an array passing a given truth test
371- * @param array $array
372- * @param callable|null $callback
373- * @param mixed $default
374- * @return mixed
375- */
376- function array_first ($ array , $ callback = null , $ default = null )
377- {
378- return Arr::first ($ array , $ callback , $ default );
379- }
380- }
381-
382368if (!function_exists ('array_flatten ' )) {
383369 /**
384370 * array_flatten flattens a multi-dimensional array into a single level
@@ -432,20 +418,6 @@ function array_has($array, $keys)
432418 }
433419}
434420
435- if (!function_exists ('array_last ' )) {
436- /**
437- * array_last returns the last element in an array passing a given truth test
438- * @param array $array
439- * @param callable|null $callback
440- * @param mixed $default
441- * @return mixed
442- */
443- function array_last ($ array , $ callback = null , $ default = null )
444- {
445- return Arr::last ($ array , $ callback , $ default );
446- }
447- }
448-
449421if (!function_exists ('array_only ' )) {
450422 /**
451423 * array_only gets a subset of the items from the given array
You can’t perform that action at this time.
0 commit comments