@@ -435,7 +435,7 @@ discard block |
||
| 435 | 435 | |
| 436 | 436 | /** |
| 437 | 437 | * @param Message\BaseResponseMessageType $response |
| 438 | - * @param $code |
|
| 438 | + * @param integer $code |
|
| 439 | 439 | * @throws ExchangeException |
| 440 | 440 | * @throws NoResponseReturnedException |
| 441 | 441 | * @throws ServiceUnavailableException |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | } |
| 505 | 505 | |
| 506 | 506 | /** |
| 507 | - * @param array $middlewareStack |
|
| 507 | + * @param boolean $middlewareStack |
|
| 508 | 508 | * @param MiddlewareRequest $request |
| 509 | 509 | * @return MiddlewareResponse |
| 510 | 510 | */ |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | |
| 249 | 249 | protected function createClient($server, $auth, $options) |
| 250 | 250 | { |
| 251 | - $location = 'https://' . $this->cleanServerUrl($server) . '/EWS/Exchange.asmx'; |
|
| 251 | + $location = 'https://'.$this->cleanServerUrl($server).'/EWS/Exchange.asmx'; |
|
| 252 | 252 | |
| 253 | 253 | $options = array_replace_recursive([ |
| 254 | 254 | 'version' => self::VERSION_2007, |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | $this->soap = new NTLMSoapClient( |
| 265 | 265 | $location, |
| 266 | 266 | $auth, |
| 267 | - dirname(__FILE__) . '/../../Resources/wsdl/services.wsdl', |
|
| 267 | + dirname(__FILE__).'/../../Resources/wsdl/services.wsdl', |
|
| 268 | 268 | $options |
| 269 | 269 | ); |
| 270 | 270 | |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | |
| 336 | 336 | $server = $url['host']; |
| 337 | 337 | if (isset($url['port'])) { |
| 338 | - $server .= ':' . $url['port']; |
|
| 338 | + $server .= ':'.$url['port']; |
|
| 339 | 339 | } |
| 340 | 340 | |
| 341 | 341 | if (isset($url['path'])) { |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | } |
| 453 | 453 | |
| 454 | 454 | if ($code >= 300) { |
| 455 | - throw new ExchangeException('SOAP client returned status of ' . $code, $code); |
|
| 455 | + throw new ExchangeException('SOAP client returned status of '.$code, $code); |
|
| 456 | 456 | } |
| 457 | 457 | |
| 458 | 458 | if (empty($response) || empty($response->getNonNullResponseMessages())) { |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | |
| 468 | 468 | self::$middlewareStack = [ |
| 469 | 469 | //Make the actual SOAP call |
| 470 | - function (MiddlewareRequest $request, callable $next = null) use ($ews) { |
|
| 470 | + function(MiddlewareRequest $request, callable $next = null) use ($ews) { |
|
| 471 | 471 | $client = $ews->getClient(); |
| 472 | 472 | $response = $client->__call($request->getName(), $request->getArguments()); |
| 473 | 473 | $response = MiddlewareResponse::newResponse($response); |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | }, |
| 477 | 477 | |
| 478 | 478 | //Transform an objcet of type Type to an XML Object |
| 479 | - function (MiddlewareRequest $request, callable $next) { |
|
| 479 | + function(MiddlewareRequest $request, callable $next) { |
|
| 480 | 480 | if ($request->getRequest() instanceof Type) { |
| 481 | 481 | $request->setRequest($request->getRequest()->toXmlObject()); |
| 482 | 482 | } |
@@ -485,7 +485,7 @@ discard block |
||
| 485 | 485 | }, |
| 486 | 486 | |
| 487 | 487 | //The SyncScope option isn't available for Exchange 2007 SP1 and below |
| 488 | - function (MiddlewareRequest $request, callable $next) { |
|
| 488 | + function(MiddlewareRequest $request, callable $next) { |
|
| 489 | 489 | $options = $request->getOptions(); |
| 490 | 490 | $version2007SP1 = ($options['version'] == ExchangeWebServices::VERSION_2007 |
| 491 | 491 | || $options['version'] == ExchangeWebServices::VERSION_2007_SP1); |
@@ -514,13 +514,13 @@ discard block |
||
| 514 | 514 | foreach ($middlewareStack as $key => $current) { |
| 515 | 515 | /** @var $current callable */ |
| 516 | 516 | if ($key == 0) { |
| 517 | - $last = function (MiddlewareRequest $request) { |
|
| 517 | + $last = function(MiddlewareRequest $request) { |
|
| 518 | 518 | }; |
| 519 | 519 | } else { |
| 520 | 520 | $last = $newStack[$key - 1]; |
| 521 | 521 | } |
| 522 | 522 | |
| 523 | - $newStack[] = function (MiddlewareRequest $request) use ($current, $last) { |
|
| 523 | + $newStack[] = function(MiddlewareRequest $request) use ($current, $last) { |
|
| 524 | 524 | return $current($request, $last); |
| 525 | 525 | }; |
| 526 | 526 | } |