Completed
Push — master ( c42a0c...4c2102 )
by Gareth
05:13
created
examples/mail/creatingAnEmailUnsent.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 require_once "vendor/autoload.php";
4 4
 
5 5
 use jamesiarmes\PEWS\API\Type;
6
-use jamesiarmes\PEWS\Mail\MailAPI;
7 6
 
8 7
 $api = MailApi::withUsernameAndPassword('server', 'username', 'password');
9 8
 
Please login to merge, or discard this patch.
examples/mail/gettingEmailAttachments.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 require_once "vendor/autoload.php";
4 4
 
5
-use jamesiarmes\PEWS\API\Type;
6 5
 use jamesiarmes\PEWS\Mail\MailAPI;
7 6
 
8 7
 $api = MailAPI::withUsernameAndPassword('server', 'username', 'password');
Please login to merge, or discard this patch.
src/API.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace jamesiarmes\PEWS;
4 4
 
5 5
 use jamesiarmes\PEWS\API\ExchangeWebServices;
6
-use jamesiarmes\PEWS\API\ExchangeWebServicesAuth;
7 6
 use jamesiarmes\PEWS\API\Type;
8 7
 use jamesiarmes\PEWS\Calendar\CalendarAPI;
9 8
 use jamesiarmes\PEWS\Mail\MailAPI;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $server,
155 155
         $username,
156 156
         $password,
157
-        $options = [ ]
157
+        $options = []
158 158
     ) {
159 159
         $this->setClient(ExchangeWebServices::fromUsernameAndPassword(
160 160
             $server,
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         ));
165 165
     }
166 166
 
167
-    public static function withUsernameAndPassword($server, $username, $password, $options = [ ])
167
+    public static function withUsernameAndPassword($server, $username, $password, $options = [])
168 168
     {
169 169
         return new static(ExchangeWebServices::fromUsernameAndPassword(
170 170
             $server,
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         ));
175 175
     }
176 176
 
