Code Duplication    Length = 4-4 lines in 2 locations

admin/controller/AdminArticle.php 2 locations

@@ 126-129 (lines=4) @@
123
		public function setAddArticle($title, $categories, $article, $state) {
124
			$dbc = App::getDb();
125
			
126
			if ($this->getTestTitle($title) == false || $this->getTestArticle($article) == false) {
127
				FlashMessage::setFlash($this->error_title.$this->error_article);
128
				return false;
129
			}
130
			
131
			$dbc->insert("title", $title)
132
				->insert("url", ChaineCaractere::setUrl($title))
@@ 156-159 (lines=4) @@
153
		public function setEditArticle($title, $categories, $article, $state, $id_article) {
154
			$dbc = App::getDb();
155
			
156
			if ($this->getTestTitle($title) == false || $this->getTestArticle($article) == false) {
157
				FlashMessage::setFlash($this->error_title.$this->error_article);
158
				return false;
159
			}
160
			
161
			if ($this->getTestArticleExist($id_article) == false) {
162
				FlashMessage::setFlash("votre article n'existe pas");