Code Duplication    Length = 6-6 lines in 2 locations

modules/shortcodes/presentations.php 1 location

@@ 108-113 (lines=6) @@
105
				return;
106
			}
107
108
			foreach ( $GLOBALS['posts'] as $p ) {
109
				if ( has_shortcode( $p->post_content, 'presentation' ) ) {
110
					$this->scripts_and_style_included = true;
111
					break;
112
				}
113
			}
114
115
			if ( ! $this->scripts_and_style_included ) {
116
				return;

modules/shortcodes/recipe.php 1 location

@@ 83-88 (lines=6) @@
80
			return;
81
		}
82
83
		foreach ( $GLOBALS['posts'] as $p ) {
84
			if ( has_shortcode( $p->post_content, 'recipe' ) ) {
85
				$this->scripts_and_style_included = true;
86
				break;
87
			}
88
		}
89
90
		if ( ! $this->scripts_and_style_included ) {
91
			return;