Code Duplication    Length = 7-7 lines in 2 locations

modules/zillow/widgets/class-mortgage-calc-widget.php 1 location

@@ 52-58 (lines=7) @@
49
		$title = ! empty( $instance['title'] ) ? $instance['title'] : '';
50
		$orientation = ! empty( $instance['orientation'] ) ? $instance['orientation'] : '';
51
52
		if ( 'verticalWidget' === $orientation ) {
53
			$height = '470';
54
			$width = '200';
55
		} else {
56
			$height = '235';
57
			$width = '352';
58
		}
59
60
		echo $args['before_widget'];
61

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

@@ 179-185 (lines=7) @@
176
		 */
177
		public function get_mortgage_calc_widget( $iframe_id = '', $orientation = 'verticalWidget' ) {
178
179
			if ( 'verticalWidget' === $orientation ) {
180
				$height = '470';
181
				$width = '200';
182
			} else {
183
				$height = '235';
184
				$width = '352';
185
			}
186
187
			echo '<iframe id="'. $this->zillow_iframe_id( $iframe_id ) .'" class="'. $this->zillow_iframe_class( 'mortgage-calc' ) .'" scrolling="no" title="'. __( 'Zillow Mortgage Calculator', 're-rpo' ) .'" src="https://www.zillow.com/mortgage/SmallMortgageLoanCalculatorWidget.htm?widgetOrientationType='. $orientation .'" width="'. $width .'" height="'. $height .'" frameborder="0" style="width:100%;"></iframe>';
188