@@ -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 | ) |
@@ -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; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $constant .= "_SP$minorVersion"; |
64 | 64 | } |
65 | 65 | |
66 | - return constant(ExchangeWebServices::class . "::$constant"); |
|
66 | + return constant(ExchangeWebServices::class."::$constant"); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | protected function newAPI($email, $password, $username = null, $options = []) |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | protected function tryTopLevelDomain($email, $password, $username) |
184 | 184 | { |
185 | 185 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
186 | - $url = 'https://www.' . $topLevelDomain . $this->autodiscoverPath; |
|
186 | + $url = 'https://www.'.$topLevelDomain.$this->autodiscoverPath; |
|
187 | 187 | |
188 | 188 | return $this->doNTLMPost($url, $email, $password, $username); |
189 | 189 | } |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | protected function tryAutoDiscoverSubDomain($email, $password, $username) |
202 | 202 | { |
203 | 203 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
204 | - $url = 'https://autodiscover.' . $topLevelDomain . $this->autodiscoverPath; |
|
204 | + $url = 'https://autodiscover.'.$topLevelDomain.$this->autodiscoverPath; |
|
205 | 205 | |
206 | 206 | return $this->doNTLMPost($url, $email, $password, $username); |
207 | 207 | } |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | { |
221 | 221 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
222 | 222 | |
223 | - $url = 'http://autodiscover.' . $topLevelDomain . $this->autodiscoverPath; |
|
223 | + $url = 'http://autodiscover.'.$topLevelDomain.$this->autodiscoverPath; |
|
224 | 224 | |
225 | 225 | $client = $this->httpPlayback->getHttpClient(); |
226 | 226 | $postOptions = [ |
@@ -258,11 +258,11 @@ discard block |
||
258 | 258 | protected function trySRVRecord($email, $password, $username) |
259 | 259 | { |
260 | 260 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
261 | - $srvHost = '_autodiscover._tcp.' . $topLevelDomain; |
|
261 | + $srvHost = '_autodiscover._tcp.'.$topLevelDomain; |
|
262 | 262 | $lookup = dns_get_record($srvHost, DNS_SRV); |
263 | 263 | if (sizeof($lookup) > 0) { |
264 | 264 | $host = $lookup[0]['target']; |
265 | - $url = 'https://' . $host . $this->autodiscoverPath; |
|
265 | + $url = 'https://'.$host.$this->autodiscoverPath; |
|
266 | 266 | |
267 | 267 | return $this->doNTLMPost($url, $email, $password, $username); |
268 | 268 | } |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | $server, |
223 | 223 | $username, |
224 | 224 | $password, |
225 | - $options = [ ] |
|
225 | + $options = [] |
|
226 | 226 | ) { |
227 | 227 | $this->setClient(ExchangeWebServices::fromUsernameAndPassword( |
228 | 228 | $server, |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | )); |
233 | 233 | } |
234 | 234 | |
235 | - public static function withUsernameAndPassword($server, $username, $password, $options = [ ]) |
|
235 | + public static function withUsernameAndPassword($server, $username, $password, $options = []) |
|
236 | 236 | { |
237 | 237 | return new static(ExchangeWebServices::fromUsernameAndPassword( |
238 | 238 | $server, |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | )); |
243 | 243 | } |
244 | 244 | |
245 | - public static function withCallbackToken($server, $token, $options = [ ]) |
|
245 | + public static function withCallbackToken($server, $token, $options = []) |
|
246 | 246 | { |
247 | 247 | return new static(ExchangeWebServices::fromCallbackToken( |
248 | 248 | $server, |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | |
393 | 393 | $newValue = []; |
394 | 394 | foreach ($value[$fieldKey]['Entry'] as $key => $updateValue) { |
395 | - $newValue[] = [$fieldKey => ['Entry' => ['Key' => $entryKey, $key => $updateValue ]]]; |
|
395 | + $newValue[] = [$fieldKey => ['Entry' => ['Key' => $entryKey, $key => $updateValue]]]; |
|
396 | 396 | } |
397 | 397 | |
398 | 398 | $value = $newValue; |
@@ -661,7 +661,7 @@ discard block |
||
661 | 661 | { |
662 | 662 | $result = $this->getClient()->ConvertId(array( |
663 | 663 | 'DestinationFormat' => $destinationType, |
664 | - 'SourceIds' => array ( |
|
664 | + 'SourceIds' => array( |
|
665 | 665 | 'AlternateId' => array( |
666 | 666 | 'Format' => $fromType, |
667 | 667 | 'Id' => $itemId->getId(), |