@@ -71,12 +71,12 @@ |
||
| 71 | 71 | ]; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - /** |
|
| 75 | - * Returns the string that should be used to separate scopes when building |
|
| 76 | - * the URL for requesting an access token. |
|
| 77 | - * |
|
| 78 | - * @return string Scope separator, defaults to space |
|
| 79 | - */ |
|
| 74 | + /** |
|
| 75 | + * Returns the string that should be used to separate scopes when building |
|
| 76 | + * the URL for requesting an access token. |
|
| 77 | + * |
|
| 78 | + * @return string Scope separator, defaults to space |
|
| 79 | + */ |
|
| 80 | 80 | protected function getScopeSeparator() |
| 81 | 81 | { |
| 82 | 82 | return ' '; |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function getBaseAuthorizationUrl() |
| 35 | 35 | { |
| 36 | - return 'https://' . |
|
| 37 | - ((strlen($this->server) > 0) ? $this->server . '.' : '') . |
|
| 36 | + return 'https://'. |
|
| 37 | + ((strlen($this->server) > 0) ? $this->server.'.' : ''). |
|
| 38 | 38 | 'cilogon.org/authorize'; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -46,8 +46,8 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function getBaseAccessTokenUrl(array $params) |
| 48 | 48 | { |
| 49 | - return 'https://' . |
|
| 50 | - ((strlen($this->server) > 0) ? $this->server . '.' : '') . |
|
| 49 | + return 'https://'. |
|
| 50 | + ((strlen($this->server) > 0) ? $this->server.'.' : ''). |
|
| 51 | 51 | 'cilogon.org/oauth2/token'; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -60,9 +60,9 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
| 62 | 62 | { |
| 63 | - return 'https://' . |
|
| 64 | - ((strlen($this->server) > 0) ? $this->server . '.' : '') . |
|
| 65 | - 'cilogon.org/oauth2/userinfo?access_token=' . $token; |
|
| 63 | + return 'https://'. |
|
| 64 | + ((strlen($this->server) > 0) ? $this->server.'.' : ''). |
|
| 65 | + 'cilogon.org/oauth2/userinfo?access_token='.$token; |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | $error = true; |
| 112 | 112 | $errmsg = $data['error']; |
| 113 | 113 | if (!empty($data['error_description'])) { |
| 114 | - $errmsg .= ': ' . $data['error_description']; |
|
| 114 | + $errmsg .= ': '.$data['error_description']; |
|
| 115 | 115 | } |
| 116 | 116 | } elseif ($response->getStatusCode() >= 400) { |
| 117 | 117 | $error = true; |