@@ -3,7 +3,6 @@ |
||
3 | 3 | require_once "vendor/autoload.php"; |
4 | 4 | |
5 | 5 | use jamesiarmes\PEWS\API\Type; |
6 | -use jamesiarmes\PEWS\Mail\MailAPI; |
|
7 | 6 | |
8 | 7 | $api = MailApi::withUsernameAndPassword('server', 'username', 'password'); |
9 | 8 |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | require_once "vendor/autoload.php"; |
4 | 4 | |
5 | -use jamesiarmes\PEWS\API\Type; |
|
6 | 5 | use jamesiarmes\PEWS\Mail\MailAPI; |
7 | 6 | |
8 | 7 | $api = MailAPI::withUsernameAndPassword('server', 'username', 'password'); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace jamesiarmes\PEWS; |
4 | 4 | |
5 | 5 | use jamesiarmes\PEWS\API\ExchangeWebServices; |
6 | -use jamesiarmes\PEWS\API\ExchangeWebServicesAuth; |
|
7 | 6 | use jamesiarmes\PEWS\API\Type; |
8 | 7 | use jamesiarmes\PEWS\Calendar\CalendarAPI; |
9 | 8 | use jamesiarmes\PEWS\Mail\MailAPI; |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $server, |
155 | 155 | $username, |
156 | 156 | $password, |
157 | - $options = [ ] |
|
157 | + $options = [] |
|
158 | 158 | ) { |
159 | 159 | $this->setClient(ExchangeWebServices::fromUsernameAndPassword( |
160 | 160 | $server, |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | )); |
165 | 165 | } |
166 | 166 | |
167 | - public static function withUsernameAndPassword($server, $username, $password, $options = [ ]) |
|
167 | + public static function withUsernameAndPassword($server, $username, $password, $options = []) |
|
168 | 168 | { |
169 | 169 | return new static(ExchangeWebServices::fromUsernameAndPassword( |
170 | 170 | $server, |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | )); |
175 | 175 | } |
176 | 176 | |
177 | - public static function withCallbackToken($server, $token, $options = [ ]) |
|
177 | + public static function withCallbackToken($server, $token, $options = []) |
|
178 | 178 | { |
179 | 179 | return new static(ExchangeWebServices::fromCallbackToken( |
180 | 180 | $server, |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | * |
209 | 209 | * @param $items |
210 | 210 | * @param array $options |
211 | - * @return API\CreateItemResponseType |
|
211 | + * @return Type |
|
212 | 212 | */ |
213 | 213 | public function createItems($items, $options = array()) |
214 | 214 | { |
@@ -243,6 +243,10 @@ discard block |
||
243 | 243 | return $this->getClient()->UpdateItem($request)->getItems(); |
244 | 244 | } |
245 | 245 | |
246 | + /** |
|
247 | + * @param string $itemType |
|
248 | + * @param string $uriType |
|
249 | + */ |
|
246 | 250 | protected function buildUpdateItemChanges($itemType, $uriType, $changes) |
247 | 251 | { |
248 | 252 | $setItemFields = array(); |
@@ -334,7 +338,7 @@ discard block |
||
334 | 338 | |
335 | 339 | /** |
336 | 340 | * @param $identifier |
337 | - * @return Type\BaseFolderType |
|
341 | + * @return Type |
|
338 | 342 | */ |
339 | 343 | public function getFolder($identifier) |
340 | 344 | { |
@@ -354,7 +358,7 @@ discard block |
||
354 | 358 | * Get a folder by it's distinguishedId |
355 | 359 | * |
356 | 360 | * @param string $distinguishedId |
357 | - * @return Type\BaseFolderType |
|
361 | + * @return Type |
|
358 | 362 | */ |
359 | 363 | public function getFolderByDistinguishedId($distinguishedId) |
360 | 364 | { |
@@ -368,7 +372,7 @@ discard block |
||
368 | 372 | |
369 | 373 | /** |
370 | 374 | * @param $folderId |
371 | - * @return Type\BaseFolderType |
|
375 | + * @return Type |
|
372 | 376 | */ |
373 | 377 | public function getFolderByFolderId($folderId) |
374 | 378 | { |
@@ -408,7 +412,7 @@ discard block |
||
408 | 412 | } |
409 | 413 | |
410 | 414 | /** |
411 | - * @param $folderName |
|
415 | + * @param string $folderName |
|
412 | 416 | * @param string|Type\FolderIdType $parentFolderId |
413 | 417 | * @param array $options |
414 | 418 | * @return bool|Type\BaseFolderType |
@@ -453,7 +457,7 @@ discard block |
||
453 | 457 | * @param Type\FolderIdType $folderId |
454 | 458 | * @param null $syncState |
455 | 459 | * @param array $options |
456 | - * @return SyncFolderItemsResponseMessageType |
|
460 | + * @return Type |
|
457 | 461 | */ |
458 | 462 | public function listItemChanges($folderId, $syncState = null, $options = array()) |
459 | 463 | { |
@@ -90,10 +90,8 @@ |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @param mixed $location |
|
94 | - * @param string $user |
|
95 | - * @param string $password |
|
96 | - * @param $wsdl |
|
93 | + * @param string $location |
|
94 | + * @param string $wsdl |
|
97 | 95 | * @param array $options |
98 | 96 | */ |
99 | 97 | public function __construct($location, $auth, $wsdl, $options = array()) |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use jamesiarmes\PEWS\API\Type\ExchangeImpersonation; |
6 | 6 | use SoapClient; |
7 | -use GuzzleHttp; |
|
8 | 7 | use SoapHeader; |
9 | 8 | use jamesiarmes\PEWS\HttpPlayback\HttpPlayback; |
10 | 9 |
@@ -93,7 +93,7 @@ |
||
93 | 93 | */ |
94 | 94 | public function __call($name, $args) |
95 | 95 | { |
96 | - $this->__default_headers = array ( |
|
96 | + $this->__default_headers = array( |
|
97 | 97 | $this->ewsHeaders['version'], |
98 | 98 | $this->ewsHeaders['impersonation'] |
99 | 99 | ); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Symfony\Component\Console\Application; |
6 | 6 | use jamesiarmes\PEWS\Generator\ConvertToPHP; |
7 | 7 | |
8 | -error_reporting(error_reporting() &~E_NOTICE); |
|
8 | +error_reporting(error_reporting() & ~E_NOTICE); |
|
9 | 9 | |
10 | 10 | $cli = new Application('Convert XSD to PHP classes Command Line Interface', "2.0"); |
11 | 11 | $cli->setCatchExceptions(true); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Contains \jamesiarmes\PEWS\API\Enumeration\AffectedTaskOccurrencesType. |
|
4 | - */ |
|
3 | + * Contains \jamesiarmes\PEWS\API\Enumeration\AffectedTaskOccurrencesType. |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace jamesiarmes\PEWS\API\Enumeration; |
7 | 7 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Contains \jamesiarmes\PEWS\API\Enumeration\AppointmentState. |
|
4 | - */ |
|
3 | + * Contains \jamesiarmes\PEWS\API\Enumeration\AppointmentState. |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace jamesiarmes\PEWS\API\Enumeration; |
7 | 7 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Contains \jamesiarmes\PEWS\API\Enumeration\AvailabilityProxyRequestType. |
|
4 | - */ |
|
3 | + * Contains \jamesiarmes\PEWS\API\Enumeration\AvailabilityProxyRequestType. |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace jamesiarmes\PEWS\API\Enumeration; |
7 | 7 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Contains \jamesiarmes\PEWS\API\Enumeration\BodyTypeResponseType. |
|
4 | - */ |
|
3 | + * Contains \jamesiarmes\PEWS\API\Enumeration\BodyTypeResponseType. |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace jamesiarmes\PEWS\API\Enumeration; |
7 | 7 |