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:
@@ 165-169 (lines=5) @@
162
	public static function is_status_defined() {
163
		$status = \Jetpack_Options::get_option( self::STATUS_OPTION );
164
165
		if ( false === $status || ! is_array( $status ) || empty( $status[ self::OPTION_STATUS_KEY ] ) ) {
166
			return false;
167
		} else {
168
			return true;
169
		}
170
	}
171
172
	/**