Code Duplication    Length = 5-5 lines in 2 locations

includes/class-give-scripts.php 2 locations

@@ 491-495 (lines=5) @@
488
		 * d. Finally, fallback to the standard Give version. This is the default styles included within the plugin.
489
		 */
490
		if ( file_exists( $child_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $child_theme_style_sheet_2 ) ) ) ) {
491
			if ( ! empty( $nonmin ) ) {
492
				$uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . 'give' . $this->direction . '.css';
493
			} else {
494
				$uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . $file;
495
			}
496
		} elseif ( file_exists( $parent_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $parent_theme_style_sheet_2 ) ) ) ) {
497
			if ( ! empty( $nonmin ) ) {
498
				$uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . 'give' . $this->direction . '.css';
@@ 497-501 (lines=5) @@
494
				$uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . $file;
495
			}
496
		} elseif ( file_exists( $parent_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $parent_theme_style_sheet_2 ) ) ) ) {
497
			if ( ! empty( $nonmin ) ) {
498
				$uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . 'give' . $this->direction . '.css';
499
			} else {
500
				$uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . $file;
501
			}
502
		} elseif ( file_exists( $give_plugin_style_sheet ) ) {
503
			$uri = trailingslashit( GIVE_PLUGIN_URL ) . 'assets/dist/css/' . $file;
504
		}