@@ -17,13 +17,13 @@ |
||
17 | 17 | //Phone numbers have to be updated in the same manner |
18 | 18 | $api->updateContactItem($contact[0]->getItemId(), array( |
19 | 19 | 'GivenName' => 'Jane', |
20 | - 'EmailAddress:EmailAddress1' => array ( |
|
21 | - 'EmailAddresses' => array ( |
|
20 | + 'EmailAddress:EmailAddress1' => array( |
|
21 | + 'EmailAddresses' => array( |
|
22 | 22 | 'Entry' => array('Key' => 'EmailAddress1', '_value' => '[email protected]') |
23 | 23 | ) |
24 | 24 | ), |
25 | - 'PhoneNumber:HomePhone' => array ( |
|
26 | - 'PhoneNumbers' => array ( |
|
25 | + 'PhoneNumber:HomePhone' => array( |
|
26 | + 'PhoneNumbers' => array( |
|
27 | 27 | 'Entry' => array('Key' => 'HomePhone', '_value' => '111') |
28 | 28 | ) |
29 | 29 | ) |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | |
216 | 216 | protected function createClient($server, $auth, $options) |
217 | 217 | { |
218 | - $location = 'https://' . $this->cleanServerUrl($server) . '/EWS/Exchange.asmx'; |
|
218 | + $location = 'https://'.$this->cleanServerUrl($server).'/EWS/Exchange.asmx'; |
|
219 | 219 | |
220 | 220 | $options = array_replace_recursive([ |
221 | 221 | 'version' => self::VERSION_2007, |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | $this->soap = new NTLMSoapClient( |
229 | 229 | $location, |
230 | 230 | $auth, |
231 | - dirname(__FILE__) . '/../../Resources/wsdl/services.wsdl', |
|
231 | + dirname(__FILE__).'/../../Resources/wsdl/services.wsdl', |
|
232 | 232 | $options |
233 | 233 | ); |
234 | 234 | |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | |
298 | 298 | $server = $url['host']; |
299 | 299 | if (isset($url['port'])) { |
300 | - $server .= ':' . $url['port']; |
|
300 | + $server .= ':'.$url['port']; |
|
301 | 301 | } |
302 | 302 | |
303 | 303 | if (isset($url['path'])) { |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | } |
331 | 331 | |
332 | 332 | if ($code != 200) { |
333 | - throw new ExchangeException('SOAP client returned status of ' . $code, $code); |
|
333 | + throw new ExchangeException('SOAP client returned status of '.$code, $code); |
|
334 | 334 | } |
335 | 335 | |
336 | 336 | if (empty($response) || |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $args[0] = $args[0]->toXmlObject(); |
107 | 107 | } |
108 | 108 | |
109 | - $headers = array ( |
|
109 | + $headers = array( |
|
110 | 110 | $this->ewsHeaders['version'], |
111 | 111 | $this->ewsHeaders['impersonation'], |
112 | 112 | ); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $headers[] = $this->ewsHeaders['timezone']; |
116 | 116 | } |
117 | 117 | |
118 | - $headers = array_filter($headers, function ($header) { |
|
118 | + $headers = array_filter($headers, function($header) { |
|
119 | 119 | if (!($header instanceof SoapHeader)) { |
120 | 120 | return false; |
121 | 121 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | if (!empty($options['version'])) { |
151 | 151 | $this->ewsHeaders['version'] = new SoapHeader( |
152 | 152 | 'http://schemas.microsoft.com/exchange/services/2006/types', |
153 | - 'RequestServerVersion Version="' . $options['version'] . '"' |
|
153 | + 'RequestServerVersion Version="'.$options['version'].'"' |
|
154 | 154 | ); |
155 | 155 | } |
156 | 156 | |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | */ |
232 | 232 | public function __getLastRequestHeaders() |
233 | 233 | { |
234 | - return implode('n', $this->__last_request_headers) . "\n"; |
|
234 | + return implode('n', $this->__last_request_headers)."\n"; |
|
235 | 235 | } |
236 | 236 | |
237 | 237 | /** |
@@ -7,7 +7,7 @@ |
||
7 | 7 | $contact = $api->getContacts(); |
8 | 8 | |
9 | 9 | $api->updateContactItem($contact[0]->getItemId(), array( |
10 | - 'deleteFields' => array ( |
|
10 | + 'deleteFields' => array( |
|
11 | 11 | 'GivenName', |
12 | 12 | 'PhoneNumber:HomePhone' |
13 | 13 | ) |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | $constant .= "_SP$minorVersion"; |
120 | 120 | } |
121 | 121 | |
122 | - return constant(ExchangeWebServices::class . "::$constant"); |
|
122 | + return constant(ExchangeWebServices::class."::$constant"); |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | protected function newAPI($email, $password, $username = null, $options = []) |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | protected function tryTopLevelDomain($email, $password, $username) |
231 | 231 | { |
232 | 232 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
233 | - $url = 'https://www.' . $topLevelDomain . self::AUTODISCOVER_PATH; |
|
233 | + $url = 'https://www.'.$topLevelDomain.self::AUTODISCOVER_PATH; |
|
234 | 234 | |
235 | 235 | return $this->doNTLMPost($url, $email, $password, $username); |
236 | 236 | } |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | protected function tryAutoDiscoverSubDomain($email, $password, $username) |
249 | 249 | { |
250 | 250 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
251 | - $url = 'https://autodiscover.' . $topLevelDomain . self::AUTODISCOVER_PATH; |
|
251 | + $url = 'https://autodiscover.'.$topLevelDomain.self::AUTODISCOVER_PATH; |
|
252 | 252 | |
253 | 253 | return $this->doNTLMPost($url, $email, $password, $username); |
254 | 254 | } |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | { |
268 | 268 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
269 | 269 | |
270 | - $url = 'http://autodiscover.' . $topLevelDomain . self::AUTODISCOVER_PATH; |
|
270 | + $url = 'http://autodiscover.'.$topLevelDomain.self::AUTODISCOVER_PATH; |
|
271 | 271 | |
272 | 272 | $client = $this->httpPlayback->getHttpClient(); |
273 | 273 | $postOptions = [ |
@@ -304,11 +304,11 @@ discard block |
||
304 | 304 | protected function trySRVRecord($email, $password, $username) |
305 | 305 | { |
306 | 306 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
307 | - $srvHost = '_autodiscover._tcp.' . $topLevelDomain; |
|
307 | + $srvHost = '_autodiscover._tcp.'.$topLevelDomain; |
|
308 | 308 | $lookup = dns_get_record($srvHost, DNS_SRV); |
309 | 309 | if (sizeof($lookup) > 0) { |
310 | 310 | $host = $lookup[0]['target']; |
311 | - $url = 'https://' . $host . self::AUTODISCOVER_PATH; |
|
311 | + $url = 'https://'.$host.self::AUTODISCOVER_PATH; |
|
312 | 312 | |
313 | 313 | return $this->doNTLMPost($url, $email, $password, $username); |
314 | 314 | } |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $dirPos = strrpos($dir, "src/API"); |
135 | 135 | $dir = substr($dir, 0, $dirPos); |
136 | 136 | |
137 | - $this->recordLocation = $dir . 'Resources/recordings/'; |
|
137 | + $this->recordLocation = $dir.'Resources/recordings/'; |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | return $this->recordLocation; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | |
143 | 143 | public function getRecordFilePath() |
144 | 144 | { |
145 | - $path = $this->getRecordLocation() . $this->recordFileName; |
|
145 | + $path = $this->getRecordLocation().$this->recordFileName; |
|
146 | 146 | $path = str_replace("\\", "/", $path); |
147 | 147 | |
148 | 148 | return $path; |