Code Duplication    Length = 7-7 lines in 2 locations

classes/salesforce_mapping.php 2 locations

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