Completed
Push — master ( 62e8ac...4b82f4 )
by Gareth
03:48
created
src/API.php 2 patches
Doc Comments   +10 added lines, -6 removed lines patch added patch discarded remove patch
@@ -92,6 +92,10 @@  discard block
 block discarded – undo
92 92
         return $this->client;
93 93
     }
94 94
 
95
+    /**
96
+     * @param string $username
97
+     * @param string $password
98
+     */
95 99
     public static function withUsernameAndPassword($server, $username, $password, $options = [])
96 100
     {
97 101
         return new static(ExchangeWebServices::fromUsernameAndPassword(
@@ -306,7 +310,7 @@  discard block
 block discarded – undo
306 310
 
307 311
     /**
308 312
      * @param $identifier
309
-     * @return Type\BaseFolderType
313
+     * @return Type
310 314
      */
311 315
     public function getFolder($identifier)
312 316
     {
@@ -327,7 +331,7 @@  discard block
 block discarded – undo
327 331
      * Get a folder by it's distinguishedId
328 332
      *
329 333
      * @param string $distinguishedId
330
-     * @return Type\BaseFolderType
334
+     * @return Type
331 335
      */
332 336
     public function getFolderByDistinguishedId($distinguishedId)
333 337
     {
@@ -341,7 +345,7 @@  discard block
 block discarded – undo
341 345
 
342 346
     /**
343 347
      * @param $folderId
344
-     * @return Type\BaseFolderType
348
+     * @return Type
345 349
      */
346 350
     public function getFolderByFolderId($folderId)
347 351
     {
@@ -353,7 +357,7 @@  discard block
 block discarded – undo
353 357
     /**
354 358
      * @param string|Type\FolderIdType $parentFolderId
355 359
      * @param array $options
356
-     * @return Type\BaseFolderType[]
360
+     * @return Type
357 361
      */
358 362
     public function getChildrenFolders($parentFolderId = 'root', $options = array())
359 363
     {
@@ -383,7 +387,7 @@  discard block
 block discarded – undo
383 387
      * @param string $folderName
384 388
      * @param string|Type\FolderIdType $parentFolderId
385 389
      * @param array $options
386
-     * @return bool|Type\BaseFolderType
390
+     * @return boolean
387 391
      */
388 392
     public function getFolderByDisplayName($folderName, $parentFolderId = 'root', $options = array())
389 393
     {
@@ -425,7 +429,7 @@  discard block
 block discarded – undo
425 429
      * @param Type\FolderIdType $folderId
426 430
      * @param null $syncState
427 431
      * @param array $options
428
-     * @return SyncFolderItemsResponseMessageType
432
+     * @return Type
429 433
      */
430 434
     public function listItemChanges($folderId, $syncState = null, $options = array())
431 435
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             $names = array($names);
187 187
         }
188 188
 
189
-        $names = array_map(function ($name) {
189
+        $names = array_map(function($name) {
190 190
             return array(
191 191
                 'DisplayName' => $name,
192 192
                 'FolderClass' => 'IPF.Appointment'
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             $names = array($names);
211 211
         }
212 212
 
213
-        $names = array_map(function ($name) {
213
+        $names = array_map(function($name) {
214 214
             return ['DisplayName' => $name];
215 215
         }, $names);
216 216
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
             $folders = array($folders);
248 248
         }
249 249
 
250
-        $folderIds = array_map(function ($folderId) {
250
+        $folderIds = array_map(function($folderId) {
251 251
             return $folderId->toArray();
252 252
         }, $folders);
253 253
 
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             $items = array($items);
286 286
         }
287 287
 
288
-        $items = array_map(function ($item) {
288
+        $items = array_map(function($item) {
289 289
             $item = Type\ItemIdType::buildFromArray($item);
290 290
 
291 291
             return $item->toArray();
Please login to merge, or discard this patch.