@@ -144,11 +144,11 @@ discard block |
||
| 144 | 144 | marshalObject($root, $eapIdp); |
| 145 | 145 | $dom = dom_import_simplexml($root)->ownerDocument; |
| 146 | 146 | //TODO schema validation makes sense so probably should be used |
| 147 | - if ($dom->schemaValidate(ROOT . '/devices/xml/eap-metadata.xsd') === FALSE) { |
|
| 147 | + if ($dom->schemaValidate(ROOT.'/devices/xml/eap-metadata.xsd') === FALSE) { |
|
| 148 | 148 | throw new Exception("Schema validation failed for eap-metadata"); |
| 149 | 149 | } |
| 150 | - file_put_contents($this->installerBasename . '.eap-config', $dom->saveXML()); |
|
| 151 | - return($this->installerBasename . '.eap-config'); |
|
| 150 | + file_put_contents($this->installerBasename.'.eap-config', $dom->saveXML()); |
|
| 151 | + return($this->installerBasename.'.eap-config'); |
|
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | private const ATTRIBUTENAMES = [ |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | $this->loggerInstance->debug(4, "Missing class definition for $attrName\n"); |
| 175 | 175 | return([]); |
| 176 | 176 | } |
| 177 | - $className = "\devices\xml\\" . self::ATTRIBUTENAMES[$attrName]; |
|
| 177 | + $className = "\devices\xml\\".self::ATTRIBUTENAMES[$attrName]; |
|
| 178 | 178 | $objs = []; |
| 179 | 179 | if ($this->langScope === 'global') { |
| 180 | 180 | foreach ($attributeList['langs'] as $language => $value) { |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | $displayname = new DisplayName(); |
| 213 | 213 | if (isset($profileNameLangs)) { |
| 214 | 214 | $langOrC = isset($profileNameLangs[$language]) ? $profileNameLangs[$language] : $profileNameLangs['C']; |
| 215 | - $value .= ' - ' . $langOrC; |
|
| 215 | + $value .= ' - '.$langOrC; |
|
| 216 | 216 | } |
| 217 | 217 | $displayname->setValue($value); |
| 218 | 218 | $displayname->setAttributes(['lang' => $language]); |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | $displayname = new DisplayName(); |
| 223 | 223 | $value = $attr['general:instname'][0]; |
| 224 | 224 | if ($attr['internal:profile_count'][0] > 1) { |
| 225 | - $value .= ' - ' . $attr['profile:name'][0]; |
|
| 225 | + $value .= ' - '.$attr['profile:name'][0]; |
|
| 226 | 226 | } |
| 227 | 227 | $displayname->setValue($value); |
| 228 | 228 | $objs[] = $displayname; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | $attr = $this->attributes; |
| 240 | 240 | if (isset($attr['general:logo_file'][0])) { |
| 241 | 241 | $logoString = base64_encode($attr['general:logo_file'][0]); |
| 242 | - $logoMime = 'image/' . $attr['internal:logo_file'][0]['mime']; |
|
| 242 | + $logoMime = 'image/'.$attr['internal:logo_file'][0]['mime']; |
|
| 243 | 243 | $providerlogo = new ProviderLogo(); |
| 244 | 244 | $providerlogo->setAttributes(['mime' => $logoMime, 'encoding' => 'base64']); |
| 245 | 245 | $providerlogo->setValue($logoString); |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | |
| 345 | 345 | if (isset($inner["METHOD"]) && $inner["METHOD"]) { |
| 346 | 346 | $innerauthmethod = new InnerAuthenticationMethod(); |
| 347 | - $typeOfInner = "\devices\xml\\" . ($inner["EAP"] ? 'EAPMethod' : 'NonEAPAuthMethod'); |
|
| 347 | + $typeOfInner = "\devices\xml\\".($inner["EAP"] ? 'EAPMethod' : 'NonEAPAuthMethod'); |
|
| 348 | 348 | $eapmethod = new $typeOfInner(); |
| 349 | 349 | $eaptype = new Type(); |
| 350 | 350 | $eaptype->setValue($inner['METHOD']); |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | * @param \devices\XML\ClientSideCredential $clientsidecredential the ClientSideCredential to which the realm info is to be added |
| 394 | 394 | * @return void |
| 395 | 395 | */ |
| 396 | - private function setClientSideRealm ($clientsidecredential) { |
|
| 396 | + private function setClientSideRealm($clientsidecredential) { |
|
| 397 | 397 | $attr = $this->attributes; |
| 398 | 398 | $realm = \core\common\Entity::getAttributeValue($attr, 'internal:realm', 0); |
| 399 | 399 | if ($realm === NULL) { |