Completed
Push — api/develop ( e96dfd...e4271f )
by Bertrand
09:36
created
app/Api/Eloquent/Navlink.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $parent_links = self::where('parent_id', 0)->get();
41 41
 
42
-        $parent_links->each(function ($item) {
42
+        $parent_links->each(function($item) {
43 43
             $item->route = str_replace('/', '-', $item->href);
44 44
         })->toArray();
45 45
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     private static function filterPermission($user, $links)
60 60
     {
61
-        return $links->filter(function (Navlink $item) use ($user) {
61
+        return $links->filter(function(Navlink $item) use ($user) {
62 62
             $permission = str_replace('/', '.', $item->href);
63 63
 
64 64
             return $user->hasAccess($permission.'.view');
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         foreach ($children as $k => $child) {
79 79
             $grand_children = self::where('parent_id', $child['id'])->get();
80 80
 
81
-            $grand_children->each(function ($item) {
81
+            $grand_children->each(function($item) {
82 82
                 $item->route = str_replace('/', '-', $item->href);
83 83
             })->toArray();
84 84
 
Please login to merge, or discard this patch.