Code Duplication    Length = 7-10 lines in 2 locations

app/Http/Controllers/AccountController.php 2 locations

@@ 339-348 (lines=10) @@
336
337
338
339
    public function destroy($id)
340
    {
341
        $user = User::findWithPermission($id);
342
343
        //No one will ever leaves the system but we can at least update their status to left.
344
        $user->setLeaving();
345
346
        \Notification::success('Updated status to leaving');
347
        return \Redirect::route('account.show', [$user->id]);
348
    }
349
350
351
    public function rejoin($id)
@@ 351-357 (lines=7) @@
348
    }
349
350
351
    public function rejoin($id)
352
    {
353
        $user = User::findWithPermission($id);
354
        $user->rejoin();
355
        \Notification::success('Details Updated');
356
        return \Redirect::route('account.show', [$user->id]);
357
    }
358
359
    public function updateSubscriptionAmount($id)
360
    {