Code Duplication    Length = 5-5 lines in 4 locations

packages/options/src/Manager.php 2 locations

@@ 213-217 (lines=5) @@
210
			return empty( $result );
211
		}
212
213
		if ( is_null( $group ) || 'non_compact' === $group ) {
214
			if ( in_array( $name, $this->get_option_names( $group ), true ) ) {
215
				return true;
216
			}
217
		}
218
219
		foreach ( array_keys( $this->grouped_options ) as $_group ) {
220
			if ( is_null( $group ) || $group === $_group ) {
@@ 220-224 (lines=5) @@
217
		}
218
219
		foreach ( array_keys( $this->grouped_options ) as $_group ) {
220
			if ( is_null( $group ) || $group === $_group ) {
221
				if ( in_array( $name, $this->get_option_names( $_group ), true ) ) {
222
					return true;
223
				}
224
			}
225
		}
226
227
		return false;

class.jetpack-options.php 2 locations

@@ 159-163 (lines=5) @@
156
			return empty( $result );
157
		}
158
159
		if ( is_null( $group ) || 'non_compact' === $group ) {
160
			if ( in_array( $name, self::get_option_names( $group ) ) ) {
161
				return true;
162
			}
163
		}
164
165
		foreach ( array_keys( self::$grouped_options ) as $_group ) {
166
			if ( is_null( $group ) || $group === $_group ) {
@@ 166-170 (lines=5) @@
163
		}
164
165
		foreach ( array_keys( self::$grouped_options ) as $_group ) {
166
			if ( is_null( $group ) || $group === $_group ) {
167
				if ( in_array( $name, self::get_option_names( $_group ) ) ) {
168
					return true;
169
				}
170
			}
171
		}
172
173
		return false;