Code Duplication    Length = 9-9 lines in 2 locations

packages/connection/legacy/class.jetpack-xmlrpc-server.php 2 locations

@@ 794-802 (lines=9) @@
791
	 *
792
	 * @return array
793
	 */
794
	public function features_available() {
795
		$raw_modules = Jetpack::get_available_modules();
796
		$modules     = array();
797
		foreach ( $raw_modules as $module ) {
798
			$modules[] = Jetpack::get_module_slug( $module );
799
		}
800
801
		return $modules;
802
	}
803
804
	/**
805
	 * Returns what features are enabled. Uses the slug of the modules files.
@@ 809-817 (lines=9) @@
806
	 *
807
	 * @return array
808
	 */
809
	public function features_enabled() {
810
		$raw_modules = Jetpack::get_active_modules();
811
		$modules     = array();
812
		foreach ( $raw_modules as $module ) {
813
			$modules[] = Jetpack::get_module_slug( $module );
814
		}
815
816
		return $modules;
817
	}
818
819
	/**
820
	 * Updates the attachment parent object.