Code Duplication    Length = 10-10 lines in 2 locations

classes/class-wetu-importer.php 2 locations

@@ 612-621 (lines=10) @@
609
	 * @param $needle string
610
	 * @param $echo bool
611
	 */
612
	public function checked( $haystack = false, $needle = '', $echo = true ) {
613
		$return = $this->itemd( $haystack,$needle, 'checked' );
614
615
		if ( '' !== $return ) {
616
			if ( true === $echo ) {
617
				// @codingStandardsIgnoreLine
618
				echo $return;
619
			} else {
620
				return $return;
621
			}
622
		}
623
	}
624
@@ 632-641 (lines=10) @@
629
	 * @param $needle string
630
	 * @param $echo bool
631
	 */
632
	public function selected( $haystack = false, $needle = '', $echo = true ) {
633
		$return = $this->itemd( $haystack,$needle,'selected' );
634
635
		if ( '' !== $return ) {
636
			if ( true === $echo ) {
637
				// @codingStandardsIgnoreLine
638
				echo $return;
639
			} else {
640
				return $return;
641
			}
642
		}
643
	}
644