Completed
Push — master ( a39432...ca4443 )
by Gareth
03:33
created
examples/contacts/createContacts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 $api = API::withUsernameAndPassword('server', 'username', 'password');
6 6
 
7
-$api->createContacts(array (
7
+$api->createContacts(array(
8 8
     'GivenName' => 'John',
9 9
     'Surname' => 'Smith',
10 10
     'EmailAddresses' => array(
Please login to merge, or discard this patch.
src/API.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         $server,
199 199
         $username,
200 200
         $password,
201
-        $options = [ ]
201
+        $options = []
202 202
     ) {
203 203
         $this->setClient(ExchangeWebServices::fromUsernameAndPassword(
204 204
             $server,
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         ));
209 209
     }
210 210
 
211
-    public static function withUsernameAndPassword($server, $username, $password, $options = [ ])
211
+    public static function withUsernameAndPassword($server, $username, $password, $options = [])
212 212
     {
213 213
         return new static(ExchangeWebServices::fromUsernameAndPassword(
214 214
             $server,
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         ));
219 219
     }
220 220
 
221
-    public static function withCallbackToken($server, $token, $options = [ ])
221
+    public static function withCallbackToken($server, $token, $options = [])
222 222
     {
223 223
         return new static(ExchangeWebServices::fromCallbackToken(
224 224
             $server,
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
     {
579 579
         $result = $this->getClient()->ConvertId(array(
580 580
             'DestinationFormat' => $destinationType,
581
-            'SourceIds' => array (
581
+            'SourceIds' => array(
582 582
                 'AlternateId' => array(
583 583
                     'Format' => $fromType,
584 584
                     'Id' => $itemId->getId(),
Please login to merge, or discard this patch.
examples/contacts/updateContact.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
 //Phone numbers have to be updated in the same manner
18 18
 $api->updateContactItem($contact[0]->getItemId(), array(
19 19
     'GivenName' => 'Jane',
20
-    'EmailAddress:EmailAddress1' => array (
21
-        'EmailAddresses' => array (
20
+    'EmailAddress:EmailAddress1' => array(
21
+        'EmailAddresses' => array(
22 22
             'Entry' => array('Key' => 'EmailAddress1', '_value' => '[email protected]')
23 23
         )
24 24
     ),
25
-    'PhoneNumber:HomePhone' => array (
26
-        'PhoneNumbers' => array (
25
+    'PhoneNumber:HomePhone' => array(
26
+        'PhoneNumbers' => array(
27 27
             'Entry' => array('Key' => 'HomePhone', '_value' => '111')
28 28
         )
29 29
     )
Please login to merge, or discard this patch.
src/API/ExchangeWebServices.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
     protected function createClient($server, $auth, $options)
213 213
     {
214
-        $location = 'https://' . $this->cleanServerUrl($server) . '/EWS/Exchange.asmx';
214
+        $location = 'https://'.$this->cleanServerUrl($server).'/EWS/Exchange.asmx';
215 215
 
216 216
         $options = array_replace_recursive([
217 217
             'version' => self::VERSION_2007,
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         $this->soap = new NTLMSoapClient(
225 225
             $location,
226 226
             $auth,
227
-            dirname(__FILE__) . '/../../Resources/wsdl/services.wsdl',
227
+            dirname(__FILE__).'/../../Resources/wsdl/services.wsdl',
228 228
             $options
229 229
         );
230 230
 
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 
294 294
         $server = $url['host'];
295 295
         if (isset($url['port'])) {
296
-            $server .= ':' . $url['port'];
296
+            $server .= ':'.$url['port'];
297 297
         }
298 298
 
299 299
         if (isset($url['path'])) {
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
         // If the soap call failed then we need to thow an exception.
319 319
         $code = $this->getClient()->getResponseCode();
320 320
         if ($code != 200) {
321
-            throw new \jamesiarmes\PEWS\API\Exception('SOAP client returned status of ' . $code, $code);
321
+            throw new \jamesiarmes\PEWS\API\Exception('SOAP client returned status of '.$code, $code);
322 322
         }
323 323
 
324 324
         if (empty($response) ||
Please login to merge, or discard this patch.