177
-    public static function withCallbackToken($server, $token, $options = [ ])
177
+    public static function withCallbackToken($server, $token, $options = [])
178 178
     {
179 179
         return new static(ExchangeWebServices::fromCallbackToken(
180 180
             $server,
Please login to merge, or discard this patch.
Doc Comments   +10 added lines, -6 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      *
209 209
      * @param $items
210 210
      * @param array $options
211
-     * @return API\CreateItemResponseType
211
+     * @return Type
212 212
      */
213 213
     public function createItems($items, $options = array())
214 214
     {
@@ -243,6 +243,10 @@  discard block
 block discarded – undo
243 243
         return $this->getClient()->UpdateItem($request)->getItems();
244 244
     }
245 245
 
246
+    /**
247
+     * @param string $itemType
248
+     * @param string $uriType
249
+     */
246 250
     protected function buildUpdateItemChanges($itemType, $uriType, $changes)
247 251
     {
248 252
         $setItemFields = array();
@@ -334,7 +338,7 @@  discard block
 block discarded – undo
334 338
 
335 339
     /**
336 340
      * @param $identifier
337
-     * @return Type\BaseFolderType
341
+     * @return Type
338 342
      */
339 343
     public function getFolder($identifier)
340 344
     {
@@ -354,7 +358,7 @@  discard block
 block discarded – undo
354 358
      * Get a folder by it's distinguishedId
355 359
      *
356 360
      * @param string $distinguishedId
357
-     * @return Type\BaseFolderType
361
+     * @return Type
358 362
      */
359 363
     public function getFolderByDistinguishedId($distinguishedId)
360 364
     {
@@ -368,7 +372,7 @@  discard block
 block discarded – undo
368 372
 
369 373
     /**
370 374
      * @param $folderId
371
-     * @return Type\BaseFolderType
375
+     * @return Type
372 376
      */
373 377
     public function getFolderByFolderId($folderId)
374 378
     {
@@ -408,7 +412,7 @@  discard block
 block discarded – undo
408 412
     }
409 413
 
410 414
     /**
411
-     * @param $folderName
415
+     * @param string $folderName
412 416
      * @param string|Type\FolderIdType $parentFolderId
413 417
      * @param array $options
414 418
      * @return bool|Type\BaseFolderType
@@ -453,7 +457,7 @@  discard block
 block discarded – undo
453 457
      * @param Type\FolderIdType $folderId
454 458
      * @param null $syncState
455 459
      * @param array $options
456
-     * @return SyncFolderItemsResponseMessageType
460
+     * @return Type
457 461
      */
458 462
     public function listItemChanges($folderId, $syncState = null, $options = array())
459 463
     {
Please login to merge, or discard this patch.
src/API/NTLMSoapClient.php 3 patches
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,10 +90,8 @@
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-     * @param mixed $location
94
-     * @param string $user
95
-     * @param string $password
96
-     * @param $wsdl
93
+     * @param string $location
94
+     * @param string $wsdl
97 95
      * @param array $options
98 96
      */
99 97
     public function __construct($location, $auth, $wsdl, $options = array())
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use jamesiarmes\PEWS\API\Type\ExchangeImpersonation;
6 6
 use SoapClient;
7
-use GuzzleHttp;
8 7
 use SoapHeader;
9 8
 use jamesiarmes\PEWS\HttpPlayback\HttpPlayback;
10 9
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
      */
94 94
     public function __call($name, $args)
95 95
     {
96
-        $this->__default_headers = array (
96
+        $this->__default_headers = array(
97 97
             $this->ewsHeaders['version'],
98 98
             $this->ewsHeaders['impersonation']
99 99
         );
Please login to merge, or discard this patch.
bin/generateModels.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use Symfony\Component\Console\Application;
6 6
 use jamesiarmes\PEWS\Generator\ConvertToPHP;
7 7
 
8
-error_reporting(error_reporting() &~E_NOTICE);
8
+error_reporting(error_reporting() & ~E_NOTICE);
9 9
 
10 10
 $cli = new Application('Convert XSD to PHP classes Command Line Interface', "2.0");
11 11
 $cli->setCatchExceptions(true);
Please login to merge, or discard this patch.
src/API/Enumeration.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Contains \jamesiarmes\PEWS\API\Enumeration.
4
- */
3
+     * Contains \jamesiarmes\PEWS\API\Enumeration.
4
+     */
5 5
 
6 6
 namespace jamesiarmes\PEWS\API;
7 7
 
Please login to merge, or discard this patch.
src/API/Enumeration/AffectedTaskOccurrencesType.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Contains \jamesiarmes\PEWS\API\Enumeration\AffectedTaskOccurrencesType.
4
- */
3
+     * Contains \jamesiarmes\PEWS\API\Enumeration\AffectedTaskOccurrencesType.
4
+     */
5 5
 
6 6
 namespace jamesiarmes\PEWS\API\Enumeration;
7 7
 
Please login to merge, or discard this patch.
src/API/Enumeration/AppointmentState.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Contains \jamesiarmes\PEWS\API\Enumeration\AppointmentState.
4
- */
3
+     * Contains \jamesiarmes\PEWS\API\Enumeration\AppointmentState.
4
+     */
5 5
 
6 6
 namespace jamesiarmes\PEWS\API\Enumeration;
7 7
 
Please login to merge, or discard this patch.
src/API/Enumeration/AvailabilityProxyRequestType.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Contains \jamesiarmes\PEWS\API\Enumeration\AvailabilityProxyRequestType.
4
- */
3
+     * Contains \jamesiarmes\PEWS\API\Enumeration\AvailabilityProxyRequestType.
4
+     */
5 5
 
6 6
 namespace jamesiarmes\PEWS\API\Enumeration;
7 7
 
Please login to merge, or discard this patch.