Passed
Push — master ( a5865f...d065eb )
by Reza
02:47
created
src/helpers.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.