Completed
Push — master ( 8d3cae...fd23bf )
by Gareth
05:45
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.php 1 patch
Doc Comments   +13 added lines, -6 removed lines patch added patch discarded remove patch
@@ -93,6 +93,10 @@  discard block
 block discarded – undo
93 93
         return $this->client;
94 94
     }
95 95
 
96
+    /**
97
+     * @param string $username
98
+     * @param string $password
99
+     */
96 100
     public static function withUsernameAndPassword($server, $username, $password, $options = [])
97 101
     {
98 102
         return new static(ExchangeWebServices::fromUsernameAndPassword(
@@ -188,6 +192,9 @@  discard block
 block discarded – undo
188 192
         return $this->createFolders($names, $parentFolder, $options, 'IPF.Contact');
189 193
     }
190 194
 
195
+    /**
196
+     * @param string $folderClass
197
+     */
191 198
     public function createFolders($names, Type\FolderIdType $parentFolder, $options = array(), $folderClass = null)
192 199
     {
193 200
         $names = Utilities\ensureIsArray($names);
@@ -282,7 +289,7 @@  discard block
 block discarded – undo
282 289
 
283 290
     /**
284 291
      * @param $identifier
285
-     * @return Type\BaseFolderType
292
+     * @return Type
286 293
      */
287 294
     public function getFolder($identifier)
288 295
     {
@@ -303,7 +310,7 @@  discard block
 block discarded – undo
303 310
      * Get a folder by it's distinguishedId
304 311
      *
305 312
      * @param string $distinguishedId
306
-     * @return Type\BaseFolderType
313
+     * @return Type
307 314
      */
308 315
     public function getFolderByDistinguishedId($distinguishedId)
309 316
     {
@@ -317,7 +324,7 @@  discard block
 block discarded – undo
317 324
 
318 325
     /**
319 326
      * @param $folderId
320
-     * @return Type\BaseFolderType
327
+     * @return Type
321 328
      */
322 329
     public function getFolderByFolderId($folderId)
323 330
     {
@@ -329,7 +336,7 @@  discard block
 block discarded – undo
329 336
     /**
330 337
      * @param string|Type\FolderIdType $parentFolderId
331 338
      * @param array $options
332
-     * @return Type\BaseFolderType[]
339
+     * @return Type
333 340
      */
334 341
     public function getChildrenFolders($parentFolderId = 'root', $options = array())
335 342
     {
@@ -401,7 +408,7 @@  discard block
 block discarded – undo
401 408
      * @param Type\FolderIdType $folderId
402 409
      * @param null $syncState
403 410
      * @param array $options
404
-     * @return SyncFolderItemsResponseMessageType
411
+     * @return Type
405 412
      */
406 413
     public function listItemChanges($folderId, $syncState = null, $options = array())
407 414
     {
@@ -496,7 +503,7 @@  discard block
 block discarded – undo
496 503
      * @param string $deleteType
497 504
      * @param bool $deleteSubFolders
498 505
      * @param array $options
499
-     * @return EmptyFolderResponseType
506
+     * @return Type
500 507
      */
501 508
     public function emptyFolder(
502 509
         Type\FolderIdType $folderId,
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.