Code Duplication    Length = 9-9 lines in 2 locations

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.

core/Container/Network_Container.php 1 location

@@ 48-56 (lines=9) @@
45
	/**
46
	 * {@inheritDoc}
47
	 */
48
	public function render() {
49
		$input = stripslashes_deep( $_GET );
50
		$request_settings_updated = isset( $input['settings-updated'] ) ? $input['settings-updated'] : '';
51
		if ( $request_settings_updated === 'true' ) {
52
			$this->notifications[] = __( 'Settings saved.', 'carbon-fields' );
53
		}
54
55
		include \Carbon_Fields\DIR . '/templates/Container/network.php';
56
	}
57
58
	/**
59
	 * Check if a site exists by id