File Frontend.php
has 537 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Platform\Gatekeeper\Authentication;
use SPHERE\Application\Education\Graduation\Evaluation\Evaluation;
Function frontendWelcome
has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring. Open
public function frontendWelcome()
{
$Stage = new Stage('Willkommen', '', '');
$IsMaintenance = false;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method frontendIdentificationAgb
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendIdentificationAgb($tblAccount, $tblIdentification, $doAccept = 0)
{
$View = new Stage(new MoreItems().' Anmelden', '', $this->getIdentificationEnvironment());
$tblAccount = Account::useService()->getAccountById($tblAccount);
Method frontendIdentificationToken
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendIdentificationToken($tblAccount, $tblIdentification, $CredentialKey = null)
{
$View = new Stage(new YubiKey().' Anmelden', '', $this->getIdentificationEnvironment());
$tblAccount = Account::useService()->getAccountById($tblAccount);
Method frontendIdentificationCredential
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendIdentificationCredential($CredentialName = null, $CredentialLock = null)
{
$View = new Stage(new Nameplate().' Anmelden', '', $this->getIdentificationEnvironment());
// Search for matching Account
Method frontendWelcome
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendWelcome()
{
$Stage = new Stage('Willkommen', '', '');
$IsMaintenance = false;
Function frontendIdentificationToken
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
public function frontendIdentificationToken($tblAccount, $tblIdentification, $CredentialKey = null)
{
$View = new Stage(new YubiKey().' Anmelden', '', $this->getIdentificationEnvironment());
$tblAccount = Account::useService()->getAccountById($tblAccount);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function frontendIdentificationCredential
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public function frontendIdentificationCredential($CredentialName = null, $CredentialLock = null)
{
$View = new Stage(new Nameplate().' Anmelden', '', $this->getIdentificationEnvironment());
// Search for matching Account
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function frontendIdentificationAgb
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
public function frontendIdentificationAgb($tblAccount, $tblIdentification, $doAccept = 0)
{
$View = new Stage(new MoreItems().' Anmelden', '', $this->getIdentificationEnvironment());
$tblAccount = Account::useService()->getAccountById($tblAccount);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Avoid deeply nested control flow statements. Open
if ($tblAccount->getPassword() == $Password) {
$IsEqual = true;
}
Avoid too many return
statements within this method. Open
return $View;