@@ -2,10 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace garethp\ews; |
| 4 | 4 | |
| 5 | -use garethp\ews\API\Enumeration\DisposalType; |
|
| 6 | 5 | use garethp\ews\API\Enumeration\IndexBasePointType; |
| 7 | 6 | use garethp\ews\API\ExchangeWebServices; |
| 8 | -use garethp\ews\API\ItemUpdateBuilder; |
|
| 9 | 7 | use garethp\ews\API\Message\GetServerTimeZonesType; |
| 10 | 8 | use garethp\ews\API\Message\SyncFolderItemsResponseMessageType; |
| 11 | 9 | use garethp\ews\API\Message\UpdateItemResponseMessageType; |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | $names = array($names); |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | - $names = array_map(function ($name) { |
|
| 194 | + $names = array_map(function($name) { |
|
| 195 | 195 | return array( |
| 196 | 196 | 'DisplayName' => $name, |
| 197 | 197 | 'FolderClass' => 'IPF.Appointment' |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | if ($item instanceof Type\ItemIdType) { |
| 276 | 276 | $item = $item->toArray(); |
| 277 | 277 | } |
| 278 | - $item = (array)$item; |
|
| 278 | + $item = (array) $item; |
|
| 279 | 279 | $itemIds[] = array( |
| 280 | 280 | 'Id' => $item['Id'], |
| 281 | 281 | 'ChangeKey' => $item['ChangeKey'] |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | |
| 428 | 428 | /** |
| 429 | 429 | * @param Message\BaseResponseMessageType $response |
| 430 | - * @param $code |
|
| 430 | + * @param integer $code |
|
| 431 | 431 | * @throws ExchangeException |
| 432 | 432 | * @throws NoResponseReturnedException |
| 433 | 433 | * @throws ServiceUnavailableException |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | } |
| 478 | 478 | |
| 479 | 479 | /** |
| 480 | - * @param array $middlewareStack |
|
| 480 | + * @param callable[] $middlewareStack |
|
| 481 | 481 | * @param MiddlewareRequest $request |
| 482 | 482 | * @return MiddlewareResponse |
| 483 | 483 | */ |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | |
| 254 | 254 | protected function createClient($server, $auth, $options) |
| 255 | 255 | { |
| 256 | - $location = 'https://' . $this->cleanServerUrl($server) . '/EWS/Exchange.asmx'; |
|
| 256 | + $location = 'https://'.$this->cleanServerUrl($server).'/EWS/Exchange.asmx'; |
|
| 257 | 257 | |
| 258 | 258 | $options = array_replace_recursive([ |
| 259 | 259 | 'version' => self::VERSION_2007, |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | $this->soap = new NTLMSoapClient( |
| 270 | 270 | $location, |
| 271 | 271 | $auth, |
| 272 | - dirname(__FILE__) . '/../../Resources/wsdl/services.wsdl', |
|
| 272 | + dirname(__FILE__).'/../../Resources/wsdl/services.wsdl', |
|
| 273 | 273 | $options |
| 274 | 274 | ); |
| 275 | 275 | |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | |
| 328 | 328 | $server = $url['host']; |
| 329 | 329 | if (isset($url['port'])) { |
| 330 | - $server .= ':' . $url['port']; |
|
| 330 | + $server .= ':'.$url['port']; |
|
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | if (isset($url['path'])) { |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | } |
| 445 | 445 | |
| 446 | 446 | if ($code >= 300) { |
| 447 | - throw new ExchangeException('SOAP client returned status of ' . $code, $code); |
|
| 447 | + throw new ExchangeException('SOAP client returned status of '.$code, $code); |
|
| 448 | 448 | } |
| 449 | 449 | |
| 450 | 450 | if (empty($response) || empty($response->getNonNullResponseMessages())) { |
@@ -486,7 +486,7 @@ discard block |
||
| 486 | 486 | $newStack = []; |
| 487 | 487 | foreach ($middlewareStack as $key => $current) { |
| 488 | 488 | /** @var $current callable */ |
| 489 | - $last = function () { |
|
| 489 | + $last = function() { |
|
| 490 | 490 | }; |
| 491 | 491 | |
| 492 | 492 | if ($key != 0) { |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | } |
| 495 | 495 | |
| 496 | 496 | $current = Closure::bind($current, $this, $this); |
| 497 | - $newStack[] = function (MiddlewareRequest $request) use ($current, $last) { |
|
| 497 | + $newStack[] = function(MiddlewareRequest $request) use ($current, $last) { |
|
| 498 | 498 | return $current($request, $last); |
| 499 | 499 | }; |
| 500 | 500 | } |
@@ -24,6 +24,9 @@ discard block |
||
| 24 | 24 | return $updateArray; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $uriType |
|
| 29 | + */ |
|
| 27 | 30 | protected static function buildUpdateDeleteItemFields($uriType, $changes) |
| 28 | 31 | { |
| 29 | 32 | $deleteItemFields = []; |
@@ -40,6 +43,10 @@ discard block |
||
| 40 | 43 | return $deleteItemFields; |
| 41 | 44 | } |
| 42 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $itemType |
|
| 48 | + * @param string $uriType |
|
| 49 | + */ |
|
| 43 | 50 | protected static function buildUpdateSetItemFields($itemType, $uriType, $changes) |
| 44 | 51 | { |
| 45 | 52 | $setItemFields = []; |