Code Duplication    Length = 4-4 lines in 2 locations

admin/controller/AdminArticle.php 2 locations

@@ 180-183 (lines=4) @@
177
		public function setAddArticle($title, $categories, $article, $state) {
178
			$dbc = App::getDb();
179
			
180
			if ($this->getTestTitle($title) === false || $this->getTestArticle($article) === false) {
181
				FlashMessage::setFlash($this->error_title.$this->error_article);
182
				return false;
183
			}
184
			
185
			$this->setImageArticle($title);
186
			
@@ 212-215 (lines=4) @@
209
		public function setEditArticle($title, $categories, $article, $state, $id_article) {
210
			$dbc = App::getDb();
211
			
212
			if ($this->getTestTitle($title, $id_article) === false || $this->getTestArticle($article) === false) {
213
				FlashMessage::setFlash($this->error_title.$this->error_article);
214
				return false;
215
			}
216
			
217
			if ($this->getTestArticleExist($id_article) === false) {
218
				FlashMessage::setFlash("votre article n'existe pas");