Completed
Push — master ( 543fa7...132976 )
by Gareth
02:43
created
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 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
             ],
307 307
         ];
308 308
 
309
-        $users = array_map(function ($user) {
309
+        $users = array_map(function($user) {
310 310
             return [
311 311
                 'Email' => ['Address' => $user],
312 312
                 'AttendeeType' => 'Required',
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
             ]]);
339 339
         $availability = $this->getAvailabilityFor($startTime, $endTime, $users, $options);
340 340
 
341
-        $availabilities = array_map(function (FreeBusyResponseType $freeBusyResponseType) {
341
+        $availabilities = array_map(function(FreeBusyResponseType $freeBusyResponseType) {
342 342
             return str_split($freeBusyResponseType->getFreeBusyView()->getMergedFreeBusy());
343 343
         }, $availability->getFreeBusyResponseArray()->FreeBusyResponse);
344 344
 
Please login to merge, or discard this patch.
src/API/NTLMSoapClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
             $headers[] = $this->ewsHeaders['timezone'];
111 111
         }
112 112
 
113
-        $headers = array_filter($headers, function ($header) {
113
+        $headers = array_filter($headers, function($header) {
114 114
             return $header instanceof SoapHeader;
115 115
         });
116 116
 
Please login to merge, or discard this patch.
src/API.php 2 patches
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     public function createFolders($names, Type\FolderIdType $parentFolder, $options = array(), $folderClass = null)
192 192
     {
193 193
         $names = Utilities\ensureIsArray($names);
194
-        $names = array_map(function ($name) use ($folderClass) {
194
+        $names = array_map(function($name) use ($folderClass) {
195 195
             return ['DisplayName' => $name, 'FolderClass' => $folderClass];
196 196
         }, $names);
197 197
 
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     {
226 226
         $folders = Utilities\ensureIsArray($folders);
227 227
 
228
-        $folderIds = array_map(function ($folderId) {
228
+        $folderIds = array_map(function($folderId) {
229 229
             return $folderId->toArray();
230 230
         }, $folders);
231 231
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     {
262 262
         $items = Utilities\ensureIsArray($items);
263 263
 
264
-        $items = array_map(function ($item) {
264
+        $items = array_map(function($item) {
265 265
             $item = Type\ItemIdType::buildFromArray($item);
266 266
 
267 267
             return $item->toArray();
Please login to merge, or discard this patch.
src/Utilities/cloneValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     }
9 9
 
10 10
     if (is_array($value)) {
11
-        return array_map(function ($value) {
11
+        return array_map(function($value) {
12 12
             return cloneValue($value);
13 13
         }, $value);
14 14
     }
Please login to merge, or discard this patch.
src/API/Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         }
124 124
 
125 125
         if (is_array($property)) {
126
-            return array_map(function ($property) {
126
+            return array_map(function($property) {
127 127
                 if ($property instanceof Type) {
128 128
                     return $property->toXmlObject();
129 129
                 }
Please login to merge, or discard this patch.