Completed
Pull Request — master (#83)
by
unknown
07:15
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.
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/API.php 2 patches
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.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
             $names = array($names);
188 188
         }
189 189
 
190
-        $names = array_map(function ($name) {
190
+        $names = array_map(function($name) {
191 191
             return array(
192 192
                 'DisplayName' => $name,
193 193
                 'FolderClass' => 'IPF.Appointment'
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             $names = array($names);
216 216
         }
217 217
 
218
-        $names = array_map(function ($name) {
218
+        $names = array_map(function($name) {
219 219
             return array(
220 220
                 'DisplayName' => $name,
221 221
                 'FolderClass' => 'IPF.Contact'
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             $names = array($names);
240 240
         }
241 241
 
242
-        $names = array_map(function ($name) {
242
+        $names = array_map(function($name) {
243 243
             return ['DisplayName' => $name];
244 244
         }, $names);
245 245
 
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
             $folders = array($folders);
277 277
         }
278 278
 
279
-        $folderIds = array_map(function ($folderId) {
279
+        $folderIds = array_map(function($folderId) {
280 280
             return $folderId->toArray();
281 281
         }, $folders);
282 282
 
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
             $items = array($items);
315 315
         }
316 316
 
317
-        $items = array_map(function ($item) {
317
+        $items = array_map(function($item) {
318 318
             $item = Type\ItemIdType::buildFromArray($item);
319 319
 
320 320
             return $item->toArray();
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.