Completed
Push — master ( d942b0...9a3ace )
by Gareth
08:41
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
Doc Comments   +10 added lines, -6 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      *
205 205
      * @param $items
206 206
      * @param array $options
207
-     * @return API\CreateItemResponseType
207
+     * @return Type
208 208
      */
209 209
     public function createItems($items, $options = array())
210 210
     {
@@ -239,6 +239,10 @@  discard block
 block discarded – undo
239 239
         return $this->getClient()->UpdateItem($request)->getItems();
240 240
     }
241 241
 
242
+    /**
243
+     * @param string $itemType
244
+     * @param string $uriType
245
+     */
242 246
     protected function buildUpdateItemChanges($itemType, $uriType, $changes)
243 247
     {
244 248
         $setItemFields = array();
@@ -330,7 +334,7 @@  discard block
 block discarded – undo
330 334
 
331 335
     /**
332 336
      * @param $identifier
333
-     * @return Type\BaseFolderType
337
+     * @return Type
334 338
      */
335 339
     public function getFolder($identifier)
336 340
     {
@@ -350,7 +354,7 @@  discard block
 block discarded – undo
350 354
      * Get a folder by it's distinguishedId
351 355
      *
352 356
      * @param string $distinguishedId
353
-     * @return Type\BaseFolderType
357
+     * @return Type
354 358
      */
355 359
     public function getFolderByDistinguishedId($distinguishedId)
356 360
     {
@@ -364,7 +368,7 @@  discard block
 block discarded – undo
364 368
 
365 369
     /**
366 370
      * @param $folderId
367
-     * @return Type\BaseFolderType
371
+     * @return Type
368 372
      */
369 373
     public function getFolderByFolderId($folderId)
370 374
     {
@@ -374,7 +378,7 @@  discard block
 block discarded – undo
374 378
     }
375 379
 
376 380
     /**
377
-     * @param $folderName
381
+     * @param string $folderName
378 382
      * @param string|Type\FolderIdType $parentFolderId
379 383
      * @param array $options
380 384
      * @return bool|Type\BaseFolderType
@@ -439,7 +443,7 @@  discard block
 block discarded – undo
439 443
      * @param Type\FolderIdType $folderId
440 444
      * @param null $syncState
441 445
      * @param array $options
442
-     * @return mixed
446
+     * @return Type
443 447
      */
444 448
     public function listItemChanges($folderId, $syncState = null, $options = array())
445 449
     {
Please login to merge, or discard this patch.
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.
src/API/NTLMSoapClient.php 2 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.
src/Calendar/CalendarAPI.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * Get a list of calendar items between two dates/times
91 91
      *
92
-     * @param string|DateTime $start
93
-     * @param string|DateTime $end
92
+     * @param string $start
93
+     * @param string $end
94 94
      * @param array $options
95 95
      * @return CalendarItemType[]
96 96
      */
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * @param $id
140 140
      * @param $changeKey
141
-     * @return Type\CalendarItemType
141
+     * @return Type
142 142
      */
143 143
     public function getCalendarItem($id, $changeKey)
144 144
     {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      *
207 207
      * @param null $syncState
208 208
      * @param array $options
209
-     * @return mixed
209
+     * @return Type
210 210
      */
211 211
     public function listChanges($syncState = null, $options = array())
212 212
     {
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.