Code Duplication    Length = 9-9 lines in 2 locations

core/Container/Network_Container.php 1 location

@@ 41-49 (lines=9) @@
38
		}
39
	}
40
	
41
	public function render() {
42
		$input = stripslashes_deep( $_GET );
43
		$request_settings_updated = isset( $input['settings-updated'] ) ? $input['settings-updated'] : '';
44
		if ( $request_settings_updated === 'true' ) {
45
			$this->notifications[] = __( 'Settings saved.', 'carbon-fields' );
46
		}
47
48
		include \Carbon_Fields\DIR . '/templates/Container/network.php';
49
	}
50
51
	public function set_site_id( $id ) {
52
		if( !function_exists( 'get_blog_status' ) ) {

core/Container/Theme_Options_Container.php 1 location

@@ 203-211 (lines=9) @@
200
	/**
201
	 * Output the container markup
202
	 */
203
	public function render() {
204
		$input = stripslashes_deep( $_GET );
205
		$request_settings_updated = isset( $input['settings-updated'] ) ? $input['settings-updated'] : '';
206
		if ( $request_settings_updated === 'true' ) {
207
			$this->notifications[] = __( 'Settings saved.', 'carbon-fields' );
208
		}
209
210
		include \Carbon_Fields\DIR . '/templates/Container/theme_options.php';
211
	}
212
213
	/**
214
	 * Register the page while making sure it is unique.