Code Duplication    Length = 3-5 lines in 2 locations

packages/sync/src/class-health.php 2 locations

@@ 93-95 (lines=3) @@
90
	public static function get_status() {
91
		$status = \Jetpack_Options::get_option( self::STATUS_OPTION );
92
93
		if ( false === $status || ! is_array( $status ) || empty( $status[ self::OPTION_STATUS_KEY ] ) ) {
94
			return self::STATUS_UNKNOWN;
95
		}
96
97
		switch ( $status[ self::OPTION_STATUS_KEY ] ) {
98
			case self::STATUS_DISABLED:
@@ 171-175 (lines=5) @@
168
	public static function is_status_defined() {
169
		$status = \Jetpack_Options::get_option( self::STATUS_OPTION );
170
171
		if ( false === $status || ! is_array( $status ) || empty( $status[ self::OPTION_STATUS_KEY ] ) ) {
172
			return false;
173
		} else {
174
			return true;
175
		}
176
	}
177
178
	/**