Code Duplication    Length = 7-7 lines in 2 locations

application/models/Site_Model.php 2 locations

@@ 753-759 (lines=7) @@
750
			"p[@class='author']/span|p[@class='author']/abbr",
751
			"p[@class='text_work']/a"
752
		);
753
		if($data) {
754
			$titleData['title'] = trim(html_entity_decode($data['nodes_title']->getAttribute('content')));
755
756
			$titleData['latest_chapter'] = preg_replace('/^projects\/.*?\/(.*?)\/$/', '$1', (string) $data['nodes_chapter']->getAttribute('href'));
757
758
			$titleData['last_updated'] =  date("Y-m-d H:i:s",(int) $data['nodes_latest']->getAttribute('title'));
759
		}
760
761
		return (!empty($titleData) ? $titleData : NULL);
762
	}
@@ 798-804 (lines=7) @@
795
			"",
796
			"404 Page Not Found"
797
		);
798
		if($data) {
799
			$titleData['title'] = trim($data['nodes_title']->textContent);
800
801
			$titleData['latest_chapter'] = preg_replace('/^.*\/([0-9]+)\/$/', '$1', (string) $data['nodes_chapter']->getAttribute('href'));
802
803
			$titleData['last_updated'] =  date("Y-m-d H:i:s", strtotime((string) substr($data['nodes_latest']->getAttribute('title'), 13)));
804
		}
805
806
		return (!empty($titleData) ? $titleData : NULL);
807
	}