DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function updateDocument has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateDocument(TblDocument $tblDocument, $Data)
    {
        if ((new Data($this->getBinding()))->updateDocument($tblDocument, $Data['Name'], $Data['Description'])) {
            if (($tblDocumentItemList = $this->getDocumentItemAllByDocument($tblDocument))) {
                foreach ($tblDocumentItemList as $tblDocumentItem) {
Severity: Minor
Found in Application/Billing/Inventory/Document/Service.php - About 2 hrs 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 layoutPersonGroupList has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public static function layoutPersonGroupList($GroupId = '')
    {

        $tblGroupList = array();

Severity: Minor
Found in Application/Billing/Accounting/Debtor/Frontend.php - About 2 hrs 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 checkGuardianRelationshipsForPerson has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    private function checkGuardianRelationshipsForPerson(TblPerson $tblPersonChild, TblPerson $tblPersonGuardian, $Ranking, $IsSingleParent)
    {

        $result = array();
        if (($tblType = $this->getTypeByName(TblType::IDENTIFIER_GUARDIAN))
Severity: Minor
Found in Application/People/Relationship/Service.php - About 2 hrs 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 frontendSearch has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendSearch($Id = false)
    {

        $Stage = new Stage('Suche', 'nach Gruppe');
        $Stage->addButton(new Standard('Zurück', '/People', new ChevronLeft()));
Severity: Minor
Found in Application/People/Search/Group/Frontend.php - About 2 hrs 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 frontendDestroyPerson has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

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

        $Stage = new Stage('Person', 'Löschen');
        if ($Id) {
Severity: Minor
Found in Application/People/Person/Frontend.php - About 2 hrs 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 updateTest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateTest(IFormInterface $Stage = null, $Id, $Test, $BasicRoute)
    {

        /**
         * Skip to Frontend
Severity: Minor
Found in Application/Education/Graduation/Evaluation/Service.php - About 2 hrs 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 frontendEditMinimumGradeCount has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendEditMinimumGradeCount($Id = null, $MinimumGradeCount = null)
    {

        $Stage = new Stage('Mindestnotenanzahl', 'Bearbeiten');
        $Stage->addButton(

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

    private function setTableContentForBehaviourTask(
        TblDivision $tblDivision,
        TblTest $tblTest,
        TblPerson $tblPerson,
        $studentList,
Severity: Minor
Found in Application/Education/Graduation/Evaluation/Frontend.php - About 2 hrs 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 copyAbiturPreliminaryGradesFromCertificates has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function copyAbiturPreliminaryGradesFromCertificates(
        TblPrepareStudent $tblPrepareStudent,
        TblPrepareAdditionalGradeType $tblPrepareAdditionalGradeType,
        TblPrepareCertificate $tblPrepareCertificate
    ) {
Severity: Minor
Found in Application/Education/Certificate/Prepare/Service.php - About 2 hrs 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 frontendResetApprovePrepareDivision has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendResetApprovePrepareDivision(
        $PrepareId = null,
        $DivisionId = null,
        $IsLeave = false,
        $Route = '/Education/Certificate/Approve/Prepare',
Severity: Minor
Found in Application/Education/Certificate/Approve/Frontend.php - About 2 hrs 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 frontendApprovePrepareDivision has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendApprovePrepareDivision(
        $PrepareId = null,
        $DivisionId = null,
        $IsLeave = false,
        $Route = '/Education/Certificate/Approve/Prepare',
Severity: Minor
Found in Application/Education/Certificate/Approve/Frontend.php - About 2 hrs 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 frontendEditGenerate has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendEditGenerate($Id = null, $Data = null)
    {

        $Stage = new Stage('Zeugnis generieren', 'Bearbeiten');
        $Stage->setMessage('Die Notenaufträge können nur geändert werden bis ein Zeugnis freigeben wurde.');
Severity: Minor
Found in Application/Education/Certificate/Generate/Frontend.php - About 2 hrs 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 getAbsenceListByDate has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getAbsenceListByDate(TblPerson $tblPerson, TblDivision $tblDivision, \DateTime $date)
    {

        $resultList = array();
        if (($tblAbsenceList = $this->getAbsenceAllByPerson($tblPerson, $tblDivision))){
Severity: Minor
Found in Application/Education/ClassRegister/Absence/Service.php - About 2 hrs 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 destroyCertificate has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function destroyCertificate(TblCertificate $tblCertificate)
    {

        $Manager = $this->getConnection()->getEntityManager();
        /** @var TblCertificate $Entity */
Severity: Minor
Found in Application/Education/Certificate/Generator/Service/Data.php - About 2 hrs 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 frontendSelectCertificate has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendSelectCertificate($Division = null, $Person = null)
    {

        $Stage = new Stage('Zeugnisvorlage', 'wählen');
        // Zurück button bei bedarf einbauen
Severity: Minor
Found in Application/Education/Certificate/Generator/Frontend.php - About 2 hrs 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 changeSubjectGroup has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function changeSubjectGroup(
        IFormInterface $Form,
        $Group,
        $Id,
        $DivisionId,
Severity: Minor
Found in Application/Education/Lesson/Division/Service.php - About 2 hrs 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 getCertificateRevisionFileAllByPerson has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCertificateRevisionFileAllByPerson(TblPerson $tblPerson)
    {

        $tblPartition = $this->getPartitionByIdentifier(
            TblPartition::IDENTIFIER_CERTIFICATE_STORAGE
Severity: Minor
Found in Application/Document/Storage/Service.php - About 2 hrs 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 innerJoin has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    protected function innerJoin($List)
    {
        $Result = array();
        /** @var AbstractView $Node0 */
        foreach ($List[0] as $Node0) {
Severity: Minor
Found in System/Database/Filter/Link/Repository/Node3.php - About 2 hrs 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 countOrientation has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    private static function countOrientation(
        TblStudent $tblStudent,
        TblLevel $tblLevel,
        $gender,
        $countOrientationArray
Severity: Minor
Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 2 hrs 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 getHolidayAllWhereYear has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getHolidayAllWhereYear(TblYear $tblYear)
    {

        $fromDate = false;
        $toDate = false;
Severity: Minor
Found in Application/Education/Lesson/Term/Service/Data.php - About 2 hrs 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