File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,36 +117,6 @@ function array_except($array, $keys)
117117 }
118118}
119119
120- if (!function_exists ('array_first ' )) {
121- /**
122- * Return the first element in an array passing a given truth test.
123- *
124- * @param array $array
125- * @param callable|null $callback
126- * @param mixed $default
127- * @return mixed
128- */
129- function array_first ($ array , ?callable $ callback = null , $ default = null )
130- {
131- return Arr::first ($ array , $ callback , $ default );
132- }
133- }
134-
135- if (!function_exists ('array_last ' )) {
136- /**
137- * Return the last element in an array passing a given truth test.
138- *
139- * @param array $array
140- * @param callable|null $callback
141- * @param mixed $default
142- * @return mixed
143- */
144- function array_last ($ array , ?callable $ callback = null , $ default = null )
145- {
146- return Arr::last ($ array , $ callback , $ default );
147- }
148- }
149-
150120if (!function_exists ('array_flatten ' )) {
151121 /**
152122 * Flatten a multi-dimensional array into a single level.
You can’t perform that action at this time.
0 commit comments