Code Duplication    Length = 7-7 lines in 2 locations

src/Http/Controllers/RoleController.php 2 locations

@@ 49-55 (lines=7) @@
46
     * @return RedirectResponse
47
     * @throws AuthorizationException
48
     */
49
    public function store(StoreFormRequest $request)
50
    {
51
        $this->authorize('create', new Role);
52
        $role = Role::create($request->only(['name', 'display_name']));
53
        $role->permissions()->attach($request->get('permissions'));
54
        return redirect()->route('microboard.roles.show', $role);
55
    }
56
57
    /**
58
     * Display the specified resource.
@@ 91-97 (lines=7) @@
88
     * @return RedirectResponse
89
     * @throws AuthorizationException
90
     */
91
    public function update(UpdateFormRequest $request, Role $role)
92
    {
93
        $this->authorize('update', $role);
94
        $role->update($request->only(['name', 'display_name']));
95
        $role->permissions()->sync($request->get('permissions'));
96
        return redirect()->route('microboard.roles.show', $role);
97
    }
98
99
    /**
100
     * Remove the specified resource from storage.