Code Duplication    Length = 5-5 lines in 2 locations

includes/class-give-scripts.php 2 locations

@@ 504-508 (lines=5) @@
501
		 * d. Finally, fallback to the standard Give version. This is the default styles included within the plugin.
502
		 */
503
		if ( file_exists( $child_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $child_theme_style_sheet_2 ) ) ) ) {
504
			if ( ! empty( $nonmin ) ) {
505
				$uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . 'give' . $this->direction . '.css';
506
			} else {
507
				$uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . $file;
508
			}
509
		} elseif ( file_exists( $parent_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $parent_theme_style_sheet_2 ) ) ) ) {
510
			if ( ! empty( $nonmin ) ) {
511
				$uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . 'give' . $this->direction . '.css';
@@ 510-514 (lines=5) @@
507
				$uri = trailingslashit( get_stylesheet_directory_uri() ) . $templates_dir . $file;
508
			}
509
		} elseif ( file_exists( $parent_theme_style_sheet ) || ( ! empty( $suffix ) && ( $nonmin = file_exists( $parent_theme_style_sheet_2 ) ) ) ) {
510
			if ( ! empty( $nonmin ) ) {
511
				$uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . 'give' . $this->direction . '.css';
512
			} else {
513
				$uri = trailingslashit( get_template_directory_uri() ) . $templates_dir . $file;
514
			}
515
		} elseif ( file_exists( $give_plugin_style_sheet ) ) {
516
			$uri = trailingslashit( GIVE_PLUGIN_URL ) . 'assets/dist/css/' . $file;
517
		}