Code Duplication    Length = 5-5 lines in 2 locations

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

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