DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

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

    public function frontendSelectStudent($Division = null)
    {

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

    public function getDisplayName()
    {

        if ($this->getTblLevel()) {
            if (strlen($this->getName()) >= 2) {
Severity: Minor
Found in Application/Education/Lesson/Division/Service/Entity/TblDivision.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 updateCertificateType has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateCertificateType(
        IFormInterface $Form,
        $Data
    ) {

Severity: Minor
Found in Application/Education/Certificate/Generator/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 getUnexcusedDaysByPerson has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    function getUnexcusedDaysByPerson(TblPerson $tblPerson, TblDivision $tblDivision, \DateTime $tillDate = null)
    {

        $list = array();
        // Fehlzeiten aus alle Klassen des Schuljahrs
Severity: Minor
Found in Application/Education/ClassRegister/Absence/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 isFilterFulfilledByPerson has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function isFilterFulfilledByPerson(TblPerson $tblPerson)
    {
        if ($this->getTblGroup() && !$this->hasGroup($tblPerson)) {
            return false;
        }
Severity: Minor
Found in Application/Education/Lesson/Division/Filter/Filter.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 getExcusedDaysByPerson has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function getExcusedDaysByPerson(TblPerson $tblPerson, TblDivision $tblDivision, \DateTime $tillDate = null)
    {

        $list = array();
        // Fehlzeiten aus alle Klassen des Schuljahrs
Severity: Minor
Found in Application/Education/ClassRegister/Absence/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 formLevelDivision has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function formLevelDivision(TblLevel $tblLevel = null, TblDivision $tblDivision = null, $future = false)
    {

        $tblLevelAll = Division::useService()->getLevelAll();
        $acNameAll = array();
Severity: Minor
Found in Application/Education/Lesson/Division/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 frontendSubjectGroupAdd has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendSubjectGroupAdd($Id = null, $DivisionSubjectId = null, $Group = null)
    {

        $Stage = new Stage('Fach-Gruppen', 'Übersicht');

Severity: Minor
Found in Application/Education/Lesson/Division/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 changeGroupCategory has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function changeGroupCategory(
        IFormInterface $Form,
        TblGroup $tblGroup,
        $Category
    ) {
Severity: Minor
Found in Application/Education/Lesson/Subject/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 changeDivision has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public
    function changeDivision(
        IFormInterface $Form,
        $Division,
        $Id
Severity: Minor
Found in Application/Education/Lesson/Division/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 changePeriod has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function changePeriod(
        IFormInterface &$Stage = null,
        TblPeriod $tblPeriod,
        $Period
    ) {
Severity: Minor
Found in Application/Education/Lesson/Term/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 getCachedEntityById has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    final protected function getCachedEntityById($__METHOD__, Manager $EntityManager, $EntityName, $Id)
    {

        // Only if NOT REMOVED
        $Parameter['EntityRemove'] = null;
Severity: Minor
Found in System/Database/Fitting/Cacheable.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 changeCategorySubject has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function changeCategorySubject(
        IFormInterface $Form,
        TblCategory $tblCategory,
        $Subject
    ) {
Severity: Minor
Found in Application/Education/Lesson/Subject/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 ticketList has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function ticketList()
    {

        $this->ticketLogin();
        $CurlHandler = curl_init();
Severity: Minor
Found in System/Support/Type/YouTrack.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 getPropertyList has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    final public function getPropertyList( Element $Entity, $PropertyName, $ConditionList = array() )
    {
        $Manager = $this->Binding->getEntityManager();
        $Builder = $Manager->getQueryBuilder();

Severity: Minor
Found in System/Database/Binding/AbstractService.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 ticketList has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function ticketList()
    {

        $this->ticketLogin();
        $CurlHandler = curl_init();
Severity: Minor
Found in System/Support/Type/YouTrackMail.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

Method updateAddressToPersonByApi has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

        TblToPerson $tblToPerson,
        $Street,
        $City,
        $State,
        $Type,
Severity: Major
Found in Application/Contact/Address/Service.php - About 50 mins to fix

    Method createAddressToPersonByApi has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            TblPerson $tblPerson,
            $Street = array(),
            $City = array(),
            $State,
            $Type,
    Severity: Major
    Found in Application/Contact/Address/Service.php - About 50 mins to fix

      Method frontendContact has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function frontendContact($Id = null, $Person = null, $Group = null, $tblPerson = null, $tblType = null, $tblSalutation = null, $doCreate = false)
      Severity: Major
      Found in Application/Corporation/Company/Frontend.php - About 50 mins to fix

        Method updateAddressToCompanyByApi has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                TblToCompany $tblToCompany,
                $Street,
                $City,
                $State,
                $Type,
        Severity: Major
        Found in Application/Contact/Address/Service.php - About 50 mins to fix
          Severity
          Category
          Status
          Source
          Language