@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | public function __construct($azureActiveDirectory) |
14 | 14 | { |
15 | 15 | // IF they didnt pre-populate all our AAD stuff then make a new one for the common tenant |
16 | - if (! $azureActiveDirectory) { |
|
16 | + if (!$azureActiveDirectory) { |
|
17 | 17 | $azureActiveDirectory = new AzureActiveDirectory(); |
18 | 18 | } |
19 | 19 | $this->azureActiveDirectory = $azureActiveDirectory; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | protected function getAccessToken() |
29 | 29 | { |
30 | - if (! $this->accessToken) { |
|
30 | + if (!$this->accessToken) { |
|
31 | 31 | $this->authenticateAsApplication(); |
32 | 32 | } |
33 | 33 | return $this->accessToken; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | // Include version before any pieces of the url |
77 | 77 | array_unshift($pieces, $this->graphApiVersion); |
78 | 78 | // Build the url |
79 | - foreach($pieces as $piece) { |
|
79 | + foreach ($pieces as $piece) { |
|
80 | 80 | $url .= '/'.$piece; |
81 | 81 | } |
82 | 82 | return $url; |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | { |
124 | 124 | $parsed = []; |
125 | 125 | if (isset($graphData[$key]) && is_array($graphData[$key])) { |
126 | - foreach($graphData[$key] as $value) { |
|
126 | + foreach ($graphData[$key] as $value) { |
|
127 | 127 | if (isset($value[$property]) && $value[$property]) { |
128 | 128 | $parsed[$value[$property]] = $value; |
129 | 129 | } |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | // Make sure the tenant is formatted like xyzcorp.onmicrosoft.com |
37 | 37 | $regex = '/\.onmicrosoft\.com/'; |
38 | 38 | if (! preg_match($regex, $tenantName, $hits)) { |
39 | - // Append the suffix if it is missing |
|
40 | - $tenantName .= '.onmicrosoft.com'; |
|
39 | + // Append the suffix if it is missing |
|
40 | + $tenantName .= '.onmicrosoft.com'; |
|
41 | 41 | } |
42 | 42 | } |
43 | 43 | $this->tenantName = $tenantName; |
@@ -46,9 +46,9 @@ discard block |
||
46 | 46 | public function buildOpenIdConfigUrl() |
47 | 47 | { |
48 | 48 | $this->openIdConfigUrl = $this->baseUrl . '/' |
49 | - . $this->tenantName . '/' |
|
50 | - . $this->version . '/' |
|
51 | - . $this->wellKnownOpenIdConfig; |
|
49 | + . $this->tenantName . '/' |
|
50 | + . $this->version . '/' |
|
51 | + . $this->wellKnownOpenIdConfig; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | public function downloadOpenIdConfig() |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | if ($tenantName != 'common') { |
36 | 36 | // Make sure the tenant is formatted like xyzcorp.onmicrosoft.com |
37 | 37 | $regex = '/\.onmicrosoft\.com/'; |
38 | - if (! preg_match($regex, $tenantName, $hits)) { |
|
38 | + if (!preg_match($regex, $tenantName, $hits)) { |
|
39 | 39 | // Append the suffix if it is missing |
40 | 40 | $tenantName .= '.onmicrosoft.com'; |
41 | 41 | } |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | |
46 | 46 | public function buildOpenIdConfigUrl() |
47 | 47 | { |
48 | - $this->openIdConfigUrl = $this->baseUrl . '/' |
|
49 | - . $this->tenantName . '/' |
|
50 | - . $this->version . '/' |
|
48 | + $this->openIdConfigUrl = $this->baseUrl.'/' |
|
49 | + . $this->tenantName.'/' |
|
50 | + . $this->version.'/' |
|
51 | 51 | . $this->wellKnownOpenIdConfig; |
52 | 52 | } |
53 | 53 |