Skip to content

Commit 64c1a41

Browse files
committed
use Arr::first method directly
1 parent 7513797 commit 64c1a41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/backend/controllers/Index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
use Backend\Classes\Controller;
77
use Backend\Widgets\ReportContainer;
88

9+
use Winter\Storm\Support\Arr;
10+
911
/**
1012
* Dashboard controller
1113
*
@@ -75,7 +77,7 @@ protected function checkPermissionRedirect()
7577
$true = function () {
7678
return true;
7779
};
78-
if ($first = array_first(BackendMenu::listMainMenuItems(), $true)) {
80+
if ($first = Arr::first(BackendMenu::listMainMenuItems(), $true)) {
7981
return Redirect::intended($first->url);
8082
}
8183
return Backend::redirect('backend/users/myaccount');

0 commit comments

Comments
 (0)