@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | public function createFolders($names, BaseFolderIdType $parentFolder, $options = array(), $folderClass = null) |
193 | 193 | { |
194 | 194 | $names = Utilities\ensureIsArray($names); |
195 | - $names = array_map(function ($name) use ($folderClass) { |
|
195 | + $names = array_map(function($name) use ($folderClass) { |
|
196 | 196 | return ['DisplayName' => $name, 'FolderClass' => $folderClass]; |
197 | 197 | }, $names); |
198 | 198 | |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | { |
257 | 257 | $items = Utilities\ensureIsArray($items, true); |
258 | 258 | |
259 | - $items = array_map(function ($item) { |
|
259 | + $items = array_map(function($item) { |
|
260 | 260 | $item = Type\ItemIdType::buildFromArray($item); |
261 | 261 | |
262 | 262 | return $item->toArray(); |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | |
256 | 256 | protected function createClient($server, $auth, $options) |
257 | 257 | { |
258 | - $location = 'https://' . $this->cleanServerUrl($server) . '/EWS/Exchange.asmx'; |
|
258 | + $location = 'https://'.$this->cleanServerUrl($server).'/EWS/Exchange.asmx'; |
|
259 | 259 | |
260 | 260 | $options = array_replace_recursive([ |
261 | 261 | 'version' => self::VERSION_2007, |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | $this->soap = new NTLMSoapClient( |
273 | 273 | $location, |
274 | 274 | $auth, |
275 | - dirname(__FILE__) . '/../../Resources/wsdl/services.wsdl', |
|
275 | + dirname(__FILE__).'/../../Resources/wsdl/services.wsdl', |
|
276 | 276 | $options |
277 | 277 | ); |
278 | 278 | libxml_disable_entity_loader($backup); |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | |
331 | 331 | $server = $url['host']; |
332 | 332 | if (isset($url['port'])) { |
333 | - $server .= ':' . $url['port']; |
|
333 | + $server .= ':'.$url['port']; |
|
334 | 334 | } |
335 | 335 | |
336 | 336 | if (isset($url['path'])) { |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | } |
390 | 390 | |
391 | 391 | if (is_array($items) && isset($items[1]) && $items[1] instanceof Message\ResponseMessageType) { |
392 | - return array_map(function ($responseItem) { |
|
392 | + return array_map(function($responseItem) { |
|
393 | 393 | return self::drillDownResponseLevels($responseItem); |
394 | 394 | }, $items); |
395 | 395 | } |
@@ -445,7 +445,7 @@ discard block |
||
445 | 445 | |
446 | 446 | if ($code >= 300) { |
447 | 447 | $response = new ResponseMessageType(); |
448 | - $response->setMessageText('SOAP client returned status of ' . $code); |
|
448 | + $response->setMessageText('SOAP client returned status of '.$code); |
|
449 | 449 | |
450 | 450 | throw new ExchangeException($response, $code); |
451 | 451 | } |
@@ -489,7 +489,7 @@ discard block |
||
489 | 489 | $newStack = []; |
490 | 490 | foreach ($middlewareStack as $key => $current) { |
491 | 491 | /** @var $current callable */ |
492 | - $last = function () { |
|
492 | + $last = function() { |
|
493 | 493 | }; |
494 | 494 | |
495 | 495 | if ($key != 0) { |
@@ -497,7 +497,7 @@ discard block |
||
497 | 497 | } |
498 | 498 | |
499 | 499 | $current = Closure::bind($current, $this, $this); |
500 | - $newStack[] = function (MiddlewareRequest $request) use ($current, $last) { |
|
500 | + $newStack[] = function(MiddlewareRequest $request) use ($current, $last) { |
|
501 | 501 | return $current($request, $last); |
502 | 502 | }; |
503 | 503 | } |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | ], |
272 | 272 | ]; |
273 | 273 | |
274 | - $users = array_map(function ($user) { |
|
274 | + $users = array_map(function($user) { |
|
275 | 275 | return [ |
276 | 276 | 'Email' => ['Address' => $user], |
277 | 277 | 'AttendeeType' => 'Required', |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | throw new ExchangeException($responseMessage); |
310 | 310 | } |
311 | 311 | |
312 | - $availabilities = array_map(function (FreeBusyResponseType $freeBusyResponseType) { |
|
312 | + $availabilities = array_map(function(FreeBusyResponseType $freeBusyResponseType) { |
|
313 | 313 | return str_split($freeBusyResponseType->getFreeBusyView()->getMergedFreeBusy()); |
314 | 314 | }, $availability->getFreeBusyResponseArray()->FreeBusyResponse); |
315 | 315 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | private static function formatExpression($preference, $expression) |
21 | 21 | { |
22 | 22 | if (count($expression) > 1 && is_array(current($expression))) { |
23 | - return array_map(function ($subExpression) use ($preference) { |
|
23 | + return array_map(function($subExpression) use ($preference) { |
|
24 | 24 | return self::formatExpression($preference, $subExpression)[0]; |
25 | 25 | }, $expression); |
26 | 26 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | } |
39 | 39 | $formattedRestrictionType[] = array( |
40 | 40 | 'FieldURI' => array('FieldURI' => API\FieldURIManager::getFieldUriByName($key, $preference)), |
41 | - 'FieldURIOrConstant' => array('Constant' => array('Value' => (string)$value)) |
|
41 | + 'FieldURIOrConstant' => array('Constant' => array('Value' => (string) $value)) |
|
42 | 42 | ); |
43 | 43 | } |
44 | 44 |