Showing 5,014 of 7,620 total issues
Method createModule
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public static function createModule( $Route, $Class, $Method, $Title, IIconInterface $Icon = null, $ToolTip = null )
Method createFooter
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public static function createFooter( $Route, $Class, $Method, $Title, IIconInterface $Icon = null, $ToolTip = null )
Avoid deeply nested control flow statements. Open
if (is_object($Frontend)) {
$HashList[] = get_class($Frontend);
}
Method createService
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public static function createService( $Route, $Class, $Method, $Title, IIconInterface $Icon = null, $ToolTip = null )
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct($Name, $Path, IIconInterface $Icon = null, $Data = array(), $ToolTip = false, $Anchor = null)
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
$Name,
$Label = '',
$Data = array(),
IIconInterface $Icon = null,
$useAutoValue = true,
Method createCluster
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public static function createCluster( $Route, $Class, $Method, $Title, IIconInterface $Icon = null, $ToolTip = null )
Method addItem
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
$Source,
$Header = '',
ILinkInterface $Link = null,
$Description = '',
$Title = '',
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
$Name, $Path, IIconInterface $Icon = null, $Data = array(), $ToolTip = true, $Style = self::STYLE_BUTTON_DEFAULT
Method createApplication
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public static function createApplication( $Route, $Class, $Method, $Title, IIconInterface $Icon = null, $ToolTip = null )
Function frontendMyAccount
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public function frontendMyAccount($Setting = array())
{
$Stage = new Stage('Mein Benutzerkonto', 'Profil');
- 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 getContent
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public function getContent()
{
if (empty( $this->Menu )) {
if (empty( $this->Description )) {
- 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 __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct($Name, $Path, IIconInterface $Icon = null, $Data = array(), $ToolTip = false, $Anchor = null)
Method createSetting
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
$Cluster,
$Application,
$Module = null,
$Identifier,
$Type = TblSetting::TYPE_BOOLEAN,
Avoid deeply nested control flow statements. Open
if ($countRow >= $MaxResult) {
break;
}
Function widgetSponsorAssociation
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public static function widgetSponsorAssociation()
{
$tblSponsorAssociationAll = SponsorAssociation::useService()->getSponsorAssociationAll();
if ($tblSponsorAssociationAll) {
/** @var TblSponsorAssociation $tblSponsorAssociation */
- 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 generateUserName
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public function generateUserName(TblPerson $tblPerson = null, TblConsumer $tblConsumer = null)
{
$UserName = '';
if ($tblConsumer) {
- 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 ($tblPersonCustody && $tblPersonCustody->getId() != $tblPerson->getId()) {
$CustodyList[] = new Container($tblPersonCustody->getLastFirstName());
}
Function frontendPasswordGeneration
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public function frontendPasswordGeneration($Id = null, $Path = '/Setting/User', $IsParent = false, $Data = null)
{
$Stage = new Stage('Account Passwort', 'neu generieren');
if ($Id) {
- 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 widgetResponsibility
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public static function widgetResponsibility()
{
$tblResponsibilityAll = Responsibility::useService()->getResponsibilityAll();
if ($tblResponsibilityAll) {
/** @var TblResponsibility $tblResponsibility */
- 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"