Code Duplication    Length = 7-7 lines in 2 locations

ecrire/iterateur/data.php 2 locations

@@ 398-404 (lines=7) @@
395
	 **/
396
	protected function select_liste() {
397
		# s'il n'y a qu'une valeur dans la liste, sans doute une #BALISE
398
		if (!isset($this->command['liste'][1])) {
399
			if (!is_array($this->command['liste'][0])) {
400
				$this->command['liste'] = explode(',', $this->command['liste'][0]);
401
			} else {
402
				$this->command['liste'] = $this->command['liste'][0];
403
			}
404
		}
405
		$this->tableau = $this->command['liste'];
406
	}
407
@@ 415-421 (lines=7) @@
412
	 **/
413
	protected function select_enum() {
414
		# s'il n'y a qu'une valeur dans la liste, sans doute une #BALISE
415
		if (!isset($this->command['enum'][1])) {
416
			if (!is_array($this->command['enum'][0])) {
417
				$this->command['enum'] = explode(',', $this->command['enum'][0]);
418
			} else {
419
				$this->command['enum'] = $this->command['enum'][0];
420
			}
421
		}
422
		if (count($this->command['enum']) >= 3) {
423
			$enum = range(array_shift($this->command['enum']), array_shift($this->command['enum']),
424
				array_shift($this->command['enum']));