Code Duplication    Length = 9-9 lines in 2 locations

includes/admin/notices.php 2 locations

@@ 157-165 (lines=9) @@
154
	 *
155
	 * @return void
156
	 */
157
	public function show_notice( $notice ) {
158
159
		$notices = $this->get_notices();
160
161
		if ( isset( $notices[ $notice ]->visible ) ) {
162
			$notices[ $notice ]->visible = true;
163
			update_option( 'simple-calendar_admin_notices', $notices );
164
		}
165
	}
166
167
	/**
168
	 * Hide a notice.
@@ 176-184 (lines=9) @@
173
	 *
174
	 * @return void
175
	 */
176
	public function hide_notice( $notice ) {
177
178
		$notices = $this->get_notices();
179
180
		if ( isset( $notices[ $notice ]->visible ) ) {
181
			$notices[ $notice ]->visible = false;
182
			update_option( 'simple-calendar_admin_notices', $notices );
183
		}
184
	}
185
186
	/**
187
	 * Get current notices.