Code Duplication    Length = 9-10 lines in 2 locations

app/src/Users/UsersController.php 2 locations

@@ 214-223 (lines=10) @@
211
     *
212
     * @return void
213
     */
214
    public function listadminAction()
215
    {
216
        $all = $this->users->findAll();
217
218
        $this->theme->setTitle("List all users");
219
        $this->views->add('users/list-admin', [
220
            'users' => $all,
221
            'title' => "Administrate all users",
222
        ]);
223
    }
224
    /**
225
     * List user with acronym.
226
     *
@@ 248-256 (lines=9) @@
245
     *
246
     * @return void
247
     */
248
    public function idAction($id = null)
249
    {
250
        $user = $this->users->find($id);
251
252
        $this->theme->setTitle("View user with id");
253
        $this->views->add('users/view', [
254
            'user' => $user,
255
        ]);
256
    }
257
    /**
258
     * Display user as card.
259
     *