Completed
Push — master ( 8cf173...32ae29 )
by Gareth
03:16
created
src/API.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     public function createFolders($names, FolderIdType $parentFolder, $options = array(), $folderClass = null)
194 194
     {
195 195
         $names = Utilities\ensureIsArray($names);
196
-        $names = array_map(function ($name) use ($folderClass) {
196
+        $names = array_map(function($name) use ($folderClass) {
197 197
             return ['DisplayName' => $name, 'FolderClass' => $folderClass];
198 198
         }, $names);
199 199
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     {
258 258
         $items = Utilities\ensureIsArray($items, true);
259 259
 
260
-        $items = array_map(function ($item) {
260
+        $items = array_map(function($item) {
261 261
             $item = Type\ItemIdType::buildFromArray($item);
262 262
 
263 263
             return $item->toArray();
Please login to merge, or discard this patch.
src/Utilities/getFolderIds.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 {
9 9
     $folders = ensureIsArray($folderIds);
10 10
 
11
-    $folderIds = array_map(function (BaseFolderIdType $folderId) {
11
+    $folderIds = array_map(function(BaseFolderIdType $folderId) {
12 12
         return $folderId->toArray(true);
13 13
     }, $folders);
14 14
 
15
-    return array_reduce($folderIds, function ($folderIds, $folderId) {
15
+    return array_reduce($folderIds, function($folderIds, $folderId) {
16 16
         $folderIds[key($folderId)][] = current($folderId);
17 17
         return $folderIds;
18 18
     }, []);
Please login to merge, or discard this patch.