Code Duplication    Length = 9-9 lines in 4 locations

modules/homes-com/widgets/class-homes-com-widgets.php 1 location

@@ 68-76 (lines=9) @@
65
		 * @param string $widget_name (default: '').
66
		 * @return string class name.
67
		 */
68
		public function homes_iframe_class( $widget_name = '' ) {
69
70
			if ( '' !== $widget_name ) {
71
				return 'homes homes-iframe homes-' . sanitize_html_class( $widget_name ) . '-iframe';
72
			} else {
73
				return 'homes homes-iframe';
74
			}
75
76
		}
77
78
		/* Homes WIDGETS. */
79

modules/nar/widgets/class-nar-widgets.php 1 location

@@ 45-53 (lines=9) @@
42
		 * @param string $widget_name (default: '')
43
		 * @return void
44
		 */
45
		public function nar_iframe_class( $widget_name = '' ) {
46
47
			if ( '' !== $widget_name ) {
48
				return 'nar nar-iframe nar-' . sanitize_html_class( $widget_name ) . '-iframe';
49
			} else {
50
				return 'nar nar-iframe';
51
			}
52
53
		}
54
55
		/**
56
		 * get_mvp_program_widget function.

modules/trulia/widgets/class-trulia-widgets.php 1 location

@@ 66-74 (lines=9) @@
63
		 * @param string $widget_name (default: '')
64
		 * @return void
65
		 */
66
		public function trulia_iframe_class( $widget_name = '' ) {
67
68
			if( '' !== $widget_name ) {
69
				return 'trulia trulia-iframe trulia-' . sanitize_html_class( $widget_name ) . '-iframe';
70
			} else {
71
				return 'trulia-iframe';
72
			}
73
74
		}
75
76
		/**
77
		 * get_community_advice_widget function.

modules/zillow/widgets/class-zillow-widgets.php 1 location

@@ 66-74 (lines=9) @@
63
		 * @param string $widget_name (default: '')
64
		 * @return void
65
		 */
66
		public function zillow_iframe_class( $widget_name = '' ) {
67
68
			if( '' !== $widget_name ) {
69
				return 'zillow zillow-iframe zillow-' . sanitize_html_class( $widget_name ) . '-iframe';
70
			} else {
71
				return 'zillow zillow-iframe';
72
			}
73
74
		}
75
76
		/* YOU ON ZILLOW WIDGETS. */
77