Code Duplication    Length = 3-3 lines in 2 locations

src/components/points/admin/includes/ajax.php 2 locations

@@ 205-207 (lines=3) @@
202
203
			// - We are deleting a hook instance.
204
205
			if ( false === $hook ) {
206
				wp_die( '<p>' . esc_html( $error ) . '</p>', '', array( 'response' => 400 ) );
207
			}
208
209
			$hook->delete_callback( $number );
210
@@ 240-242 (lines=3) @@
237
238
			// - We are updating the settings for an instance of a hook.
239
240
			if ( false === $hook ) {
241
				wp_die( '<p>' . esc_html( $error ) . '</p>', '', array( 'response' => 400 ) );
242
			}
243
244
			$new_instance = ( ! empty( $settings ) ) ? reset( $settings ) : array();
245