Code Duplication    Length = 9-9 lines in 4 locations

src/User/UserController.php 4 locations

@@ 57-65 (lines=9) @@
54
     *
55
     * @return void
56
     */
57
    public function getIndex()
58
    {
59
        $title      = "A index page";
60
        $data = [
61
            "content" => "An index page",
62
        ];
63
        $this->view->add("default2/article", $data);
64
        $this->pageRender->renderPage(["title" => $title]);
65
    }
66
67
68
    /**
@@ 77-85 (lines=9) @@
74
     *
75
     * @return void
76
     */
77
    public function getLogin()
78
    {
79
        $title      = "A login page";
80
        $data = [
81
            "message" => "",
82
        ];
83
        $this->view->add("user/crud/login", $data);
84
        $this->pageRender->renderPage(["title" => $title]);
85
    }
86
87
88
    /**
@@ 97-105 (lines=9) @@
94
     *
95
     * @return void
96
     */
97
    public function getCreateUser($message = null)
98
    {
99
        $title      = "A create user page";
100
        $data = [
101
            "message" => $message,
102
        ];
103
        $this->view->add("user/crud/create", $data);
104
        $this->pageRender->renderPage(["title" => $title]);
105
    }
106
107
108
    /**
@@ 385-393 (lines=9) @@
382
     *
383
     * @return void
384
     */
385
    public function getAdminCreateUser($message = null)
386
    {
387
        $title      = "Admin create user page";
388
        $data = [
389
            "message" => $message,
390
        ];
391
        $this->view->add("user/admin/create", $data);
392
        $this->pageRender->renderPage(["title" => $title]);
393
    }
394
395
396
    /**