Code Duplication    Length = 5-5 lines in 2 locations

includes/class-give-scripts.php 2 locations

@@ 387-391 (lines=5) @@
384
		 * d. Finally, fallback to the standard Give version. This is the default styles included within the plugin.
385
		 */
386
		if ( file_exists( $child_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $child_theme_style_sheet_2 ) ) ) ) {
387
			if ( ! empty( $nonmin ) ) {
388
				$uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . 'give' . $this->direction . '.css';
389
			} else {
390
				$uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . $file;
391
			}
392
		} elseif ( file_exists( $parent_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $parent_theme_style_sheet_2 ) ) ) ) {
393
			if ( ! empty( $nonmin ) ) {
394
				$uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . 'give' . $this->direction . '.css';
@@ 393-397 (lines=5) @@
390
				$uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . $file;
391
			}
392
		} elseif ( file_exists( $parent_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $parent_theme_style_sheet_2 ) ) ) ) {
393
			if ( ! empty( $nonmin ) ) {
394
				$uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . 'give' . $this->direction . '.css';
395
			} else {
396
				$uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . $file;
397
			}
398
		} elseif ( file_exists( $give_plugin_style_sheet ) ) {
399
			$uri = trailingslashit( GIVE_PLUGIN_URL ) . 'assets/dist/css/' . $file;
400
		}