Completed
Push — master ( 14422e...17eb68 )
by Gareth
02:59
created
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.php 2 patches
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.
Doc Comments   +10 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(
@@ -307,7 +311,7 @@  discard block
 block discarded – undo
307 311
 
308 312
     /**
309 313
      * @param $identifier
310
-     * @return Type\BaseFolderType
314
+     * @return Type
311 315
      */
312 316
     public function getFolder($identifier)
313 317
     {
@@ -328,7 +332,7 @@  discard block
 block discarded – undo
328 332
      * Get a folder by it's distinguishedId
329 333
      *
330 334
      * @param string $distinguishedId
331
-     * @return Type\BaseFolderType
335
+     * @return Type
332 336
      */
333 337
     public function getFolderByDistinguishedId($distinguishedId)
334 338
     {
@@ -342,7 +346,7 @@  discard block
 block discarded – undo
342 346
 
343 347
     /**
344 348
      * @param $folderId
345
-     * @return Type\BaseFolderType
349
+     * @return Type
346 350
      */
347 351
     public function getFolderByFolderId($folderId)
348 352
     {
@@ -354,7 +358,7 @@  discard block
 block discarded – undo
354 358
     /**
355 359
      * @param string|Type\FolderIdType $parentFolderId
356 360
      * @param array $options
357
-     * @return Type\BaseFolderType[]
361
+     * @return Type
358 362
      */
359 363
     public function getChildrenFolders($parentFolderId = 'root', $options = array())
360 364
     {
@@ -426,7 +430,7 @@  discard block
 block discarded – undo
426 430
      * @param Type\FolderIdType $folderId
427 431
      * @param null $syncState
428 432
      * @param array $options
429
-     * @return SyncFolderItemsResponseMessageType
433
+     * @return Type
430 434
      */
431 435
     public function listItemChanges($folderId, $syncState = null, $options = array())
432 436
     {
@@ -525,7 +529,7 @@  discard block
 block discarded – undo
525 529
      * @param string $deleteType
526 530
      * @param bool $deleteSubFolders
527 531
      * @param array $options
528
-     * @return EmptyFolderResponseType
532
+     * @return Type
529 533
      */
530 534
     public function emptyFolder(
531 535
         Type\FolderIdType $folderId,
Please login to merge, or discard this patch.
examples/mail/sendMailWithAttachments.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 $mailId = $return = $api->sendMail($message, array('MessageDisposition' => 'SaveOnly'));
20 20
 
21 21
 //Create our Attachments
22
-$api->getClient()->CreateAttachment(array (
22
+$api->getClient()->CreateAttachment(array(
23 23
     'ParentItemId' => $mailId->toArray(),
24
-    'Attachments' => array (
25
-        'FileAttachment' => array (
24
+    'Attachments' => array(
25
+        'FileAttachment' => array(
26 26
             'Name' => 'picture.jpg',
27 27
             'Content' => file_get_contents('picture.jpg')
28 28
         )
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
 $mailId = $api->getItem($mailId)->getItemId();
36 36
 
37 37
 //Send the message
38
-$api->getClient()->SendItem(array (
38
+$api->getClient()->SendItem(array(
39 39
     'SaveItemToFolder' => true,
40
-    'ItemIds' => array (
40
+    'ItemIds' => array(
41 41
         'ItemId' => $mailId->toArray()
42 42
     )
43 43
 ));
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.