@@ -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(); |
@@ -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 |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | |
265 | 265 | protected function createClient($server, $auth, $options) |
266 | 266 | { |
267 | - $location = 'https://' . $this->cleanServerUrl($server) . '/EWS/Exchange.asmx'; |
|
267 | + $location = 'https://'.$this->cleanServerUrl($server).'/EWS/Exchange.asmx'; |
|
268 | 268 | |
269 | 269 | $options = array_replace_recursive([ |
270 | 270 | 'version' => self::VERSION_2007, |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | $this->soap = new NTLMSoapClient( |
285 | 285 | $location, |
286 | 286 | $auth, |
287 | - dirname(__FILE__) . '/../../Resources/wsdl/services.wsdl', |
|
287 | + dirname(__FILE__).'/../../Resources/wsdl/services.wsdl', |
|
288 | 288 | $options |
289 | 289 | ); |
290 | 290 | |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | |
346 | 346 | $server = $url['host']; |
347 | 347 | if (isset($url['port'])) { |
348 | - $server .= ':' . $url['port']; |
|
348 | + $server .= ':'.$url['port']; |
|
349 | 349 | } |
350 | 350 | |
351 | 351 | if (isset($url['path'])) { |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | } |
405 | 405 | |
406 | 406 | if (is_array($items) && isset($items[1]) && $items[1] instanceof Message\ResponseMessageType) { |
407 | - return array_map(function ($responseItem) { |
|
407 | + return array_map(function($responseItem) { |
|
408 | 408 | return self::drillDownResponseLevels($responseItem); |
409 | 409 | }, $items); |
410 | 410 | } |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | |
461 | 461 | if ($code >= 300) { |
462 | 462 | $response = new ResponseMessageType(); |
463 | - $response->setMessageText('SOAP client returned status of ' . $code); |
|
463 | + $response->setMessageText('SOAP client returned status of '.$code); |
|
464 | 464 | |
465 | 465 | throw new ExchangeException($response, $code); |
466 | 466 | } |
@@ -504,7 +504,7 @@ discard block |
||
504 | 504 | $newStack = []; |
505 | 505 | foreach ($middlewareStack as $key => $current) { |
506 | 506 | /** @var $current callable */ |
507 | - $last = function () { |
|
507 | + $last = function() { |
|
508 | 508 | }; |
509 | 509 | |
510 | 510 | if ($key != 0) { |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | } |
513 | 513 | |
514 | 514 | $current = Closure::bind($current, $this, $this); |
515 | - $newStack[] = function (MiddlewareRequest $request) use ($current, $last) { |
|
515 | + $newStack[] = function(MiddlewareRequest $request) use ($current, $last) { |
|
516 | 516 | return $current($request, $last); |
517 | 517 | }; |
518 | 518 | } |