Passed
Pull Request — master (#195)
by Jonathan
06:35
created
force.com-toolkit-for-php/unit_test/Lib/Test/Partner/QueryOptionsTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
 		$this->_mySforceConnection->setQueryOptions($options);
14 14
 		$response = $this->_mySforceConnection->query($query);
15 15
 		$queryResult = new QueryResult($response);
16
-		!$done = false;
16
+		! $done = false;
17 17
 
18
-		echo "Size of records:  ".$queryResult->size;
18
+		echo "Size of records:  " . $queryResult->size;
19 19
 
20 20
 		if ($queryResult->size > 0) {
21
-			while (!$done) {
21
+			while ( ! $done) {
22 22
 				foreach ($queryResult->records as $record) {
23
-					echo $record->fields->NumberOfEmployees."\r\n";
23
+					echo $record->fields->NumberOfEmployees . "\r\n";
24 24
 				}
25 25
 				if ($queryResult->done != true) {
26 26
 					echo "***** Get Next Chunk *****\n";
Please login to merge, or discard this patch.
force.com-toolkit-for-php/unit_test/Lib/Test/Partner/UpdateTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 		$UPDATEOBJECTID1 = '00QA0000001QSQo';
15 15
 		$UPDATEOBJECTID2 = '00QA0000001QSQn';
16 16
 
17
-		$fieldsToUpdate = array (
17
+		$fieldsToUpdate = array(
18 18
 			'FirstName' => 'testupdate',
19 19
 			'City' => 'testupdateCity',
20 20
 			'Country' => 'US'
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 		$sObject1->type = 'Lead';
25 25
 		$sObject1->Id = $UPDATEOBJECTID1;
26 26
 
27
-		$fieldsToUpdate = array (
27
+		$fieldsToUpdate = array(
28 28
 			'FirstName' => 'testupdate',
29 29
 			'City' => 'testupdate',
30 30
 			'State' => 'testupdate',
Please login to merge, or discard this patch.
force.com-toolkit-for-php/unit_test/Lib/Test/Partner/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.
force.com-toolkit-for-php/unit_test/Lib/Test/Partner/FieldsToNullTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 		
49 49
 		$createResponse = $this->_mySforceConnection->create(array($sObject));
50 50
 		
51
-		$retrieveResult= $this->_mySforceConnection->retrieve("FirstName, LastName, Phone", "Contact", $createResponse->id);
51
+		$retrieveResult = $this->_mySforceConnection->retrieve("FirstName, LastName, Phone", "Contact", $createResponse->id);
52 52
 		echo "***** Before fieldsToNull\r\n";
53 53
 		print_r($retrieveResult);
54 54
 		
Please login to merge, or discard this patch.
force.com-toolkit-for-php/unit_test/Lib/Test/Partner/MergeTest.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 		$sObject = new SObject();
12 12
 		$sObject->type = 'Contact';
13 13
 		$fields = array (
14
-		    'LastName'=>'Tran',
15
-		    'BirthDate'=> '1927-01-25',
16
-		    'Phone' => '510-555-5555',
14
+			'LastName'=>'Tran',
15
+			'BirthDate'=> '1927-01-25',
16
+			'Phone' => '510-555-5555',
17 17
 		);
18 18
 		$sObject->fields = $fields;
19 19
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 	{
11 11
 		$sObject = new SObject();
12 12
 		$sObject->type = 'Contact';
13
-		$fields = array (
13
+		$fields = array(
14 14
 		    'LastName'=>'Tran',
15 15
 		    'BirthDate'=> '1927-01-25',
16 16
 		    'Phone' => '510-555-5555',
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 		$sObject3->fields = $fields;
30 30
 
31 31
 		echo "Create 3 contacts.\n";
32
-		$createResponse = $this->_mySforceConnection->create(array($sObject, $sObject2, $sObject3),'Lead');
32
+		$createResponse = $this->_mySforceConnection->create(array($sObject, $sObject2, $sObject3), 'Lead');
33 33
 
34 34
 		print_r($createResponse);
35 35
 
Please login to merge, or discard this patch.
force.com-toolkit-for-php/unit_test/Lib/Test/Partner/CDUTest.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
 	
13 13
 	protected function _run()
14 14
 	{
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/AssigmentRuleHeaderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 		$header = new AssignmentRuleHeader('01Q300000005lDg', false);
12 12
 		$this->_mySforceConnection->setAssignmentRuleHeader($header);
13 13
 	
14
-		$createFields = array (
14
+		$createFields = array(
15 15
 			'FirstName' => 'John',
16 16
 			'LastName' => 'Doe',
17 17
 			'Email' => '[email protected]',
Please login to merge, or discard this patch.
vendor/developerforce/force.com-toolkit-for-php/unit_test/runTest.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -6,30 +6,30 @@
 block discarded – undo
6 6
 
7 7
 // Define path to application directory
8 8
 defined('APP_PATH')
9
-    || define('APP_PATH', realpath(dirname(__FILE__)));
9
+	|| define('APP_PATH', realpath(dirname(__FILE__)));
10 10
 defined('LIB_PATH')
11
-    || define('LIB_PATH', realpath(dirname(__FILE__) . '/Lib'));
11
+	|| define('LIB_PATH', realpath(dirname(__FILE__) . '/Lib'));
12 12
     
13 13
 define('SOAP_BASEDIR', realpath(dirname(__FILE__) . '/..'));
14 14
 
15 15
 set_include_path(implode(PATH_SEPARATOR, array(
16
-    LIB_PATH,
17
-    SOAP_BASEDIR,
18
-    get_include_path(),
16
+	LIB_PATH,
17
+	SOAP_BASEDIR,
18
+	get_include_path(),
19 19
 )));
20 20
 
21 21
 function __autoload($className) {
22
-    $fullclasspath = "";
23
-    // get separated directories
24
-    $pathchunks=explode("_",$className);
22
+	$fullclasspath = "";
23
+	// get separated directories
24
+	$pathchunks=explode("_",$className);
25 25
 
26
-    //re-build path without last item
27
-    for($i=0; $i<(count($pathchunks)-1); $i++) {
28
-	    $fullclasspath .= $pathchunks[$i].'/';
29
-    }
26
+	//re-build path without last item
27
+	for($i=0; $i<(count($pathchunks)-1); $i++) {
28
+		$fullclasspath .= $pathchunks[$i].'/';
29
+	}
30 30
 
31 31
 //    require_once realpath(APP_PATH . '/' . $fullclasspath . $className . '.php');
32
-    require_once realpath(APP_PATH . '/' . $fullclasspath . '/' . substr($className, (strrpos($className, '_') + 1)) . '.php');
32
+	require_once realpath(APP_PATH . '/' . $fullclasspath . '/' . substr($className, (strrpos($className, '_') + 1)) . '.php');
33 33
 }
34 34
 
35 35
 $type = (int)$_GET['type'];
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,18 +21,18 @@
 block discarded – undo
21 21
 function __autoload($className) {
22 22
     $fullclasspath = "";
23 23
     // get separated directories
24
-    $pathchunks=explode("_",$className);
24
+    $pathchunks = explode("_", $className);
25 25
 
26 26
     //re-build path without last item
27
-    for($i=0; $i<(count($pathchunks)-1); $i++) {
28
-	    $fullclasspath .= $pathchunks[$i].'/';
27
+    for ($i = 0; $i < (count($pathchunks) - 1); $i++) {
28
+	    $fullclasspath .= $pathchunks[$i] . '/';
29 29
     }
30 30
 
31 31
 //    require_once realpath(APP_PATH . '/' . $fullclasspath . $className . '.php');
32 32
     require_once realpath(APP_PATH . '/' . $fullclasspath . '/' . substr($className, (strrpos($className, '_') + 1)) . '.php');
33 33
 }
34 34
 
35
-$type = (int)$_GET['type'];
35
+$type = (int) $_GET['type'];
36 36
 $target = $_GET['target'];
37 37
 $testFactory = new Lib_Test_TestFactory(SOAP_BASEDIR, APP_PATH . '/test.log');
38 38
 $testFactory->run($type, $target);
Please login to merge, or discard this patch.
vendor/composer/autoload_static.php 2 patches
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -6,47 +6,47 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInit9c397e0930797621ed4c4fa10b188a3a
8 8
 {
9
-    public static $files = array (
10
-        '712263cd6b22ec9ea795d59ae1ebda80' => __DIR__ . '/..' . '/prospress/action-scheduler/action-scheduler.php',
11
-    );
9
+	public static $files = array (
10
+		'712263cd6b22ec9ea795d59ae1ebda80' => __DIR__ . '/..' . '/prospress/action-scheduler/action-scheduler.php',
11
+	);
12 12
 
13
-    public static $classMap = array (
14
-        'AllowFieldTruncationHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
15
-        'AssignmentRuleHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
16
-        'CallOptions' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
17
-        'Email' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceEmail.php',
18
-        'EmailHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
19
-        'LocaleOptions' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
20
-        'LoginScopeHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
21
-        'MassEmailMessage' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceEmail.php',
22
-        'MruHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
23
-        'PackageVersion' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
24
-        'PackageVersionHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
25
-        'ProcessRequest' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceProcessRequest.php',
26
-        'ProcessSubmitRequest' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceProcessRequest.php',
27
-        'ProcessWorkitemRequest' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceProcessRequest.php',
28
-        'ProxySettings' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/ProxySettings.php',
29
-        'QueryOptions' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
30
-        'QueryResult' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceBaseClient.php',
31
-        'SObject' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceBaseClient.php',
32
-        'SforceBaseClient' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceBaseClient.php',
33
-        'SforceCustomField' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceMetaObject.php',
34
-        'SforceCustomObject' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceMetaObject.php',
35
-        'SforceEnterpriseClient' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceEnterpriseClient.php',
36
-        'SforceMetadataClient' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceMetadataClient.php',
37
-        'SforcePartnerClient' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforcePartnerClient.php',
38
-        'SforceSearchResult' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceBaseClient.php',
39
-        'SforceSoapClient' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforcePartnerClient.php',
40
-        'SingleEmailMessage' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceEmail.php',
41
-        'UserTerritoryDeleteHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
42
-        'WP_Logging' => __DIR__ . '/..' . '/pippinsplugins/wp-logging/WP_Logging.php',
43
-    );
13
+	public static $classMap = array (
14
+		'AllowFieldTruncationHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
15
+		'AssignmentRuleHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
16
+		'CallOptions' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
17
+		'Email' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceEmail.php',
18
+		'EmailHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
19
+		'LocaleOptions' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
20
+		'LoginScopeHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
21
+		'MassEmailMessage' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceEmail.php',
22
+		'MruHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
23
+		'PackageVersion' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
24
+		'PackageVersionHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
25
+		'ProcessRequest' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceProcessRequest.php',
26
+		'ProcessSubmitRequest' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceProcessRequest.php',
27
+		'ProcessWorkitemRequest' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceProcessRequest.php',
28
+		'ProxySettings' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/ProxySettings.php',
29
+		'QueryOptions' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
30
+		'QueryResult' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceBaseClient.php',
31
+		'SObject' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceBaseClient.php',
32
+		'SforceBaseClient' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceBaseClient.php',
33
+		'SforceCustomField' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceMetaObject.php',
34
+		'SforceCustomObject' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceMetaObject.php',
35
+		'SforceEnterpriseClient' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceEnterpriseClient.php',
36
+		'SforceMetadataClient' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceMetadataClient.php',
37
+		'SforcePartnerClient' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforcePartnerClient.php',
38
+		'SforceSearchResult' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceBaseClient.php',
39
+		'SforceSoapClient' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforcePartnerClient.php',
40
+		'SingleEmailMessage' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceEmail.php',
41
+		'UserTerritoryDeleteHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
42
+		'WP_Logging' => __DIR__ . '/..' . '/pippinsplugins/wp-logging/WP_Logging.php',
43
+	);
44 44
 
45
-    public static function getInitializer(ClassLoader $loader)
46
-    {
47
-        return \Closure::bind(function () use ($loader) {
48
-            $loader->classMap = ComposerStaticInit9c397e0930797621ed4c4fa10b188a3a::$classMap;
45
+	public static function getInitializer(ClassLoader $loader)
46
+	{
47
+		return \Closure::bind(function () use ($loader) {
48
+			$loader->classMap = ComposerStaticInit9c397e0930797621ed4c4fa10b188a3a::$classMap;
49 49
 
50
-        }, null, ClassLoader::class);
51
-    }
50
+		}, null, ClassLoader::class);
51
+	}
52 52
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInit9c397e0930797621ed4c4fa10b188a3a
8 8
 {
9
-    public static $files = array (
9
+    public static $files = array(
10 10
         '712263cd6b22ec9ea795d59ae1ebda80' => __DIR__ . '/..' . '/prospress/action-scheduler/action-scheduler.php',
11 11
     );
12 12
 
13
-    public static $classMap = array (
13
+    public static $classMap = array(
14 14
         'AllowFieldTruncationHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
15 15
         'AssignmentRuleHeader' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
16 16
         'CallOptions' => __DIR__ . '/..' . '/developerforce/force.com-toolkit-for-php/soapclient/SforceHeaderOptions.php',
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public static function getInitializer(ClassLoader $loader)
46 46
     {
47
-        return \Closure::bind(function () use ($loader) {
47
+        return \Closure::bind(function() use ($loader) {
48 48
             $loader->classMap = ComposerStaticInit9c397e0930797621ed4c4fa10b188a3a::$classMap;
49 49
 
50 50
         }, null, ClassLoader::class);
Please login to merge, or discard this patch.