Code Duplication    Length = 7-7 lines in 3 locations

classes/salesforce.php 3 locations

@@ 870-876 (lines=7) @@
867
	*
868
	* part of core API calls
869
	*/
870
	public function object_create( $name, $params ) {
871
		$options = array(
872
			'type' => 'write',
873
		);
874
		$result  = $this->api_call( "sobjects/{$name}", $params, 'POST', $options );
875
		return $result;
876
	}
877
878
	/**
879
	* Create new records or update existing records.
@@ 949-955 (lines=7) @@
946
	*   cached:
947
	*   is_redo:
948
	*/
949
	public function object_update( $name, $id, $params ) {
950
		$options = array(
951
			'type' => 'write',
952
		);
953
		$result  = $this->api_call( "sobjects/{$name}/{$id}", $params, 'PATCH', $options );
954
		return $result;
955
	}
956
957
	/**
958
	* Return a full loaded Salesforce object.
@@ 1133-1139 (lines=7) @@
1130
	*
1131
	* part of core API calls
1132
	*/
1133
	public function object_delete( $name, $id ) {
1134
		$options = array(
1135
			'type' => 'write',
1136
		);
1137
		$result  = $this->api_call( "sobjects/{$name}/{$id}", array(), 'DELETE', $options );
1138
		return $result;
1139
	}
1140
1141
	/**
1142
	* Retrieves the list of individual objects that have been deleted within the