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

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