Code Duplication    Length = 11-11 lines in 2 locations

docker/mu-plugins/jetpack-debug-helper/modules/class-jetpack-sync-debug-helper.php 2 locations

@@ 84-94 (lines=11) @@
81
	 * @return array
82
	 */
83
	public static function store_sync_error( $data, $codec_name, $sent_timestamp, $queue_id ) {
84
		if ( isset( $data['error_code'] ) && ! self::$saved_error ) {
85
			update_option(
86
				self::LAST_SYNC_ERROR,
87
				array(
88
					'error_code' => $data['error_code'],
89
					'queue'      => $queue_id,
90
					'timestamp'  => $sent_timestamp,
91
					'codec'      => $codec_name,
92
				)
93
			);
94
		}
95
		if ( empty( $data ) && ! self::$saved_error ) {
96
			update_option(
97
				self::LAST_SYNC_ERROR,
@@ 95-105 (lines=11) @@
92
				)
93
			);
94
		}
95
		if ( empty( $data ) && ! self::$saved_error ) {
96
			update_option(
97
				self::LAST_SYNC_ERROR,
98
				array(
99
					'error_code' => 'empty',
100
					'queue'      => $queue_id,
101
					'timestamp'  => $sent_timestamp,
102
					'codec'      => $codec_name,
103
				)
104
			);
105
		}
106
		return $data;
107
	}
108