Code Duplication    Length = 15-15 lines in 2 locations

src/Page/PageController.php 1 location

@@ 85-99 (lines=15) @@
82
	 *
83
	 * @return void
84
	 */
85
	public function addAction()
86
	{
87
		
88
		$form = new \Anax\Page\CFormAddPage();
89
        $form->setDI($this->di);
90
		
91
		// Check the status of the form
92
        $form->check();
93
	 
94
		$this->di->theme->setTitle("Add page");
95
        $this->di->views->add('default/page', [
96
            'title' => "Add a page",
97
            'content' => $form->getHTML()
98
        ]);
99
	}
100
	
101
	/**
102
	 * Edit a page.

src/Blog/BlogController.php 1 location

@@ 90-104 (lines=15) @@
87
	 *
88
	 * @return void
89
	 */
90
	public function addAction()
91
	{
92
		
93
		$form = new \Anax\Blog\CFormAddPost();
94
        $form->setDI($this->di);
95
		
96
		// Check the status of the form
97
        $form->check();
98
	 
99
		$this->di->theme->setTitle("Add blogpost");
100
        $this->di->views->add('default/page', [
101
            'title' => "Add a blogpost",
102
            'content' => $form->getHTML()
103
        ]);
104
	}
105
	
106
	/**
107
	 * Edit a blogpost.