Completed
Push — master ( 32ae29...9a8ecb )
by Gareth
03:30
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/ContactsAPI.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * @param Type\FolderIdType $folderId
37 37
      * @param array $options
38
-     * @return Type\ContactItemType[]
38
+     * @return Type
39 39
      */
40 40
     public function getContacts($folderId = null, $options = array())
41 41
     {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     /**
64 64
      * @param Type\ItemIdType $itemId
65
-     * @return Type\ContactItemType
65
+     * @return Type
66 66
      */
67 67
     public function getContact($itemId)
68 68
     {
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/MailAPI.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      *
75 75
      * @param Type\FolderIdType
76 76
      * @param array $options
77
-     * @return Type\MessageType[]
77
+     * @return Type
78 78
      */
79 79
     public function getMailItems($folderId = null, $options = array())
80 80
     {
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     /**
106 106
      * @param Type\FolderIdType $folderId
107 107
      * @param array $options
108
-     * @return Type\MessageType[]
108
+     * @return Type
109 109
      */
110 110
     public function getUnreadMailItems($folderId = null, $options = array())
111 111
     {
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 
199 199
     /**
200 200
      * @param array $options
201
-     * @return API\Message\EmptyFolderResponseType
201
+     * @return Type
202 202
      */
203 203
     public function emptyTrash(array $options = [])
204 204
     {
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
@@ -95,6 +95,10 @@  discard block
 block discarded – undo
95 95
         return $this->client;
96 96
     }
97 97
 
98
+    /**
99
+     * @param string $username
100
+     * @param string $password
101
+     */
98 102
     public static function withUsernameAndPassword($server, $username, $password, $options = [])
99 103
     {
100 104
         return new static(ExchangeWebServices::fromUsernameAndPassword(
@@ -190,6 +194,9 @@  discard block
 block discarded – undo
190 194
         return $this->createFolders($names, $parentFolder, $options, 'IPF.Contact');
191 195
     }
192 196
 
197
+    /**
198
+     * @param string $folderClass
199
+     */
193 200
     public function createFolders($names, FolderIdType $parentFolder, $options = array(), $folderClass = null)
194 201
     {
195 202
         $names = Utilities\ensureIsArray($names);
@@ -278,7 +285,7 @@  discard block
 block discarded – undo
278 285
 
279 286
     /**
280 287
      * @param $identifier
281
-     * @return Type\BaseFolderType
288
+     * @return Type
282 289
      */
283 290
     public function getFolder($identifier)
284 291
     {
@@ -299,7 +306,7 @@  discard block
 block discarded – undo
299 306
      * Get a folder by it's distinguishedId
300 307
      *
301 308
      * @param string $distinguishedId
302
-     * @return Type\BaseFolderType
309
+     * @return Type
303 310
      */
304 311
     public function getFolderByDistinguishedId($distinguishedId)
305 312
     {
@@ -313,7 +320,7 @@  discard block
 block discarded – undo
313 320
 
314 321
     /**
315 322
      * @param $folderId
316
-     * @return Type\BaseFolderType
323
+     * @return Type
317 324
      */
318 325
     public function getFolderByFolderId($folderId)
319 326
     {
@@ -325,7 +332,7 @@  discard block
 block discarded – undo
325 332
     /**
326 333
      * @param string|FolderIdType $parentFolderId
327 334
      * @param array $options
328
-     * @return Type\BaseFolderType[]
335
+     * @return Type
329 336
      */
330 337
     public function getChildrenFolders($parentFolderId = 'root', $options = array())
331 338
     {
@@ -397,7 +404,7 @@  discard block
 block discarded – undo
397 404
      * @param FolderIdType $folderId
398 405
      * @param null $syncState
399 406
      * @param array $options
400
-     * @return SyncFolderItemsResponseMessageType
407
+     * @return Type
401 408
      */
402 409
     public function listItemChanges($folderId, $syncState = null, $options = array())
403 410
     {
@@ -492,7 +499,7 @@  discard block
 block discarded – undo
492 499
      * @param string $deleteType
493 500
      * @param bool $deleteSubFolders
494 501
      * @param array $options
495
-     * @return EmptyFolderResponseType
502
+     * @return Type
496 503
      */
497 504
     public function emptyFolder(
498 505
         FolderIdType $folderId,
Please login to merge, or discard this patch.