Code Duplication    Length = 6-6 lines in 2 locations

modules/shortcodes/presentations.php 1 location

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

modules/shortcodes/recipe.php 1 location

@@ 31-36 (lines=6) @@
28
			return;
29
		}
30
31
		foreach ( $GLOBALS['posts'] as $p ) {
32
			if ( has_shortcode( $p->post_content, 'recipe' ) ) {
33
				$this->scripts_and_style_included = true;
34
				break;
35
			}
36
		}
37
38
		if ( ! $this->scripts_and_style_included ) {
39
			return;