Completed
Pull Request — master (#153)
by
unknown
07:31
created
src/API/MagicMethodsTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
     }
138 138
 
139 139
     /**
140
-     * @param $name
140
+     * @param string $name
141 141
      * @param $value
142 142
      * @return null
143 143
      */
Please login to merge, or discard this patch.
src/API/ExchangeWebServices.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/API/ItemUpdateBuilder.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 = [];
Please login to merge, or discard this patch.
src/API/FieldURIManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -91,6 +91,9 @@
 block discarded – undo
91 91
         return self::$unIndexedFieldURIs[$fieldName][$preference];
92 92
     }
93 93
 
94
+    /**
95
+     * @param string $fieldName
96
+     */
94 97
     public static function getIndexedFieldUriByName($fieldName, $preference = 'item', $entryKey = false)
95 98
     {
96 99
         self::setupFieldUris();
Please login to merge, or discard this patch.
src/CalendarAPI.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -100,10 +100,10 @@  discard block
 block discarded – undo
100 100
     /**
101 101
      * Get a list of calendar items between two dates/times
102 102
      *
103
-     * @param string|DateTime $start
104
-     * @param string|DateTime $end
103
+     * @param string $start
104
+     * @param string $end
105 105
      * @param array $options
106
-     * @return CalendarItemType[]|Type\FindItemParentType
106
+     * @return Type
107 107
      */
108 108
     public function getCalendarItems($start = '12:00 AM', $end = '11:59 PM', $options = array())
109 109
     {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     /**
143 143
      * @param $id
144 144
      * @param $changeKey
145
-     * @return Type\CalendarItemType
145
+     * @return Type
146 146
      */
147 147
     public function getCalendarItem($id, $changeKey)
148 148
     {
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @param null $syncState
214 214
      * @param array $options
215
-     * @return API\Message\SyncFolderItemsResponseMessageType
215
+     * @return Type
216 216
      */
217 217
     public function listChanges($syncState = null, $options = array())
218 218
     {
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      * @param array $users
283 283
      * @param array $options
284 284
      *
285
-     * @return API\Message\GetUserAvailabilityResponseType
285
+     * @return Type
286 286
      */
287 287
     public function getAvailabilityFor($startTime, $endTime, array $users, array $options = array())
288 288
     {
Please login to merge, or discard this patch.
src/API/ExchangeAutodiscover.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -358,8 +358,8 @@  discard block
 block discarded – undo
358 358
     }
359 359
 
360 360
     /**
361
-     * @param $majorVersion
362
-     * @param $minorVersion
361
+     * @param string $majorVersion
362
+     * @param string $minorVersion
363 363
      * @return bool|mixed
364 364
      */
365 365
     protected function parseVersionBefore2013($majorVersion, $minorVersion)
@@ -387,6 +387,11 @@  discard block
 block discarded – undo
387 387
         return constant(ExchangeWebServices::class . "::$constant");
388 388
     }
389 389
 
390
+    /**
391
+     * @param string $majorVersion
392
+     * @param string $minorVersion
393
+     * @param string $buildVersion
394
+     */
390 395
     protected function parseVersionAfter2013($majorVersion, $minorVersion, $buildVersion)
391 396
     {
392 397
         if ($minorVersion >= 1) {
Please login to merge, or discard this patch.
src/API.php 1 patch
Doc Comments   +13 added lines, -6 removed lines patch added patch discarded remove patch
@@ -94,6 +94,10 @@  discard block
 block discarded – undo
94 94
         return $this->client;
95 95
     }
96 96
 
97
+    /**
98
+     * @param string $username
99
+     * @param string $password
100
+     */
97 101
     public static function withUsernameAndPassword($server, $username, $password, $options = [])
98 102
     {
99 103
         return new static(ExchangeWebServices::fromUsernameAndPassword(
@@ -189,6 +193,9 @@  discard block
 block discarded – undo
189 193
         return $this->createFolders($names, $parentFolder, $options, 'IPF.Contact');
190 194
     }
191 195
 
196
+    /**
197
+     * @param string $folderClass
198
+     */
192 199
     public function createFolders($names, BaseFolderIdType $parentFolder, $options = array(), $folderClass = null)
193 200
     {
194 201
         $names = Utilities\ensureIsArray($names);
@@ -277,7 +284,7 @@  discard block
 block discarded – undo
277 284
 
278 285
     /**
279 286
      * @param $identifier
280
-     * @return Type\BaseFolderType
287
+     * @return Type
281 288
      */
282 289
     public function getFolder($identifier)
283 290
     {
@@ -298,7 +305,7 @@  discard block
 block discarded – undo
298 305
      * Get a folder by it's distinguishedId
299 306
      *
300 307
      * @param string $distinguishedId
301
-     * @return Type\BaseFolderType
308
+     * @return Type
302 309
      */
303 310
     public function getFolderByDistinguishedId($distinguishedId)
304 311
     {
@@ -312,7 +319,7 @@  discard block
 block discarded – undo
312 319
 
313 320
     /**
314 321
      * @param string|BaseFolderIdType $folderId
315
-     * @return Type\BaseFolderType
322
+     * @return Type
316 323
      */
317 324
     public function getFolderByFolderId($folderId)
318 325
     {
@@ -328,7 +335,7 @@  discard block
 block discarded – undo
328 335
     /**
329 336
      * @param string|BaseFolderIdType $parentFolderId
330 337
      * @param array $options
331
-     * @return Type\BaseFolderType[]
338
+     * @return Type
332 339
      */
333 340
     public function getChildrenFolders($parentFolderId = 'root', array $options = array())
334 341
     {
@@ -398,7 +405,7 @@  discard block
 block discarded – undo
398 405
      * @param BaseFolderIdType $folderId
399 406
      * @param null $syncState
400 407
      * @param array $options
401
-     * @return SyncFolderItemsResponseMessageType
408
+     * @return Type
402 409
      */
403 410
     public function listItemChanges($folderId, $syncState = null, array $options = array())
404 411
     {
@@ -493,7 +500,7 @@  discard block
 block discarded – undo
493 500
      * @param string $deleteType
494 501
      * @param bool $deleteSubFolders
495 502
      * @param array $options
496
-     * @return EmptyFolderResponseType
503
+     * @return Type
497 504
      */
498 505
     public function emptyFolder(
499 506
         BaseFolderIdType $folderId,
Please login to merge, or discard this patch.
src/ContactsAPI.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * @param Type\BaseFolderIdType $folderId
59 59
      * @param array $options
60
-     * @return Type\ContactItemType[]
60
+     * @return Type
61 61
      */
62 62
     public function getContacts($folderId = null, $options = array())
63 63
     {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     /**
84 84
      * @param Type\ItemIdType $itemId
85
-     * @return Type\ContactItemType
85
+     * @return Type
86 86
      */
87 87
     public function getContact($itemId)
88 88
     {
Please login to merge, or discard this patch.
src/MailAPI.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      *
74 74
      * @param Type\BaseFolderIdType $folderId
75 75
      * @param array $options
76
-     * @return Type\MessageType[]
76
+     * @return Type
77 77
      */
78 78
     public function getMailItems($folderId = null, $options = array())
79 79
     {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * @param Type\BaseFolderIdType $folderId
104 104
      * @param array $options
105
-     * @return Type\MessageType[]
105
+     * @return Type
106 106
      */
107 107
     public function getUnreadMailItems($folderId = null, $options = array())
108 108
     {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
     /**
196 196
      * @param array $options
197
-     * @return API\Message\EmptyFolderResponseType
197
+     * @return Type
198 198
      */
199 199
     public function emptyTrash(array $options = [])
200 200
     {
Please login to merge, or discard this patch.