Code Duplication    Length = 9-9 lines in 2 locations

vendor/developerforce/force.com-toolkit-for-php/soapclient/SforceBaseClient.php 2 locations

@@ 804-812 (lines=9) @@
801
	 * @param QueryOptions $queryOptions  Batch size limit.  OPTIONAL
802
	 * @return QueryResult
803
	 */
804
	public function query($query) {
805
		$this->setHeaders("query");
806
		$raw = $this->sforce->query(array (
807
					  'queryString' => $query
808
		))->result;
809
		$QueryResult = new QueryResult($raw);
810
		$QueryResult->setSf($this); // Dependency Injection
811
		return $QueryResult;
812
	}
813
814
	/**
815
	 * Retrieves the next batch of objects from a query.
@@ 838-846 (lines=9) @@
835
	 * @param QueryOptions $queryOptions  Batch size limit.  OPTIONAL
836
	 * @return QueryResult
837
	 */
838
	public function queryAll($query, $queryOptions = NULL) {
839
		$this->setHeaders("queryAll");
840
		$raw = $this->sforce->queryAll(array (
841
						'queryString' => $query
842
		))->result;
843
		$QueryResult = new QueryResult($raw);
844
		$QueryResult->setSf($this); // Dependency Injection
845
		return $QueryResult;
846
	}
847
848
849
	/**