Code Duplication    Length = 8-8 lines in 2 locations

extensions/blocks/homepage-articles/class-newspack-blocks.php 2 locations

@@ 91-98 (lines=8) @@
88
	 */
89
	public static function enqueue_block_styles_assets() {
90
		$style_path = NEWSPACK_BLOCKS__BLOCKS_DIRECTORY . 'block_styles' . ( is_rtl() ? '.rtl' : '' ) . '.css';
91
		if ( file_exists( NEWSPACK_BLOCKS__PLUGIN_DIR . $style_path ) ) {
92
			wp_enqueue_style(
93
				'newspack-blocks-block-styles-stylesheet',
94
				plugins_url( $style_path, __FILE__ ),
95
				array(),
96
				NEWSPACK_BLOCKS__VERSION
97
			);
98
		}
99
	}
100
101
	/**
@@ 114-121 (lines=8) @@
111
			is_rtl()
112
		);
113
114
		if ( file_exists( NEWSPACK_BLOCKS__PLUGIN_DIR . $style_path ) ) {
115
			wp_enqueue_style(
116
				"newspack-blocks-{$type}",
117
				plugins_url( $style_path, __FILE__ ),
118
				array(),
119
				NEWSPACK_BLOCKS__VERSION
120
			);
121
		}
122
		if ( static::is_amp() ) {
123
			return;
124
		}