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

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