@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | |
| 252 | 252 | protected function createClient($server, $auth, $options) |
| 253 | 253 | { |
| 254 | - $location = 'https://' . $this->cleanServerUrl($server) . '/EWS/Exchange.asmx'; |
|
| 254 | + $location = 'https://'.$this->cleanServerUrl($server).'/EWS/Exchange.asmx'; |
|
| 255 | 255 | |
| 256 | 256 | $options = array_replace_recursive([ |
| 257 | 257 | 'version' => self::VERSION_2007, |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | $this->soap = new NTLMSoapClient( |
| 268 | 268 | $location, |
| 269 | 269 | $auth, |
| 270 | - dirname(__FILE__) . '/../../Resources/wsdl/services.wsdl', |
|
| 270 | + dirname(__FILE__).'/../../Resources/wsdl/services.wsdl', |
|
| 271 | 271 | $options |
| 272 | 272 | ); |
| 273 | 273 | |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | |
| 339 | 339 | $server = $url['host']; |
| 340 | 340 | if (isset($url['port'])) { |
| 341 | - $server .= ':' . $url['port']; |
|
| 341 | + $server .= ':'.$url['port']; |
|
| 342 | 342 | } |
| 343 | 343 | |
| 344 | 344 | if (isset($url['path'])) { |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | } |
| 456 | 456 | |
| 457 | 457 | if ($code >= 300) { |
| 458 | - throw new ExchangeException('SOAP client returned status of ' . $code, $code); |
|
| 458 | + throw new ExchangeException('SOAP client returned status of '.$code, $code); |
|
| 459 | 459 | } |
| 460 | 460 | |
| 461 | 461 | if (empty($response) || empty($response->getNonNullResponseMessages())) { |
@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | |
| 471 | 471 | self::$middlewareStack = [ |
| 472 | 472 | //Make the actual SOAP call |
| 473 | - function (MiddlewareRequest $request) { |
|
| 473 | + function(MiddlewareRequest $request) { |
|
| 474 | 474 | $client = $this->getClient(); |
| 475 | 475 | $response = $client->__call($request->getName(), $request->getArguments()); |
| 476 | 476 | $response = MiddlewareResponse::newResponse($response); |
@@ -479,7 +479,7 @@ discard block |
||
| 479 | 479 | }, |
| 480 | 480 | |
| 481 | 481 | //Transform an objcet of type Type to an XML Object |
| 482 | - function (MiddlewareRequest $request, callable $next) { |
|
| 482 | + function(MiddlewareRequest $request, callable $next) { |
|
| 483 | 483 | if ($request->getRequest() instanceof Type) { |
| 484 | 484 | $request->setRequest($request->getRequest()->toXmlObject()); |
| 485 | 485 | } |
@@ -488,7 +488,7 @@ discard block |
||
| 488 | 488 | }, |
| 489 | 489 | |
| 490 | 490 | //The SyncScope option isn't available for Exchange 2007 SP1 and below |
| 491 | - function (MiddlewareRequest $request, callable $next) { |
|
| 491 | + function(MiddlewareRequest $request, callable $next) { |
|
| 492 | 492 | $options = $request->getOptions(); |
| 493 | 493 | $version2007SP1 = ($options['version'] == ExchangeWebServices::VERSION_2007 |
| 494 | 494 | || $options['version'] == ExchangeWebServices::VERSION_2007_SP1); |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | }, |
| 505 | 505 | |
| 506 | 506 | //Add response processing |
| 507 | - function (MiddlewareRequest $request, callable $next) { |
|
| 507 | + function(MiddlewareRequest $request, callable $next) { |
|
| 508 | 508 | $response = $next($request); |
| 509 | 509 | |
| 510 | 510 | $response->setResponse($this->processResponse($response->getResponse())); |
@@ -513,7 +513,7 @@ discard block |
||
| 513 | 513 | }, |
| 514 | 514 | |
| 515 | 515 | //Adds last request to FindFolder and FindItem responses |
| 516 | - function (MiddlewareRequest $request, callable $next) { |
|
| 516 | + function(MiddlewareRequest $request, callable $next) { |
|
| 517 | 517 | $response = $next($request); |
| 518 | 518 | |
| 519 | 519 | $responseObject = $response->getResponse(); |
@@ -540,14 +540,14 @@ discard block |
||
| 540 | 540 | $newStack = []; |
| 541 | 541 | foreach ($middlewareStack as $key => $current) { |
| 542 | 542 | /** @var $current callable */ |
| 543 | - $last = function () { }; |
|
| 543 | + $last = function() { }; |
|
| 544 | 544 | |
| 545 | 545 | if ($key != 0) { |
| 546 | 546 | $last = $newStack[$key - 1]; |
| 547 | 547 | } |
| 548 | 548 | |
| 549 | 549 | $current = Closure::bind($current, $this); |
| 550 | - $newStack[] = function (MiddlewareRequest $request) use ($current, $last) { |
|
| 550 | + $newStack[] = function(MiddlewareRequest $request) use ($current, $last) { |
|
| 551 | 551 | return $current($request, $last); |
| 552 | 552 | }; |
| 553 | 553 | } |