DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function getLevelTen has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    private function getLevelTen(TblPerson $tblPerson = null)
    {

        $slice = new Slice();
        $slice

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

    private function getForeignLanguages(TblPerson $tblPerson = null)
    {

        $slice = new Slice();
        $slice

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

    public function createClassListExcel($PersonList, $tblPersonList)
    {

        if (!empty( $PersonList )) {

Severity: Minor
Found in Application/Reporting/Custom/Hormersdorf/Person/Service.php - About 3 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 frontendExtendedClassList has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendExtendedClassList($DivisionId = null)
    {

        $Stage = new Stage('Auswertung', 'erweiterte Klassenlisten');
        if (null !== $DivisionId) {
Severity: Minor
Found in Application/Reporting/Standard/Person/Frontend.php - About 3 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 checkFormRelationshipToPerson has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    public function checkFormRelationshipToPerson(
        TblPerson $tblPerson,
        $Type,
        $To,
        TblToPerson $tblToPerson = null,
Severity: Minor
Found in Application/People/Relationship/Service.php - About 3 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 getTestAllByTypeAndDivisionAndSubjectAndPeriodAndSubjectGroup has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    public function getTestAllByTypeAndDivisionAndSubjectAndPeriodAndSubjectGroup(
        TblDivision $tblDivision,
        TblSubject $tblSubject,
        TblTestType $tblTestType = null,
        TblPeriod $tblPeriod = null,
Severity: Minor
Found in Application/Education/Graduation/Evaluation/Service/Data.php - About 3 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 frontendHeadmasterTaskGrades has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendHeadmasterTaskGrades($Id = null, $DivisionId = null)
    {
        $Stage = new Stage('Notenauftrag', 'Zensurenübersicht');

        $tblTask = false;
Severity: Minor
Found in Application/Education/Graduation/Evaluation/Frontend.php - About 3 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 frontendMinimumGradeCount has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendMinimumGradeCount($MinimumGradeCount = null)
    {

        $Stage = new Stage('Mindestnotenanzahl', 'Übersicht');
        $Stage->setMessage(

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

    private function setTableContentForAppointedDateTask(
        TblDivision $tblDivision,
        TblTest $tblTest,
        TblSubject $tblSubject,
        TblPerson $tblPerson,
Severity: Minor
Found in Application/Education/Certificate/Prepare/Frontend.php - About 3 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 setPrepareStudentList has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    private function setPrepareStudentList()
    {
        $prepareStudentList = array();
        // Zensuren von Kurshalbjahreszeugnissen
        if (($tblLeaveStudent = $this->tblLeaveStudent)
Severity: Minor
Found in Application/Education/Certificate/Prepare/Abitur/LeavePoints.php - About 3 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 frontendSigner has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendSigner($PrepareId = null, $GroupId = null, $Route = null, $Data = null)
    {

        $Stage = new Stage('Unterzeichner', 'Auswählen');
        $Stage->addButton(new Standard(
Severity: Minor
Found in Application/Education/Certificate/Prepare/Frontend.php - About 3 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 setPrepareStudentList has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    private function setPrepareStudentList()
    {
        $prepareStudentList = array();
        // Zensuren von Kurshalbjahreszeugnissen
        if (($tblDivisionStudentList = Division::useService()->getDivisionStudentAllByPerson($this->tblPerson))) {
Severity: Minor
Found in Application/Education/Certificate/Prepare/Abitur/BlockI.php - About 3 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 setRepeatersGym has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    private static function setRepeatersGym(
        TblPerson $tblPerson,
        TblLevel $tblLevel,
        TblDivision $tblDivision,
        &$Content,
Severity: Minor
Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 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 setRepeatersOs has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    private static function setRepeatersOs(
        TblPerson $tblPerson,
        TblLevel $tblLevel,
        TblDivision $tblDivision,
        &$Content,
Severity: Minor
Found in Application/Document/Generator/Service/Kamenz/KamenzReportService.php - About 3 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 removePersonListFromSubject has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    private function removePersonListFromSubject($DataRemovePerson, $SubjectGroup, $Group)
    {

        foreach ($DataRemovePerson as $personId => $value) {
            $tblPerson = Person::useService()->getPersonById($personId);
Severity: Minor
Found in Application/Education/Lesson/Subject/Service.php - About 3 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 performExtraAnalysis has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    public function performExtraAnalysis() {
        // La colonne extra contient des infos multiples alors on utilise un tableau d'information
        // Par contre l'état (danger ou success) reste global à la cellule et est à gérer au cas par cas
        $infos = array();
        // Contient Using temporary; Using filesort
Severity: Minor
Found in xplain/app/Row.class.php - About 3 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 verifyKey has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    final public function verifyKey(KeyValue $Key)
    {

        (new DebuggerFactory())->createLogger(new BenchmarkLogger())->addLog('YubiKey-Api Verify');

Severity: Minor
Found in System/Token/Type/YubiKey.php - About 3 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 performExtraAnalysis has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

    public function performExtraAnalysis() {
        // La colonne extra contient des infos multiples alors on utilise un tableau d'information
        // Par contre l'état (danger ou success) reste global à la cellule et est à gérer au cas par cas
        $infos = array();
        // Contient Using temporary; Using filesort
Severity: Minor
Found in xplain/app/Row.php - About 3 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

File ModAjax.js has 309 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function ($) {
    // 'use strict';
    $.fn.ModAjax = function (options) {

// Settings
Severity: Minor
Found in Common/Script/ModAjax.js - About 3 hrs to fix

    Method buildPages has 85 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function buildPages(TblPerson $tblPerson = null)
        {
    
            $personId = $tblPerson ? $tblPerson->getId() : 0;
    
    
      Severity
      Category
      Status
      Source
      Language