@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | // Parse configuration. |
88 | 88 | $cfg = \SimpleSAML\Configuration::loadFromArray( |
89 | 89 | $config, |
90 | - 'Authentication source ' . var_export($this->authId, true) |
|
90 | + 'Authentication source '.var_export($this->authId, true) |
|
91 | 91 | ); |
92 | 92 | |
93 | 93 | $this->servers = $cfg->getArray('servers', []); |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | ) |
153 | 153 | ) { |
154 | 154 | \SimpleSAML\Logger::info( |
155 | - "Could not add radius server: " . radius_strerror($radius) |
|
155 | + "Could not add radius server: ".radius_strerror($radius) |
|
156 | 156 | ); |
157 | 157 | continue; |
158 | 158 | } |
@@ -164,14 +164,14 @@ discard block |
||
164 | 164 | |
165 | 165 | if (!radius_create_request($radius, \RADIUS_ACCESS_REQUEST)) { |
166 | 166 | throw new \Exception( |
167 | - 'Error creating radius request: ' . radius_strerror($radius) |
|
167 | + 'Error creating radius request: '.radius_strerror($radius) |
|
168 | 168 | ); |
169 | 169 | } |
170 | 170 | |
171 | 171 | if ($this->realm === null) { |
172 | 172 | radius_put_attr($radius, \RADIUS_USER_NAME, $username); |
173 | 173 | } else { |
174 | - radius_put_attr($radius, \RADIUS_USER_NAME, $username . '@' . $this->realm); |
|
174 | + radius_put_attr($radius, \RADIUS_USER_NAME, $username.'@'.$this->realm); |
|
175 | 175 | } |
176 | 176 | radius_put_attr($radius, \RADIUS_USER_PASSWORD, $password); |
177 | 177 | |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | throw new \Exception('Radius authentication error: Challenge requested, but not supported.'); |
190 | 190 | default: |
191 | 191 | throw new \Exception( |
192 | - 'Error during radius authentication: ' . radius_strerror($radius) |
|
192 | + 'Error during radius authentication: '.radius_strerror($radius) |
|
193 | 193 | ); |
194 | 194 | } |
195 | 195 | } |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | while ($resa = radius_get_attr($radius)) { |
216 | 216 | if (!is_array($resa)) { |
217 | 217 | throw new \Exception( |
218 | - 'Error getting radius attributes: ' . radius_strerror($radius) |
|
218 | + 'Error getting radius attributes: '.radius_strerror($radius) |
|
219 | 219 | ); |
220 | 220 | } |
221 | 221 | |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | $resv = radius_get_vendor_attr($resa['data']); |
233 | 233 | if ($resv === false) { |
234 | 234 | throw new \Exception( |
235 | - 'Error getting vendor specific attribute: ' . radius_strerror($radius) |
|
235 | + 'Error getting vendor specific attribute: '.radius_strerror($radius) |
|
236 | 236 | ); |
237 | 237 | } |
238 | 238 |