@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | * |
| 205 | 205 | * @param $items |
| 206 | 206 | * @param array $options |
| 207 | - * @return API\CreateItemResponseType |
|
| 207 | + * @return Type |
|
| 208 | 208 | */ |
| 209 | 209 | public function createItems($items, $options = array()) |
| 210 | 210 | { |
@@ -239,6 +239,10 @@ discard block |
||
| 239 | 239 | return $this->getClient()->UpdateItem($request)->getItems(); |
| 240 | 240 | } |
| 241 | 241 | |
| 242 | + /** |
|
| 243 | + * @param string $itemType |
|
| 244 | + * @param string $uriType |
|
| 245 | + */ |
|
| 242 | 246 | protected function buildUpdateItemChanges($itemType, $uriType, $changes) |
| 243 | 247 | { |
| 244 | 248 | $setItemFields = array(); |
@@ -330,7 +334,7 @@ discard block |
||
| 330 | 334 | |
| 331 | 335 | /** |
| 332 | 336 | * @param $identifier |
| 333 | - * @return Type\BaseFolderType |
|
| 337 | + * @return Type |
|
| 334 | 338 | */ |
| 335 | 339 | public function getFolder($identifier) |
| 336 | 340 | { |
@@ -350,7 +354,7 @@ discard block |
||
| 350 | 354 | * Get a folder by it's distinguishedId |
| 351 | 355 | * |
| 352 | 356 | * @param string $distinguishedId |
| 353 | - * @return Type\BaseFolderType |
|
| 357 | + * @return Type |
|
| 354 | 358 | */ |
| 355 | 359 | public function getFolderByDistinguishedId($distinguishedId) |
| 356 | 360 | { |
@@ -364,7 +368,7 @@ discard block |
||
| 364 | 368 | |
| 365 | 369 | /** |
| 366 | 370 | * @param $folderId |
| 367 | - * @return Type\BaseFolderType |
|
| 371 | + * @return Type |
|
| 368 | 372 | */ |
| 369 | 373 | public function getFolderByFolderId($folderId) |
| 370 | 374 | { |
@@ -374,7 +378,7 @@ discard block |
||
| 374 | 378 | } |
| 375 | 379 | |
| 376 | 380 | /** |
| 377 | - * @param $folderName |
|
| 381 | + * @param string $folderName |
|
| 378 | 382 | * @param string|Type\FolderIdType $parentFolderId |
| 379 | 383 | * @param array $options |
| 380 | 384 | * @return bool|Type\BaseFolderType |
@@ -439,7 +443,7 @@ discard block |
||
| 439 | 443 | * @param Type\FolderIdType $folderId |
| 440 | 444 | * @param null $syncState |
| 441 | 445 | * @param array $options |
| 442 | - * @return mixed |
|
| 446 | + * @return Type |
|
| 443 | 447 | */ |
| 444 | 448 | public function listItemChanges($folderId, $syncState = null, $options = array()) |
| 445 | 449 | { |
@@ -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, |
@@ -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()) |
@@ -89,8 +89,8 @@ discard block |
||
| 89 | 89 | /** |
| 90 | 90 | * Get a list of calendar items between two dates/times |
| 91 | 91 | * |
| 92 | - * @param string|DateTime $start |
|
| 93 | - * @param string|DateTime $end |
|
| 92 | + * @param string $start |
|
| 93 | + * @param string $end |
|
| 94 | 94 | * @param array $options |
| 95 | 95 | * @return CalendarItemType[] |
| 96 | 96 | */ |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * @param $id |
| 140 | 140 | * @param $changeKey |
| 141 | - * @return Type\CalendarItemType |
|
| 141 | + * @return Type |
|
| 142 | 142 | */ |
| 143 | 143 | public function getCalendarItem($id, $changeKey) |
| 144 | 144 | { |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | * |
| 207 | 207 | * @param null $syncState |
| 208 | 208 | * @param array $options |
| 209 | - * @return mixed |
|
| 209 | + * @return Type |
|
| 210 | 210 | */ |
| 211 | 211 | public function listChanges($syncState = null, $options = array()) |
| 212 | 212 | { |
@@ -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); |
@@ -2319,7 +2319,7 @@ |
||
| 2319 | 2319 | * |
| 2320 | 2320 | * @var string |
| 2321 | 2321 | */ |
| 2322 | - const INVALID_RETENTION_TAG_TYPE_MISMATCH = 'ErrorInvalidRetentionTagTypeMismatch'; |
|
| 2322 | + const INVALID_RETENTION_TAG_TYPE_MISMATCH = 'ErrorInvalidRetentionTagTypeMismatch'; |
|
| 2323 | 2323 | |
| 2324 | 2324 | /** |
| 2325 | 2325 | * This error occurs if the routing type that is passed for an |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | trait MagicMethodsTrait |
| 14 | 14 | { |
| 15 | - protected $_typeMap = [ ]; |
|
| 15 | + protected $_typeMap = []; |
|
| 16 | 16 | |
| 17 | 17 | public function __call($name, $arguments) |
| 18 | 18 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | public static function arrayIsAssoc($array) |
| 124 | 124 | { |
| 125 | - return (bool)count(array_filter(array_keys($array), 'is_string')); |
|
| 125 | + return (bool) count(array_filter(array_keys($array), 'is_string')); |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |
@@ -162,6 +162,6 @@ discard block |
||
| 162 | 162 | return ''; |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | - return (string)$this->_; |
|
| 165 | + return (string) $this->_; |
|
| 166 | 166 | } |
| 167 | 167 | } |
@@ -70,36 +70,36 @@ |
||
| 70 | 70 | { |
| 71 | 71 | return [ |
| 72 | 72 | 'DateTime' => [ |
| 73 | - 'string' => function ($value) { |
|
| 73 | + 'string' => function($value) { |
|
| 74 | 74 | return new \DateTime($value); |
| 75 | 75 | } |
| 76 | 76 | ], |
| 77 | 77 | 'dateTime' => [ |
| 78 | - 'string' => function ($value) { |
|
| 78 | + 'string' => function($value) { |
|
| 79 | 79 | return new \DateTime($value); |
| 80 | 80 | } |
| 81 | 81 | ], |
| 82 | 82 | 'date' => [ |
| 83 | - 'string' => function ($value) { |
|
| 83 | + 'string' => function($value) { |
|
| 84 | 84 | return new \DateTime($value); |
| 85 | 85 | } |
| 86 | 86 | ], |
| 87 | 87 | 'time' => [ |
| 88 | - 'string' => function ($value) { |
|
| 88 | + 'string' => function($value) { |
|
| 89 | 89 | return new \DateTime($value); |
| 90 | 90 | } |
| 91 | 91 | ], |
| 92 | 92 | 'ExchangeFormat' => [ |
| 93 | - 'DateTime' => function ($value) { |
|
| 93 | + 'DateTime' => function($value) { |
|
| 94 | 94 | return $value->format('c'); |
| 95 | 95 | }, |
| 96 | - 'dateTime' => function ($value) { |
|
| 96 | + 'dateTime' => function($value) { |
|
| 97 | 97 | return $value->format('c'); |
| 98 | 98 | }, |
| 99 | - 'date' => function ($value) { |
|
| 99 | + 'date' => function($value) { |
|
| 100 | 100 | return $value->format('Y-m-d'); |
| 101 | 101 | }, |
| 102 | - 'time' => function ($value) { |
|
| 102 | + 'time' => function($value) { |
|
| 103 | 103 | return $value->format('H:i:s'); |
| 104 | 104 | } |
| 105 | 105 | ] |
@@ -20,14 +20,14 @@ |
||
| 20 | 20 | |
| 21 | 21 | private $shutdownRegistered = false; |
| 22 | 22 | |
| 23 | - private static $instances = [ ]; |
|
| 23 | + private static $instances = []; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * @var Client |
| 27 | 27 | */ |
| 28 | 28 | private $client; |
| 29 | 29 | |
| 30 | - public static function getInstance($options = [ ]) |
|
| 30 | + public static function getInstance($options = []) |
|
| 31 | 31 | { |
| 32 | 32 | foreach (self::$instances as $instance) { |
| 33 | 33 | if ($instance['options'] == $options) { |