Code Duplication    Length = 3-5 lines in 2 locations

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

@@ 95-97 (lines=3) @@
92
	public static function get_status() {
93
		$status = \Jetpack_Options::get_option( self::STATUS_OPTION );
94
95
		if ( false === $status || ! is_array( $status ) || empty( $status[ self::OPTION_STATUS_KEY ] ) ) {
96
			return self::STATUS_UNKNOWN;
97
		}
98
99
		switch ( $status[ self::OPTION_STATUS_KEY ] ) {
100
			case self::STATUS_DISABLED:
@@ 158-162 (lines=5) @@
155
	public static function is_status_defined() {
156
		$status = \Jetpack_Options::get_option( self::STATUS_OPTION );
157
158
		if ( false === $status || ! is_array( $status ) || empty( $status[ self::OPTION_STATUS_KEY ] ) ) {
159
			return false;
160
		} else {
161
			return true;
162
		}
163
	}
164
165
}