Code Duplication    Length = 3-3 lines in 2 locations

modules/shortcodes/tweet.php 1 location

@@ 132-134 (lines=3) @@
129
130
				// align (float).
131
				$extra_classes = '';
132
				if ( in_array( $attr['align'], array( 'left', 'right', 'center' ), true ) ) {
133
					$extra_classes = ' tw-align-' . $attr['align'];
134
				}
135
136
				if ( 'true' === $attr['hide_thread'] ) {
137
					$extra_classes .= ' tw-hide-thread';

extensions/blocks/wordads/wordads.php 1 location

@@ 95-97 (lines=3) @@
92
		// 6 is to keep track of gutenblock ads.
93
		$section_id = $wordads->params->blog_id . '6';
94
		$align      = 'center';
95
		if ( isset( $attr['align'] ) && in_array( $attr['align'], array( 'left', 'center', 'right' ), true ) ) {
96
			$align = $attr['align'];
97
		}
98
		$align = 'align' . $align;
99
100
		$ad_tag_ids = $wordads->get_ad_tags();