@@ -133,6 +133,7 @@ |
||
133 | 133 | |
134 | 134 | /** |
135 | 135 | * @inheritdoc |
136 | + * @param string $body |
|
136 | 137 | */ |
137 | 138 | public function setBody($body) { |
138 | 139 | $this->body = $body; |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * Register an EntryPoint method on the SugarAPI object. |
121 | 121 | * Allows for loading custom EntryPoints, so long as custom EntryPoints are autoloaded accordingly |
122 | 122 | * @param $funcName - name of Method to be called on SugarAPI Object |
123 | - * @param $className - full name of EntryPoint Class that will be utilized |
|
123 | + * @param string $className - full name of EntryPoint Class that will be utilized |
|
124 | 124 | * @throws SDKException |
125 | 125 | */ |
126 | 126 | public function registerEntryPoint($funcName, $className){ |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | |
191 | 191 | /** |
192 | 192 | * Get the configured Rest v10 URL |
193 | - * @return mixed |
|
193 | + * @return string |
|
194 | 194 | */ |
195 | 195 | public function getURL(){ |
196 | 196 | return $this->url; |
@@ -219,13 +219,13 @@ |
||
219 | 219 | * Force Logout of SugarAPI Object |
220 | 220 | */ |
221 | 221 | public function logout(){ |
222 | - if (!empty($this->authToken)){ |
|
223 | - $response = $this->oauth2Logout()->execute()->getResponse(); |
|
224 | - if ($response->getStatus()=='200'){ |
|
225 | - unset($this->authToken); |
|
226 | - unset($this->authExpiration); |
|
227 | - } |
|
228 | - } |
|
222 | + if (!empty($this->authToken)){ |
|
223 | + $response = $this->oauth2Logout()->execute()->getResponse(); |
|
224 | + if ($response->getStatus()=='200'){ |
|
225 | + unset($this->authToken); |
|
226 | + unset($this->authExpiration); |
|
227 | + } |
|
228 | + } |
|
229 | 229 | } |
230 | 230 | |
231 | 231 | /** |