Code Duplication    Length = 7-7 lines in 2 locations

classes/stencil/handler.php 2 locations

@@ 376-382 (lines=7) @@
373
	/**
374
	 * Attach hooks to load the wp_head and wp_footer variables
375
	 */
376
	private function hook_wp_header_and_footer() {
377
		/**
378
		 * Add wp_head and wp_footer variable recording
379
		 */
380
		add_action( Stencil_Environment::format_hook( 'pre_display' ), array( $this, 'set_wp_head_footer' ) );
381
		add_action( Stencil_Environment::format_hook( 'pre_fetch' ), array( $this, 'set_wp_head_footer' ) );
382
	}
383
384
	/**
385
	 * Detach hooks to load the wp_head and wp_footer variables
@@ 387-393 (lines=7) @@
384
	/**
385
	 * Detach hooks to load the wp_head and wp_footer variables
386
	 */
387
	private function unhook_wp_header_and_footer() {
388
		/**
389
		 * Add wp_head and wp_footer variable recording
390
		 */
391
		remove_action( Stencil_Environment::format_hook( 'pre_display' ), array( $this, 'set_wp_head_footer' ) );
392
		remove_action( Stencil_Environment::format_hook( 'pre_fetch' ), array( $this, 'set_wp_head_footer' ) );
393
	}
394
}
395