DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function comparePassword has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function comparePassword($CredentialLock = '', $CredentialLockSafety = '')
    {

        $Step = 0;
        if (preg_match('![a-z]!s', $CredentialLock)) {
Severity: Minor
Found in Application/Api/Setting/ApiMyAccount/ApiMyAccount.php - About 55 mins to fix

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 formAddressToCompany has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function formAddressToCompany($CompanyId, $ToCompanyId = null, $setPost = false)
    {

        if ($ToCompanyId && ($tblToCompany = Address::useService()->getAddressToCompanyById($ToCompanyId))) {
            // beim Checken der Inputfeldern darf der Post nicht gesetzt werden
Severity: Minor
Found in Application/Contact/Address/Frontend.php - About 55 mins to fix

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 getSearchResult has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function getSearchResult($ViewType = TblWorkSpace::VIEW_TYPE_ALL)
    {

//        return $this->buildSearchQuery($ViewType, true);
        $Query = $this->buildSearchQuery($ViewType);
Severity: Minor
Found in Application/Api/Reporting/Individual/ApiIndividual.php - About 55 mins to fix

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 downloadClubMemberList has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function downloadClubMemberList()
    {

        $PersonList = Person::useService()->createClubMemberList();

Severity: Minor
Found in Application/Api/Reporting/Custom/Chemnitz/Common.php - About 55 mins to fix

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 changePersonGroup has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function changePersonGroup($PersonGroup)
    {

        if(isset($PersonGroup)
            && !empty($PersonGroup)
Severity: Minor
Found in Application/Api/Billing/Inventory/ApiSetting.php - About 55 mins to fix

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 showDeleteVariant has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function showDeleteVariant($Identifier = '', $VariantId = '')
    {

        $tblItemVariant = Item::useService()->getItemVariantById($VariantId);
        if($tblItemVariant){
Severity: Minor
Found in Application/Api/Billing/Inventory/ItemVariant.php - About 55 mins to fix

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 buildPages has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function buildPages(TblPerson $tblPerson = null)
    {

        $personId = $tblPerson ? $tblPerson->getId() : 0;

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 createChangePasswordPdf has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public static function createChangePasswordPdf($Data, $paperOrientation = Creator::PAPERORIENTATION_PORTRAIT)
    {
        if (!empty($Data)
        ) {

Severity: Minor
Found in Application/Api/Document/Creator.php - About 55 mins to fix

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 9 (exceeds 5 allowed). Consider refactoring.
Open

    public static function getContent()
    {
        $sliceList = array();

        $sliceList[] = (new Slice())
Severity: Minor
Found in Application/Api/Document/Standard/Repository/KamenzReport/E12.php - About 55 mins to fix

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 frontendPhoneList has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendPhoneList($GroupId = null)
    {

        $Stage = new Stage('Individuelle Auswertung', 'Telefonliste');
        if (null !== $GroupId) {
Severity: Minor
Found in Application/Reporting/Custom/Radebeul/Person/Frontend.php - About 55 mins to fix

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 frontendRegularSchoolList has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendRegularSchoolList($GroupId = null)
    {

        $Stage = new Stage('Individuelle Auswertung', 'Stammschulenliste');
        if (null !== $GroupId) {
Severity: Minor
Found in Application/Reporting/Custom/Radebeul/Person/Frontend.php - About 55 mins to fix

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 frontendKindergartenList has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendKindergartenList($GroupId = null)
    {

        $Stage = new Stage('Individuelle Auswertung', 'Kinderhausliste');
        if (null !== $GroupId) {
Severity: Minor
Found in Application/Reporting/Custom/Radebeul/Person/Frontend.php - About 55 mins to fix

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 frontendDiseaseList has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendDiseaseList($GroupId = null)
    {

        $Stage = new Stage('Individuelle Auswertung', 'Allergieliste');
        if (null !== $GroupId) {
Severity: Minor
Found in Application/Reporting/Custom/Radebeul/Person/Frontend.php - About 55 mins to fix

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 createMetaDataComparisonExcel has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function createMetaDataComparisonExcel($Person = null, $Year = null, $Division = null, $Option = null, $PersonGroup = null)
    {

        $Result = $this->getStudentFilterResult($Person, $Year, $Division, $PersonGroup);

Severity: Minor
Found in Application/Reporting/Standard/Person/Service.php - About 55 mins to fix

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 frontendGroupList has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendGroupList($GroupId = null)
    {

        $Stage = new Stage('Auswertung', 'Institutionengruppenlisten');
        $tblGroupAll = Group::useService()->getGroupAll();
Severity: Minor
Found in Application/Reporting/Standard/Company/Frontend.php - About 55 mins to fix

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 frontendSerialLetterDestroy has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendSerialLetterDestroy($Id = null, $Confirm = false)
    {

        $Stage = new Stage('Adresslisten für Serienbriefe', 'Löschen');
        if ($Id) {
Severity: Minor
Found in Application/Reporting/SerialLetter/Frontend.php - About 55 mins to fix

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 frontendDestroyList has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendDestroyList($Id = null, $Confirm = false)
    {

        $Stage = new Stage('Check-List', 'Löschen');
        if ($Id) {
Severity: Minor
Found in Application/Reporting/CheckList/Frontend.php - About 55 mins to fix

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 createArchiveEntry has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function createArchiveEntry(
        $DatabaseName,
        TblAccount $tblAccount = null,
        TblConsumer $tblConsumer = null,
        Element $Entity = null,
Severity: Minor
Found in Application/Platform/System/Archive/Service/Data.php - About 55 mins to fix

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 frontendAccount has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendAccount()
    {

        $Stage = new Stage('Benutzerkonnten');

Severity: Minor
Found in Application/Platform/Gatekeeper/Authorization/Account/Frontend.php - About 55 mins to fix

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 getAccountBySession has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function getAccountBySession($Session = null)
    {

        if (null === $Session) {
            $Session = session_id();
Severity: Minor
Found in Application/Platform/Gatekeeper/Authorization/Account/Service/Data.php - About 55 mins to fix

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

Severity
Category
Status
Source
Language