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

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