Code Duplication    Length = 9-10 lines in 2 locations

app/src/Users/UsersController.php 2 locations

@@ 40-49 (lines=10) @@
37
     *
38
     * @return void
39
     */
40
    public function listAction()
41
    {
42
        $all = $this->users->findAll();
43
44
        $this->theme->setTitle("List all users");
45
        $this->views->add('users/list-all', [
46
            'users' => $all,
47
            'title' => "View all users",
48
        ]);
49
    }
50
    /**
51
     * List user with acronym.
52
     *
@@ 74-82 (lines=9) @@
71
     *
72
     * @return void
73
     */
74
    public function idAction($id = null)
75
    {
76
        $user = $this->users->find($id);
77
78
        $this->theme->setTitle("View user with id");
79
        $this->views->add('users/view', [
80
            'user' => $user,
81
        ]);
82
    }
83
    /**
84
     * Add new user.
85
     *