Completed
Push — master ( ba4277...ac6956 )
by Gareth
03:23
created
src/API/EWSAutodiscover.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             $constant .= "_SP$minorVersion";
120 120
         }
121 121
 
122
-        return constant(ExchangeWebServices::class . "::$constant");
122
+        return constant(ExchangeWebServices::class."::$constant");
123 123
     }
124 124
 
125 125
     protected function newAPI($email, $password, $username = null, $options = [])
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
     protected function tryTopLevelDomain($email, $password, $username)
231 231
     {
232 232
         $topLevelDomain = $this->getTopLevelDomainFromEmail($email);
233
-        $url = 'https://www.' . $topLevelDomain . self::AUTODISCOVER_PATH;
233
+        $url = 'https://www.'.$topLevelDomain.self::AUTODISCOVER_PATH;
234 234
 
235 235
         return $this->doNTLMPost($url, $email, $password, $username);
236 236
     }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     protected function tryAutoDiscoverSubDomain($email, $password, $username)
249 249
     {
250 250
         $topLevelDomain = $this->getTopLevelDomainFromEmail($email);
251
-        $url = 'https://autodiscover.' . $topLevelDomain . self::AUTODISCOVER_PATH;
251
+        $url = 'https://autodiscover.'.$topLevelDomain.self::AUTODISCOVER_PATH;
252 252
 
253 253
         return $this->doNTLMPost($url, $email, $password, $username);
254 254
     }
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     {
268 268
         $topLevelDomain = $this->getTopLevelDomainFromEmail($email);
269 269
 
270
-        $url = 'http://autodiscover.' . $topLevelDomain . self::AUTODISCOVER_PATH;
270
+        $url = 'http://autodiscover.'.$topLevelDomain.self::AUTODISCOVER_PATH;
271 271
 
272 272
         $client = $this->httpPlayback->getHttpClient();
273 273
         $postOptions = [
@@ -304,11 +304,11 @@  discard block
 block discarded – undo
304 304
     protected function trySRVRecord($email, $password, $username)
305 305
     {
306 306
         $topLevelDomain = $this->getTopLevelDomainFromEmail($email);
307
-        $srvHost = '_autodiscover._tcp.' . $topLevelDomain;
307
+        $srvHost = '_autodiscover._tcp.'.$topLevelDomain;
308 308
         $lookup = dns_get_record($srvHost, DNS_SRV);
309 309
         if (sizeof($lookup) > 0) {
310 310
             $host = $lookup[0]['target'];
311
-            $url = 'https://' . $host . self::AUTODISCOVER_PATH;
311
+            $url = 'https://'.$host.self::AUTODISCOVER_PATH;
312 312
 
313 313
             return $this->doNTLMPost($url, $email, $password, $username);
314 314
         }
Please login to merge, or discard this patch.