@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if(! function_exists('getRouteName')) |
|
3 | +if (!function_exists('getRouteName')) |
|
4 | 4 | { |
5 | - function getRouteName(){ |
|
5 | + function getRouteName() { |
|
6 | 6 | $routeName = config('easy_panel.route_prefix'); |
7 | 7 | $routeName = trim($routeName, '/'); |
8 | 8 | $routeName = str_replace('/', '.', $routeName); |
@@ -10,9 +10,9 @@ discard block |
||
10 | 10 | } |
11 | 11 | } |
12 | 12 | |
13 | -if(! function_exists('get_icon')) |
|
13 | +if (!function_exists('get_icon')) |
|
14 | 14 | { |
15 | - function get_icon($type){ |
|
15 | + function get_icon($type) { |
|
16 | 16 | $array = [ |
17 | 17 | 'file-text' => ['posts', 'article', 'stories', 'post', 'articles', 'story'], |
18 | 18 | 'users' => ['users', 'user', 'accounts', 'account', 'admins', 'admin', 'employee', 'employees'], |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | 'music' => ['musics', 'music', 'audios', 'audio'], |
26 | 26 | 'bell' => ['notifications', 'notification'], |
27 | 27 | ]; |
28 | - foreach ($array as $key => $arrayValues){ |
|
29 | - if(in_array($type, $arrayValues)){ |
|
28 | + foreach ($array as $key => $arrayValues) { |
|
29 | + if (in_array($type, $arrayValues)) { |
|
30 | 30 | $val = $key; |
31 | 31 | } |
32 | 32 | } |