| Total Complexity | 62 |
| Total Lines | 508 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
Complex classes like DeviceXML often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use DeviceXML, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 46 | abstract class DeviceXML extends \core\DeviceConfig |
||
| 47 | { |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @var array $AuthMethodElements is used to limit |
||
| 51 | * XML elements present within ServerSideCredentials and |
||
| 52 | * ClientSideCredentials to ones which are relevant |
||
| 53 | * for a given EAP method. |
||
| 54 | * @var array of XLM element names which are allowed |
||
| 55 | * EAP method names are defined in core/EAP.php |
||
| 56 | */ |
||
| 57 | private $authMethodElements = [ |
||
| 58 | 'server' => [ |
||
| 59 | \core\common\EAP::TLS => ['CA', 'ServerID'], |
||
| 60 | \core\common\EAP::FAST => ['CA', 'ServerID'], |
||
| 61 | \core\common\EAP::PEAP => ['CA', 'ServerID'], |
||
| 62 | \core\common\EAP::TTLS => ['CA', 'ServerID'], |
||
| 63 | \core\common\EAP::PWD => ['ServerID'], |
||
| 64 | ], |
||
| 65 | 'client' => [ |
||
| 66 | \core\common\EAP::TLS => ['UserName', 'Password', 'ClientCertificate'], |
||
| 67 | \core\common\EAP::NE_MSCHAP2 => ['UserName', 'Password', 'OuterIdentity', 'InnerIdentitySuffix', 'InnerIdentityHint'], |
||
| 68 | \core\common\EAP::MSCHAP2 => ['UserName', 'Password', 'OuterIdentity', 'InnerIdentitySuffix', 'InnerIdentityHint'], |
||
| 69 | \core\common\EAP::GTC => ['UserName', 'OneTimeToken'], |
||
| 70 | \core\common\EAP::NE_PAP => ['UserName', 'Password', 'OuterIdentity', 'InnerIdentitySuffix', 'InnerIdentityHint'], |
||
| 71 | \core\common\EAP::NE_SILVERBULLET => ['UserName', 'ClientCertificate', 'OuterIdentity'], |
||
| 72 | ] |
||
| 73 | ]; |
||
| 74 | |||
| 75 | /** |
||
| 76 | * construct the device |
||
| 77 | */ |
||
| 78 | public function __construct() |
||
| 81 | } |
||
| 82 | |||
| 83 | /** |
||
| 84 | * $langScope can be 'global' when all lang and all lang-specific information |
||
| 85 | * is dumped or 'single' when only the selected lang (and defaults) are passed |
||
| 86 | * NOTICE: 'global' is not yet supported |
||
| 87 | * |
||
| 88 | * @var string |
||
| 89 | */ |
||
| 90 | public $langScope; |
||
| 91 | |||
| 92 | /** |
||
| 93 | * whether all EAP types should be included in the file or only the |
||
| 94 | * preferred one |
||
| 95 | * |
||
| 96 | * @var boolean |
||
| 97 | */ |
||
| 98 | public $allEaps = FALSE; |
||
| 99 | |||
| 100 | /** |
||
| 101 | * vendor-specific additional information, this is nit yest fully |
||
| 102 | * implemented due to lack of use cases. |
||
| 103 | * |
||
| 104 | * @var array |
||
| 105 | */ |
||
| 106 | public $VendorSpecific; |
||
| 107 | |||
| 108 | /** |
||
| 109 | * create HTML code explaining the installer |
||
| 110 | * |
||
| 111 | * @return string |
||
| 112 | */ |
||
| 113 | public function writeDeviceInfo() |
||
| 114 | { |
||
| 115 | \core\common\Entity::intoThePotatoes(); |
||
| 116 | $out = "<p>"; |
||
| 117 | $out .= sprintf(_("This is a generic configuration file in the IETF <a href='%s'>EAP Metadata -00</a> XML format."), "https://tools.ietf.org/html/draft-winter-opsawg-eap-metadata-00"); |
||
| 118 | \core\common\Entity::outOfThePotatoes(); |
||
| 119 | return $out; |
||
| 120 | } |
||
| 121 | |||
| 122 | /** |
||
| 123 | * create the actual XML file |
||
| 124 | * |
||
| 125 | * @return string filename of the generated installer |
||
| 126 | * @throws Exception |
||
| 127 | * |
||
| 128 | */ |
||
| 129 | public function writeInstaller() |
||
| 130 | { |
||
| 131 | \core\common\Entity::intoThePotatoes(); |
||
| 132 | $eapIdp = new \core\DeviceXMLmain(); |
||
| 133 | $eapIdp->setAttribute('version', '1'); |
||
| 134 | if ($this->langScope === 'single') { |
||
| 135 | $eapIdp->setAttribute('lang', $this->languageInstance->getLang()); |
||
| 136 | } |
||
| 137 | if (empty($this->attributes['internal:realm'][0])) { |
||
| 138 | $eapIdp->setAttribute('ID', 'undefined'); |
||
| 139 | $namespace = 'urn:undefined'; |
||
| 140 | } else { |
||
| 141 | $eapIdp->setAttribute('ID', $this->attributes['internal:realm'][0]); |
||
| 142 | $namespace = 'urn:RFC4282:realm'; |
||
| 143 | } |
||
| 144 | $eapIdp->setAttribute('namespace', $namespace); |
||
| 145 | $authMethods = new \core\DeviceXMLmain(); |
||
| 146 | $authMethods->setChild('AuthenticationMethod', $this->getAuthMethodsList()); |
||
| 147 | $eapIdp->setChild('AuthenticationMethods', $authMethods); |
||
| 148 | $eapIdp->setChild('CredentialApplicability', $this->getCredentialApplicability()); |
||
| 149 | // TODO $eap_idp->setChild('ValidUntil',$this->getValidUntil()); |
||
| 150 | $eapIdp->setChild('ProviderInfo', $this->getProviderInfo()); |
||
| 151 | // TODO $eap_idp->setChild('VendorSpecific',$this->getVendorSpecific()); |
||
| 152 | |||
| 153 | // Generate XML |
||
| 154 | $rootname = 'EAPIdentityProviderList'; |
||
| 155 | $root = new \SimpleXMLElement("<?xml version=\"1.0\" encoding=\"utf-8\" ?><{$rootname} xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"eap-metadata.xsd\"></{$rootname}>"); |
||
| 156 | \core\DeviceXMLmain::marshalObject($root, 'EAPIdentityProvider', $eapIdp); |
||
| 157 | $dom = dom_import_simplexml($root)->ownerDocument; |
||
| 158 | if ($dom->schemaValidate(ROOT.'/devices/eap_config/eap-metadata.xsd') === FALSE) { |
||
| 159 | throw new Exception("Schema validation failed for eap-metadata"); |
||
| 160 | } |
||
| 161 | $dom->formatOutput = true; |
||
| 162 | file_put_contents($this->installerBasename.'.eap-config', $dom->saveXML()); |
||
| 163 | \core\common\Entity::outOfThePotatoes(); |
||
| 164 | return($this->installerBasename.'.eap-config'); |
||
| 165 | } |
||
| 166 | |||
| 167 | |||
| 168 | /** |
||
| 169 | * determines the inner authentication. Is it EAP, and which mechanism is used to convey actual auth data |
||
| 170 | * @param array $eap the EAP type for which we want to get the inner auth |
||
| 171 | * @return array |
||
| 172 | */ |
||
| 173 | private function innerAuth($eap) |
||
| 174 | { |
||
| 175 | $out = []; |
||
| 176 | $out['EAP'] = 0; |
||
| 177 | // this is a hack - eduroamCAT does not handle NE_MSCHAP2 however |
||
| 178 | // treats the inner NE_MSCHAP2 correctly wheb set to the EAP type |
||
| 179 | switch ($eap["INNER"]) { |
||
| 180 | case \core\common\EAP::NE_MSCHAP2: |
||
| 181 | $out['METHOD'] = \core\common\EAP::MSCHAP2; |
||
| 182 | $out['EAP'] = 1; |
||
| 183 | break; |
||
| 184 | case \core\common\EAP::NE_SILVERBULLET: |
||
| 185 | $out['METHOD'] = \core\common\EAP::NONE; |
||
| 186 | break; |
||
| 187 | default: |
||
| 188 | $out['METHOD'] = $eap["INNER"]; |
||
| 189 | break; |
||
| 190 | } |
||
| 191 | // override if there is an inner EAP |
||
| 192 | if ($eap["INNER"] > 0) { // there is an inner EAP method |
||
| 193 | $out['EAP'] = 1; |
||
| 194 | } |
||
| 195 | return $out; |
||
| 196 | } |
||
| 197 | |||
| 198 | /** |
||
| 199 | * |
||
| 200 | * @param string $attrName the attribute name |
||
| 201 | * @return array of values for this attribute |
||
| 202 | */ |
||
| 203 | private function getSimpleMLAttribute($attrName) |
||
| 204 | { |
||
| 205 | if (empty($this->attributes[$attrName][0])) { |
||
| 206 | return([]); |
||
| 207 | } |
||
| 208 | $attributeList = $this->attributes[$attrName]; |
||
| 209 | $objs = []; |
||
| 210 | if ($this->langScope === 'global') { |
||
| 211 | foreach ($attributeList['langs'] as $language => $value) { |
||
| 212 | $language = ($language === 'C' ? 'any' : $language); |
||
| 213 | $obj = new \core\DeviceXMLmain(); |
||
| 214 | $obj->setValue($value); |
||
| 215 | $obj->setAttributes(['lang' => $language]); |
||
| 216 | $objs[] = $obj; |
||
| 217 | } |
||
| 218 | } else { |
||
| 219 | $objs[] = $attributeList[0]; |
||
| 220 | } |
||
| 221 | return($objs); |
||
| 222 | } |
||
| 223 | |||
| 224 | /** |
||
| 225 | * constructs the name of the institution and puts it into the XML. |
||
| 226 | * consists of the best-language-match inst name, and if the inst has more |
||
| 227 | * than one profile also the best-language-match profile name |
||
| 228 | * |
||
| 229 | * @return \core\DeviceXMLmain[] |
||
| 230 | */ |
||
| 231 | private function getDisplayName() |
||
| 232 | { |
||
| 233 | $attr = $this->attributes; |
||
| 234 | $objs = []; |
||
| 235 | if ($this->langScope === 'global') { |
||
| 236 | $instNameLangs = $attr['general:instname']['langs']; |
||
| 237 | if ($attr['internal:profile_count'][0] > 1) { |
||
| 238 | $profileNameLangs = $attr['profile:name']['langs']; |
||
| 239 | } |
||
| 240 | foreach ($instNameLangs as $language => $value) { |
||
| 241 | $language = ($language === 'C' ? 'any' : $language); |
||
| 242 | $displayname = new \core\DeviceXMLmain(); |
||
| 243 | if (isset($profileNameLangs)) { |
||
| 244 | $langOrC = isset($profileNameLangs[$language]) ? $profileNameLangs[$language] : $profileNameLangs['C']; |
||
| 245 | $value .= ' - '.$langOrC; |
||
| 246 | } |
||
| 247 | $displayname->setValue($value); |
||
| 248 | $displayname->setAttributes(['lang' => $language]); |
||
| 249 | $objs[] = $displayname; |
||
| 250 | } |
||
| 251 | } else { |
||
| 252 | $displayname = new \core\DeviceXMLmain(); |
||
| 253 | $value = $attr['general:instname'][0]; |
||
| 254 | if ($attr['internal:profile_count'][0] > 1) { |
||
| 255 | $value .= ' - '.$attr['profile:name'][0]; |
||
| 256 | } |
||
| 257 | $displayname->setValue($value); |
||
| 258 | $objs[] = $displayname; |
||
| 259 | } |
||
| 260 | return $objs; |
||
| 261 | } |
||
| 262 | |||
| 263 | /** |
||
| 264 | * retrieves the provider logo and puts it into the XML structure |
||
| 265 | * |
||
| 266 | * @return \core\DeviceXMLmain |
||
| 267 | */ |
||
| 268 | private function getProviderLogo() |
||
| 269 | { |
||
| 270 | $attr = $this->attributes; |
||
| 271 | if (isset($attr['general:logo_file'][0])) { |
||
| 272 | $logoString = base64_encode($attr['general:logo_file'][0]); |
||
| 273 | $logoMime = 'image/'.$attr['internal:logo_file'][0]['mime']; |
||
| 274 | $providerlogo = new \core\DeviceXMLmain(); |
||
| 275 | $providerlogo->setAttributes(['mime' => $logoMime, 'encoding' => 'base64']); |
||
| 276 | $providerlogo->setValue($logoString); |
||
| 277 | return $providerlogo; |
||
| 278 | } |
||
| 279 | } |
||
| 280 | |||
| 281 | /** |
||
| 282 | * retrieves provider information and puts it into the XML structure. |
||
| 283 | * contains the profile description and the ToU file, if any |
||
| 284 | * |
||
| 285 | * @return \core\DeviceXMLmain |
||
| 286 | */ |
||
| 287 | private function getProviderInfo() |
||
| 288 | { |
||
| 289 | $providerinfo = new \core\DeviceXMLmain(); |
||
| 290 | $providerinfo->setChild('DisplayName', $this->getDisplayName()); |
||
| 291 | $providerinfo->setChild('Description', $this->getSimpleMLAttribute('profile:description')); |
||
| 292 | $providerinfo->setChild('ProviderLocation', $this->getProviderLocation()); |
||
| 293 | $providerinfo->setChild('ProviderLogo', $this->getProviderLogo()); |
||
| 294 | $providerinfo->setChild('TermsOfUse', $this->getSimpleMLAttribute('support:info_file')); |
||
| 295 | $providerinfo->setChild('Helpdesk', $this->getHelpdesk()); |
||
| 296 | return $providerinfo; |
||
| 297 | } |
||
| 298 | |||
| 299 | /** |
||
| 300 | * retrieves the location information and puts it into the XML structure |
||
| 301 | * |
||
| 302 | * @return \core\DeviceXMLmain[] |
||
| 303 | */ |
||
| 304 | private function getProviderLocation() |
||
| 305 | { |
||
| 306 | $attr = $this->attributes; |
||
| 307 | if (isset($attr['general:geo_coordinates'])) { |
||
| 308 | $attrCoordinates = $attr['general:geo_coordinates']; |
||
| 309 | $location = []; |
||
| 310 | foreach ($attrCoordinates as $a) { |
||
| 311 | $providerlocation = new \core\DeviceXMLmain(); |
||
| 312 | $b = json_decode($a, true); |
||
| 313 | $providerlocation->setChild('Longitude', $b['lon']); |
||
| 314 | $providerlocation->setChild('Latitude', $b['lat']); |
||
| 315 | $location[] = $providerlocation; |
||
| 316 | } |
||
| 317 | return $location; |
||
| 318 | } |
||
| 319 | } |
||
| 320 | |||
| 321 | /** |
||
| 322 | * retrieves helpdesk contact information and puts it into the XML structure |
||
| 323 | * |
||
| 324 | * @return \core\DeviceXMLmain |
||
| 325 | */ |
||
| 326 | private function getHelpdesk() |
||
| 327 | { |
||
| 328 | $helpdesk = new \core\DeviceXMLmain(); |
||
| 329 | $helpdesk->setChild('EmailAddress', $this->getSimpleMLAttribute('support:email')); |
||
| 330 | $helpdesk->setChild('WebAddress', $this->getSimpleMLAttribute('support:url')); |
||
| 331 | $helpdesk->setChild('Phone', $this->getSimpleMLAttribute('support:phone')); |
||
| 332 | return $helpdesk; |
||
| 333 | } |
||
| 334 | |||
| 335 | /** |
||
| 336 | * determine where this credential should be applicable |
||
| 337 | * |
||
| 338 | * @return \core\DeviceXMLmain |
||
| 339 | */ |
||
| 340 | private function getCredentialApplicability() |
||
| 341 | { |
||
| 342 | $ssids = $this->attributes['internal:SSID']; |
||
| 343 | $oids = $this->attributes['internal:consortia']; |
||
| 344 | $credentialapplicability = new \core\DeviceXMLmain(); |
||
| 345 | $ieee80211s = []; |
||
| 346 | foreach ($ssids as $ssid => $ciph) { |
||
| 347 | $ieee80211 = new \core\DeviceXMLmain(); |
||
| 348 | $ieee80211->setChild('SSID', $ssid); |
||
| 349 | $ieee80211->setChild('MinRSNProto', $ciph == 'AES' ? 'CCMP' : 'TKIP'); |
||
| 350 | $ieee80211s[] = $ieee80211; |
||
| 351 | } |
||
| 352 | foreach ($oids as $oid) { |
||
| 353 | $ieee80211 = new \core\DeviceXMLmain(); |
||
| 354 | $ieee80211->setChild('ConsortiumOID', $oid); |
||
| 355 | $ieee80211s[] = $ieee80211; |
||
| 356 | } |
||
| 357 | $credentialapplicability->setChild('IEEE80211', $ieee80211s); |
||
| 358 | return $credentialapplicability; |
||
| 359 | } |
||
| 360 | |||
| 361 | /** |
||
| 362 | * retrieves the parameters needed for the given EAP method and creates |
||
| 363 | * appropriate nodes in the XML structure for them |
||
| 364 | * |
||
| 365 | * @param array $eap the EAP type in question |
||
| 366 | * @return array a recap of the findings |
||
| 367 | */ |
||
| 368 | private function getAuthenticationMethodParams($eap) |
||
| 369 | { |
||
| 370 | $inner = $this->innerAuth($eap); |
||
| 371 | $outerMethod = $eap["OUTER"]; |
||
| 372 | |||
| 373 | if (isset($inner["METHOD"]) && $inner["METHOD"]) { |
||
| 374 | $innerauthmethod = new \core\DeviceXMLmain(); |
||
| 375 | $typeOfInner = ($inner["EAP"] ? 'EAPMethod' : 'NonEAPAuthMethod'); |
||
| 376 | $eapmethod = new \core\DeviceXMLmain(); |
||
| 377 | $eapmethod->setChild('Type', abs($inner['METHOD'])); |
||
| 378 | $innerauthmethod->setChild($typeOfInner, $eapmethod); |
||
| 379 | return ['inner_method' => $innerauthmethod, 'methodID' => $outerMethod, 'inner_methodID' => $inner['METHOD']]; |
||
| 380 | } else { |
||
| 381 | return ['inner_method' => 0, 'methodID' => $outerMethod, 'inner_methodID' => 0]; |
||
| 382 | } |
||
| 383 | } |
||
| 384 | |||
| 385 | /** |
||
| 386 | * sets the server-side credentials for a given EAP type |
||
| 387 | * |
||
| 388 | * @param \devices\XML\Type $eaptype the EAP type |
||
| 389 | * @return \core\DeviceXMLmain |
||
| 390 | */ |
||
| 391 | private function getServerSideCredentials($eap) |
||
| 419 | } |
||
| 420 | |||
| 421 | /** |
||
| 422 | * sets the realm information for the client-side credential |
||
| 423 | * |
||
| 424 | * @param \devices\XML\ClientSideCredential $clientsidecredential the ClientSideCredential to which the realm info is to be added |
||
| 425 | * @return void |
||
| 426 | */ |
||
| 427 | private function getClientSideRealm($clientsidecredential) |
||
| 428 | { |
||
| 429 | $attr = $this->attributes; |
||
| 430 | $realm = \core\common\Entity::getAttributeValue($attr, 'internal:realm', 0); |
||
| 431 | if ($realm === NULL) { |
||
| 432 | return; |
||
| 433 | } |
||
| 434 | if (\core\common\Entity::getAttributeValue($attr, 'internal:verify_userinput_suffix', 0) !== 1) { |
||
| 435 | return; |
||
| 436 | } |
||
| 437 | $clientsidecredential->setChild('InnerIdentitySuffix', $realm); |
||
|
|
|||
| 438 | if (\core\common\Entity::getAttributeValue($attr, 'internal:hint_userinput_suffix', 0) === 1) { |
||
| 439 | $clientsidecredential->setChild('InnerIdentityHint', 'true'); |
||
| 440 | } |
||
| 441 | } |
||
| 442 | |||
| 443 | /** |
||
| 444 | * sets the client certificate |
||
| 445 | * |
||
| 446 | * @return \core\DeviceXMLmain |
||
| 447 | */ |
||
| 448 | private function getClientCertificate() |
||
| 449 | { |
||
| 450 | $clientCertificateObject = new \core\DeviceXMLmain(); |
||
| 451 | $clientCertificateObject->setValue(base64_encode($this->clientCert["certdata"])); |
||
| 452 | $clientCertificateObject->setAttributes(['format' => 'PKCS12', 'encoding' => 'base64']); |
||
| 453 | return $clientCertificateObject; |
||
| 454 | } |
||
| 455 | |||
| 456 | /** |
||
| 457 | * sets the client-side credentials for the given EAP type |
||
| 458 | * |
||
| 459 | * @param array $eapParams the EAP parameters |
||
| 460 | * @return \core\DeviceXMLmain |
||
| 461 | */ |
||
| 462 | private function getClientSideCredentials($eap) |
||
| 463 | { |
||
| 464 | $children = $this->authMethodElements['client'][$eap]; |
||
| 465 | $clientsidecredential = new \core\DeviceXMLmain(); |
||
| 466 | $outerId = $this->determineOuterIdString(); |
||
| 467 | $this->loggerInstance->debug(5, $eap, "XMLOI:", "\n"); |
||
| 468 | if (in_array('OuterIdentity', $children)) { |
||
| 469 | if ($outerId !== NULL) { |
||
| 470 | $clientsidecredential->setChild('OuterIdentity', $outerId); |
||
| 471 | } |
||
| 472 | } |
||
| 473 | $this->getClientSideRealm($clientsidecredential); |
||
| 474 | // $clientsidecredential->setChild('EAPType', $eapParams['inner_methodID'] ? $eapParams['inner_methodID'] : $eapParams['methodID']); |
||
| 475 | |||
| 476 | // Client Certificate |
||
| 477 | if ($this->selectedEap == \core\common\EAP::EAPTYPE_SILVERBULLET) { |
||
| 478 | $attr = $this->attributes; |
||
| 479 | $outerId = \core\common\Entity::getAttributeValue($attr, 'internal:username', 0); |
||
| 480 | $clientsidecredential->setChild('OuterIdentity', $outerId); |
||
| 481 | $clientsidecredential->setChild('ClientCertificate', $this->getClientCertificate()); |
||
| 482 | } |
||
| 483 | return $clientsidecredential; |
||
| 484 | } |
||
| 485 | |||
| 486 | /** |
||
| 487 | * sets the EAP method |
||
| 488 | * |
||
| 489 | * @param \devices\XML\Type $eaptype the EAP type XMLObject |
||
| 490 | * @return \core\DeviceXMLmain |
||
| 491 | */ |
||
| 492 | private function getEapMethod($eaptype) |
||
| 508 | } |
||
| 509 | |||
| 510 | /** |
||
| 511 | * determines the authentication method to use |
||
| 512 | * |
||
| 513 | * @param array $eap the EAP methods, in array representation |
||
| 514 | * @return \core\DeviceXMLmain |
||
| 515 | */ |
||
| 516 | private function getAuthMethod($eap) |
||
| 517 | { |
||
| 518 | $authmethod = new \core\DeviceXMLmain(); |
||
| 519 | $eapParams = $this->getAuthenticationMethodParams($eap); |
||
| 520 | $eaptype = new \core\DeviceXMLmain(); |
||
| 521 | $eaptype->setValue($eapParams['methodID']); |
||
| 522 | // Type |
||
| 523 | $authmethod->setChild('EAPMethod', $this->getEapMethod($eaptype)); |
||
| 524 | |||
| 525 | // ServerSideCredentials |
||
| 526 | $authmethod->setChild('ServerSideCredential', $this->getServerSideCredentials($eap['OUTER'])); |
||
| 527 | |||
| 528 | // ClientSideCredentials |
||
| 529 | $authmethod->setChild('ClientSideCredential', $this->getClientSideCredentials($eap['INNER'])); |
||
| 530 | |||
| 531 | if ($eapParams['inner_method']) { |
||
| 532 | $authmethod->setChild('InnerAuthenticationMethod', $eapParams['inner_method']); |
||
| 533 | } |
||
| 534 | return $authmethod; |
||
| 535 | } |
||
| 536 | |||
| 537 | private function getAuthMethodsList() { |
||
| 554 | } |
||
| 555 | |||
| 556 | |||
| 557 | |||
| 559 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.