Code Duplication    Length = 4-4 lines in 2 locations

modules/contact-form/grunion-editor-view.php 1 location

@@ 18-21 (lines=4) @@
15
	 * @param WP_Screen $screen Data about current screen.
16
	 */
17
	public static function add_hooks( $screen ) {
18
		if ( isset( $screen->base ) && 'post' === $screen->base ) {
19
			add_action( 'admin_notices', array( __CLASS__, 'handle_editor_view_js' ) );
20
			add_action( 'admin_head', array( __CLASS__, 'admin_head' ) );
21
		}
22
	}
23
24
	public static function admin_head() {

modules/shortcodes/wordads.php 1 location

@@ 33-36 (lines=4) @@
30
	 * @param WP_Screen $screen Data about current screen.
31
	 */
32
	public static function add_hooks( $screen ) {
33
		if ( isset( $screen->base ) && 'post' === $screen->base ) {
34
			add_action( 'admin_notices', array( __CLASS__, 'handle_editor_view_js' ) );
35
			add_action( 'admin_head', array( __CLASS__, 'admin_head' ) );
36
		}
37
	}
38
39
	public static function mce_external_plugins( $plugin_array ) {