Code Duplication    Length = 5-5 lines in 2 locations

packages/options/legacy/class.jetpack-options.php 2 locations

@@ 125-129 (lines=5) @@
122
			return empty( $result );
123
		}
124
125
		if ( is_null( $group ) || 'non_compact' === $group ) {
126
			if ( in_array( $name, self::get_option_names( $group ) ) ) {
127
				return true;
128
			}
129
		}
130
131
		foreach ( array_keys( self::$grouped_options ) as $_group ) {
132
			if ( is_null( $group ) || $group === $_group ) {
@@ 132-136 (lines=5) @@
129
		}
130
131
		foreach ( array_keys( self::$grouped_options ) as $_group ) {
132
			if ( is_null( $group ) || $group === $_group ) {
133
				if ( in_array( $name, self::get_option_names( $_group ) ) ) {
134
					return true;
135
				}
136
			}
137
		}
138
139
		return false;