Passed
Pull Request — master (#195)
by Jonathan
06:35
created
unit_test/Lib/Test/Enterprise/AggregateResultTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
 		$response = $this->_mySforceConnection->query($query);
13 13
 		$response = new QueryResult($response);
14 14
 
15
-		echo "\n***** ".$this->getTestName()." *****\n";
15
+		echo "\n***** " . $this->getTestName() . " *****\n";
16 16
 		print_r($response);
17 17
 
18
-		echo "\n***** ".$this->getTestName()." response records: *****\n";
19
-		if (isset($response->records) && !empty($response->records)) {
18
+		echo "\n***** " . $this->getTestName() . " response records: *****\n";
19
+		if (isset($response->records) && ! empty($response->records)) {
20 20
 			foreach ($response->records as $key=>$record) {
21 21
 				echo "\n***** $key *****\n";
22 22
 				if (isset($record->fields)) {
Please login to merge, or discard this patch.
unit_test/Lib/Test/Enterprise/LocaleOptionsTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -8,18 +8,18 @@
 block discarded – undo
8 8
 	
9 9
 	protected function _run()
10 10
 	{
11
-	    $header = new LocaleOptions('en_US');
12
-	    $this->_mySforceConnection->setLocaleOptions($header);
11
+		$header = new LocaleOptions('en_US');
12
+		$this->_mySforceConnection->setLocaleOptions($header);
13 13
 	    
14
-	    print "**** DescribeSObject result: \r\n";
15
-	    print_r(
14
+		print "**** DescribeSObject result: \r\n";
15
+		print_r(
16 16
 				$this->_mySforceConnection->describeSObject('Account')
17
-	    );
17
+		);
18 18
 	    
19
-	    print "**** LastRequestHeaders:\r\n";
20
-	    print_r($this->_mySforceConnection->getLastRequestHeaders());
21
-	    print "**** LastRequest:\r\n";
22
-	    print_r($this->_mySforceConnection->getLastRequest());
19
+		print "**** LastRequestHeaders:\r\n";
20
+		print_r($this->_mySforceConnection->getLastRequestHeaders());
21
+		print "**** LastRequest:\r\n";
22
+		print_r($this->_mySforceConnection->getLastRequest());
23 23
 	    
24 24
 	}
25 25
 }
Please login to merge, or discard this patch.
unit_test/Lib/Test/Enterprise/FieldsToNullTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 		
16 16
 		$createResponse = $this->_mySforceConnection->create(array($sObject), 'Contact');
17 17
 		
18
-		$retrieveResult= $this->_mySforceConnection->retrieve("FirstName, LastName, Phone", "Contact", $createResponse->id);
18
+		$retrieveResult = $this->_mySforceConnection->retrieve("FirstName, LastName, Phone", "Contact", $createResponse->id);
19 19
 		echo "***** Before fieldsToNull\r\n";
20 20
 		print_r($retrieveResult);
21 21
 		
Please login to merge, or discard this patch.
unit_test/Lib/Test/Partner/EmptyRecycleBinTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 	
9 9
 	protected function _run()
10 10
 	{
11
-		$fields = array (
11
+		$fields = array(
12 12
 		  'Type' => 'Electrical'
13 13
 		);
14 14
 		
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 		$sObject->fields = $fields;
17 17
 		$sObject->type = 'Case';
18 18
 		
19
-		$response = $this->_mySforceConnection->create(array ($sObject));
19
+		$response = $this->_mySforceConnection->create(array($sObject));
20 20
 		
21 21
 		echo "Creating Case:\n";
22 22
 		print_r($response);
Please login to merge, or discard this patch.
force.com-toolkit-for-php/unit_test/Lib/Test/Partner/LogoutTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	 */
26 26
 	protected function _validateSoapFault($rs)
27 27
 	{
28
-		if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) {
28
+		if (strpos($rs, 'INVALID_SESSION_ID') === FALSE) {
29 29
 			throw new Lib_Exception_InvalidResponse();
30 30
 		}
31 31
 	}
Please login to merge, or discard this patch.
force.com-toolkit-for-php/unit_test/Lib/Test/Partner/GetDeletedTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 	{
11 11
 		$obj1->type = 'Lead';
12 12
 		
13
-		$fields = array (
13
+		$fields = array(
14 14
 			'Company' => 'XYZ Company',
15 15
 			'FirstName' => 'John',
16 16
 			'LastName' => 'Smith',
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
 			'Status' => 'Open'
20 20
 		);
21 21
 		$obj1->fields = $fields;
22
-		$createResponse = $this->_mySforceConnection->create(array ($obj1));
22
+		$createResponse = $this->_mySforceConnection->create(array($obj1));
23 23
 		
24 24
 		echo "***** Creating Lead *****\n";
25 25
 		print_r($createResponse);
26 26
 		
27 27
 		$id = $createResponse->id;
28
-		$deleteResponse = $this->_mySforceConnection->delete(array ($id));
28
+		$deleteResponse = $this->_mySforceConnection->delete(array($id));
29 29
 		echo "***** Deleting Lead *****\n";
30 30
 		print_r($deleteResponse);
31 31
 		
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 		
35 35
 		$currentTime = mktime();
36 36
 		// assume that delete occured within the last 5 mins.
37
-		$startTime = $currentTime - (60*10);
37
+		$startTime = $currentTime - (60 * 10);
38 38
 		$endTime = $currentTime;
39 39
 		
40 40
 		echo "***** Get Deleted Leads *****\n";
Please login to merge, or discard this patch.
unit_test/Lib/Test/Partner/InvalidateSessionsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	 */
30 30
 	protected function _validateSoapFault($rs)
31 31
 	{
32
-		if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) {
32
+		if (strpos($rs, 'INVALID_SESSION_ID') === FALSE) {
33 33
 			throw new Lib_Exception_InvalidResponse();
34 34
 		}
35 35
 	}
Please login to merge, or discard this patch.
unit_test/Lib/Test/Partner/ProcessSubmitRequestTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 	protected function _run()
13 13
 	{
14 14
 		// Create Contact
15
-		$fields = array (
15
+		$fields = array(
16 16
 		  'FirstName' => 'John',
17 17
 		  'LastName' => 'Smith',
18 18
 		  'Phone' => '510-555-5555',
Please login to merge, or discard this patch.
unit_test/Lib/Test/Partner/DescribeDataCategoryGroupsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 	protected function _run()
17 17
 	{
18 18
 		$response = $this->_mySforceConnection->describeDataCategoryGroups('Question');
19
-		echo "***** ".$this->getTestName()." # Question *****\n";
19
+		echo "***** " . $this->getTestName() . " # Question *****\n";
20 20
 		print_r($response);
21 21
 	}
22 22
 }
Please login to merge, or discard this patch.