Completed
Pull Request — master (#5)
by
unknown
01:55
created
src/Davispeixoto/ForceDotComToolkitForPhp/SforceEnterpriseClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             $xmlStr = '';
64 64
             if (isset($sObject->fieldsToNull) && is_array($sObject->fieldsToNull)) {
65 65
                 foreach ($sObject->fieldsToNull as $fieldToNull) {
66
-                    $xmlStr .= '<fieldsToNull>' . $fieldToNull . '</fieldsToNull>';
66
+                    $xmlStr .= '<fieldsToNull>'.$fieldToNull.'</fieldsToNull>';
67 67
                 }
68 68
             }
69 69
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $xmlStr = '';
96 96
             if (isset($sObject->fieldsToNull) && is_array($sObject->fieldsToNull)) {
97 97
                 foreach ($sObject->fieldsToNull as $fieldToNull) {
98
-                    $xmlStr .= '<fieldsToNull>' . $fieldToNull . '</fieldsToNull>';
98
+                    $xmlStr .= '<fieldsToNull>'.$fieldToNull.'</fieldsToNull>';
99 99
                 }
100 100
             }
101 101
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             $xmlStr = '';
134 134
             if (isset($sObject->fieldsToNull) && is_array($sObject->fieldsToNull)) {
135 135
                 foreach ($sObject->fieldsToNull as $fieldToNull) {
136
-                    $xmlStr .= '<fieldsToNull>' . $fieldToNull . '</fieldsToNull>';
136
+                    $xmlStr .= '<fieldsToNull>'.$fieldToNull.'</fieldsToNull>';
137 137
                 }
138 138
             }
139 139
 
Please login to merge, or discard this patch.
src/Davispeixoto/ForceDotComToolkitForPhp/SforcePartnerClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             return parent::_sendEmail($arg);
102 102
         } else {
103 103
             $backtrace = debug_backtrace();
104
-            error_log('Please pass in array to this function:  ' . $backtrace[0]['function']);
104
+            error_log('Please pass in array to this function:  '.$backtrace[0]['function']);
105 105
             return false;
106 106
         }
107 107
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             return parent::_sendEmail($arg);
125 125
         } else {
126 126
             $backtrace = debug_backtrace();
127
-            error_log('Please pass in array to this function:  ' . $backtrace[0]['function']);
127
+            error_log('Please pass in array to this function:  '.$backtrace[0]['function']);
128 128
             return false;
129 129
         }
130 130
     }
Please login to merge, or discard this patch.
src/Davispeixoto/ForceDotComToolkitForPhp/SforceMetadataClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $phpversion = substr(phpversion(), 0, strpos(phpversion(), '-'));
47 47
         if ($phpversion > '5.1.2') {
48 48
             $soapClientArray = array(
49
-                'user_agent' => 'salesforce-toolkit-php/' . $this->version,
49
+                'user_agent' => 'salesforce-toolkit-php/'.$this->version,
50 50
                 'encoding' => 'utf-8',
51 51
                 'trace' => 1,
52 52
                 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP,
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             );
55 55
         } else {
56 56
             $soapClientArray = array(
57
-                'user_agent' => 'salesforce-toolkit-php/' . $this->version,
57
+                'user_agent' => 'salesforce-toolkit-php/'.$this->version,
58 58
                 'encoding' => 'utf-8',
59 59
                 'trace' => 1,
60 60
                 'sessionId' => $loginResult->sessionId
Please login to merge, or discard this patch.
src/Davispeixoto/ForceDotComToolkitForPhp/SObject.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     {
137 137
         $str = preg_replace('{sf:}', '', $any);
138 138
 
139
-        $array = $this->xml2array('<Object xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">' . $str . '</Object>',
139
+        $array = $this->xml2array('<Object xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">'.$str.'</Object>',
140 140
             2);
141 141
 
142 142
         $xml = new stdClass();
@@ -185,11 +185,11 @@  discard block
 block discarded – undo
185 185
         $current = &$xml_array;
186 186
 
187 187
         foreach ($xml_values as $data) {
188
-            unset($attributes, $value);//Remove existing values, or there will be trouble
188
+            unset($attributes, $value); //Remove existing values, or there will be trouble
189 189
 
190 190
             //This command will extract these variables into the foreach scope
191 191
             // tag(string), type(string), level(int), attributes(array).
192
-            extract($data);//We could use the array by itself, but this cooler.
192
+            extract($data); //We could use the array by itself, but this cooler.
193 193
 
194 194
             $result = '';
195 195
             if ($get_attributes) {
Please login to merge, or discard this patch.
src/Davispeixoto/ForceDotComToolkitForPhp/SforceBaseClient.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
 
84 84
     public function printDebugInfo()
85 85
     {
86
-        echo 'PHP Toolkit Version: ' . $this->version . PHP_EOL;
87
-        echo 'Current PHP version: ' . phpversion();
86
+        echo 'PHP Toolkit Version: '.$this->version.PHP_EOL;
87
+        echo 'Current PHP version: '.phpversion();
88 88
         echo PHP_EOL;
89 89
         echo 'SOAP enabled: ';
90 90
         if (extension_loaded('soap')) {
@@ -115,11 +115,11 @@  discard block
 block discarded – undo
115 115
     {
116 116
         // use correct version comparison
117 117
         if (version_compare(phpversion(), '5.3', '<')) {
118
-            throw new Exception ('PHP versions older than 5.3 are no longer supported. Please upgrade!');
118
+            throw new Exception('PHP versions older than 5.3 are no longer supported. Please upgrade!');
119 119
         }
120 120
 
121 121
         $soapClientArray = array_merge(array(
122
-            'user_agent' => 'salesforce-toolkit-php/' . $this->version,
122
+            'user_agent' => 'salesforce-toolkit-php/'.$this->version,
123 123
             'encoding' => 'utf-8',
124 124
             'trace' => 1,
125 125
             'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
     {
541 541
         $anyString = '';
542 542
         foreach ($fields as $key => $value) {
543
-            $anyString = $anyString . '<' . $key . '>' . $value . '</' . $key . '>';
543
+            $anyString = $anyString.'<'.$key.'>'.$value.'</'.$key.'>';
544 544
         }
545 545
 
546 546
         return $anyString;
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
             return $this->_sendEmail($arg);
596 596
         } else {
597 597
             $backtrace = debug_backtrace();
598
-            error_log('Please pass in array to this function:  ' . $backtrace[0]['function']);
598
+            error_log('Please pass in array to this function:  '.$backtrace[0]['function']);
599 599
             return false;
600 600
         }
601 601
     }
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
             return $this->_sendEmail($arg);
615 615
         } else {
616 616
             $backtrace = debug_backtrace();
617
-            error_log('Please pass in array to this function:  ' . $backtrace[0]['function']);
617
+            error_log('Please pass in array to this function:  '.$backtrace[0]['function']);
618 618
             return false;
619 619
         }
620 620
     }
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
             return $this->_process($arg);
706 706
         } else {
707 707
             $backtrace = debug_backtrace();
708
-            error_log('Please pass in array to this function:  ' . $backtrace[0]['function']);
708
+            error_log('Please pass in array to this function:  '.$backtrace[0]['function']);
709 709
             return false;
710 710
         }
711 711
     }
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
             return $this->_process($arg);
729 729
         } else {
730 730
             $backtrace = debug_backtrace();
731
-            error_log('Please pass in array to this function:  ' . $backtrace[0]['function']);
731
+            error_log('Please pass in array to this function:  '.$backtrace[0]['function']);
732 732
             return false;
733 733
         }
734 734
     }
Please login to merge, or discard this patch.