Code Duplication    Length = 7-7 lines in 2 locations

classes/salesforce_mapping.php 2 locations

@@ 666-672 (lines=7) @@
663
	 * @return SalesforceMappingObject
664
	 *   The requested SalesforceMappingObject or FALSE if none was found.
665
	 */
666
	public function load_all_by_wordpress( $object_type, $object_id, $reset = false ) {
667
		$conditions = array(
668
			'wordpress_id'     => $object_id,
669
			'wordpress_object' => $object_type,
670
		);
671
		return $this->get_all_object_maps( $conditions, $reset );
672
	}
673
674
	/**
675
	 * Returns one or more Salesforce object mappings for a given WordPress object.
@@ 685-691 (lines=7) @@
682
	 * @return SalesforceMappingObject
683
	 *   The requested SalesforceMappingObject or FALSE if none was found.
684
	 */
685
	public function load_by_wordpress( $object_type, $object_id, $reset = false ) {
686
		$conditions = array(
687
			'wordpress_id'     => $object_id,
688
			'wordpress_object' => $object_type,
689
		);
690
		return $this->get_object_maps( $conditions, $reset );
691
	}
692
693
	/**
694
	 * Returns Salesforce object mappings for a given Salesforce object.