Code Duplication    Length = 8-8 lines in 2 locations

projects/plugins/jetpack/extensions/blocks/revue/revue.php 1 location

@@ 219-226 (lines=8) @@
216
	} elseif ( $has_custom_gradient ) {
217
		$styles[] = sprintf( 'background: %s;', $attributes['customGradient'] );
218
	}
219
	if (
220
		$has_custom_background_color &&
221
		! $has_named_background_color &&
222
		! $has_named_gradient &&
223
		! $has_custom_gradient
224
	) {
225
		$styles[] = sprintf( 'background-color: %s;', $attributes['customBackgroundColor'] );
226
	}
227
228
	if ( $has_border_radius ) {
229
		// phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison

projects/plugins/jetpack/extensions/blocks/button/button.php 1 location

@@ 163-170 (lines=8) @@
160
		$styles[] = sprintf( 'background: %s;', $attributes['customGradient'] );
161
	}
162
163
	if (
164
		$has_custom_background_color &&
165
		! $has_named_background_color &&
166
		! $has_named_gradient &&
167
		! $has_custom_gradient
168
	) {
169
		$styles[] = sprintf( 'background-color: %s;', $attributes['customBackgroundColor'] );
170
	}
171
172
	// phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison
173
	if ( $has_border_radius && 0 != $attributes['borderRadius'] ) {