Code Duplication    Length = 6-6 lines in 2 locations

projects/plugins/jetpack/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;

projects/plugins/jetpack/modules/shortcodes/recipe.php 1 location

@@ 93-98 (lines=6) @@
90
			return;
91
		}
92
93
		foreach ( $GLOBALS['posts'] as $p ) {
94
			if ( has_shortcode( $p->post_content, 'recipe' ) ) {
95
				$this->scripts_and_style_included = true;
96
				break;
97
			}
98
		}
99
100
		if ( ! $this->scripts_and_style_included ) {
101
			return;