Code Duplication    Length = 6-6 lines in 2 locations

modules/shortcodes/presentations.php 1 location

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

modules/shortcodes/recipe.php 1 location

@@ 103-108 (lines=6) @@
100
			return;
101
		}
102
103
		foreach ( $GLOBALS['posts'] as $p ) {
104
			if ( has_shortcode( $p->post_content, 'recipe' ) ) {
105
				$this->scripts_and_style_included = true;
106
				break;
107
			}
108
		}
109
110
		if ( ! $this->scripts_and_style_included ) {
111
			return;