Code Duplication    Length = 12-12 lines in 2 locations

packages/connection/src/class-error-handler.php 2 locations

@@ 405-416 (lines=12) @@
402
	 *
403
	 * @return array $errors
404
	 */
405
	public function get_stored_errors() {
406
407
		$stored_errors = get_option( self::STORED_ERRORS_OPTION );
408
409
		if ( ! is_array( $stored_errors ) ) {
410
			$stored_errors = array();
411
		}
412
413
		$stored_errors = $this->garbage_collector( $stored_errors );
414
415
		return $stored_errors;
416
	}
417
418
	/**
419
	 * Gets the verified errors stored in the database
@@ 425-436 (lines=12) @@
422
	 *
423
	 * @return array $errors
424
	 */
425
	public function get_verified_errors() {
426
427
		$verified_errors = get_option( self::STORED_VERIFIED_ERRORS_OPTION );
428
429
		if ( ! is_array( $verified_errors ) ) {
430
			$verified_errors = array();
431
		}
432
433
		$verified_errors = $this->garbage_collector( $verified_errors );
434
435
		return $verified_errors;
436
	}
437
438
	/**
439
	 * Removes expired errors from the array