Code Duplication    Length = 9-10 lines in 2 locations

app/Http/Controllers/AccountController.php 2 locations

@@ 206-214 (lines=9) @@
203
     * @param  int  $id
204
     * @return Response
205
     */
206
    public function disableAccount($id)
207
    {
208
        $account = Account::findOrFail($id);
209
        $account->disable();
210
        return redirect()->back()->with(
211
            'status',
212
            trans('accounts.message.disable', ['account' => $account->netlogin])
213
        );
214
    }
215
216
    /**
217
     * Remove an account.
@@ 222-231 (lines=10) @@
219
     * @param  int  $id
220
     * @return Response
221
     */
222
    public function removeAccount($id)
223
    {
224
        $account = Account::findOrFail($id);
225
        $netlogin = $account->netlogin;
226
        $account->delete();
227
        return redirect()->back()->with(
228
            'status',
229
            trans('accounts.message.delete', ['account' => $netlogin])
230
        );
231
    }
232
}
233