@@ -146,11 +146,11 @@ discard block |
||
| 146 | 146 | $this->marshalObject($root, $eapIdp); |
| 147 | 147 | $dom = dom_import_simplexml($root)->ownerDocument; |
| 148 | 148 | //TODO schema validation makes sense so probably should be used |
| 149 | - if ($dom->schemaValidate(ROOT . '/devices/xml/eap-metadata.xsd') === FALSE) { |
|
| 149 | + if ($dom->schemaValidate(ROOT.'/devices/xml/eap-metadata.xsd') === FALSE) { |
|
| 150 | 150 | throw new Exception("Schema validation failed for eap-metadata"); |
| 151 | 151 | } |
| 152 | - file_put_contents($this->installerBasename . '.eap-config', $dom->saveXML()); |
|
| 153 | - return($this->installerBasename . '.eap-config'); |
|
| 152 | + file_put_contents($this->installerBasename.'.eap-config', $dom->saveXML()); |
|
| 153 | + return($this->installerBasename.'.eap-config'); |
|
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | private const ATTRIBUTENAMES = [ |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | $this->loggerInstance->debug(4, "Missing class definition for $attrName\n"); |
| 177 | 177 | return([]); |
| 178 | 178 | } |
| 179 | - $className = "\devices\xml\\" . self::ATTRIBUTENAMES[$attrName]; |
|
| 179 | + $className = "\devices\xml\\".self::ATTRIBUTENAMES[$attrName]; |
|
| 180 | 180 | $objs = []; |
| 181 | 181 | if ($this->langScope === 'global') { |
| 182 | 182 | foreach ($attributeList['langs'] as $language => $value) { |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | $displayname = new DisplayName(); |
| 215 | 215 | if (isset($profileNameLangs)) { |
| 216 | 216 | $langOrC = isset($profileNameLangs[$language]) ? $profileNameLangs[$language] : $profileNameLangs['C']; |
| 217 | - $value .= ' - ' . $langOrC; |
|
| 217 | + $value .= ' - '.$langOrC; |
|
| 218 | 218 | } |
| 219 | 219 | $displayname->setValue($value); |
| 220 | 220 | $displayname->setAttributes(['lang' => $language]); |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | $displayname = new DisplayName(); |
| 225 | 225 | $value = $attr['general:instname'][0]; |
| 226 | 226 | if ($attr['internal:profile_count'][0] > 1) { |
| 227 | - $value .= ' - ' . $attr['profile:name'][0]; |
|
| 227 | + $value .= ' - '.$attr['profile:name'][0]; |
|
| 228 | 228 | } |
| 229 | 229 | $displayname->setValue($value); |
| 230 | 230 | $objs[] = $displayname; |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | $attr = $this->attributes; |
| 242 | 242 | if (isset($attr['general:logo_file'][0])) { |
| 243 | 243 | $logoString = base64_encode($attr['general:logo_file'][0]); |
| 244 | - $logoMime = 'image/' . $attr['internal:logo_file'][0]['mime']; |
|
| 244 | + $logoMime = 'image/'.$attr['internal:logo_file'][0]['mime']; |
|
| 245 | 245 | $providerlogo = new ProviderLogo(); |
| 246 | 246 | $providerlogo->setAttributes(['mime' => $logoMime, 'encoding' => 'base64']); |
| 247 | 247 | $providerlogo->setValue($logoString); |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | |
| 347 | 347 | if (isset($inner["METHOD"]) && $inner["METHOD"]) { |
| 348 | 348 | $innerauthmethod = new InnerAuthenticationMethod(); |
| 349 | - $typeOfInner = "\devices\xml\\" . ($inner["EAP"] ? 'EAPMethod' : 'NonEAPAuthMethod'); |
|
| 349 | + $typeOfInner = "\devices\xml\\".($inner["EAP"] ? 'EAPMethod' : 'NonEAPAuthMethod'); |
|
| 350 | 350 | $eapmethod = new $typeOfInner(); |
| 351 | 351 | $eaptype = new Type(); |
| 352 | 352 | $eaptype->setValue($inner['METHOD']); |