Code Duplication    Length = 4-4 lines in 2 locations

admin/controller/AdminArticle.php 2 locations

@@ 172-175 (lines=4) @@
169
		public function setAddArticle($title, $categories, $article, $state) {
170
			$dbc = App::getDb();
171
			
172
			if ($this->getTestTitle($title) == false || $this->getTestArticle($article) == false) {
173
				FlashMessage::setFlash($this->error_title.$this->error_article);
174
				return false;
175
			}
176
			
177
			$this->setImageArticle($title);
178
			
@@ 204-207 (lines=4) @@
201
		public function setEditArticle($title, $categories, $article, $state, $id_article) {
202
			$dbc = App::getDb();
203
			
204
			if ($this->getTestTitle($title, $id_article) == false || $this->getTestArticle($article) == false) {
205
				FlashMessage::setFlash($this->error_title.$this->error_article);
206
				return false;
207
			}
208
			
209
			if ($this->getTestArticleExist($id_article) == false) {
210
				FlashMessage::setFlash("votre article n'existe pas");