DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function reorderCheckList has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function reorderCheckList($Reorder = null, $Additional = null)
    {

        if ($Additional
            && $Reorder
Severity: Minor
Found in Application/Api/Reporting/CheckList/CheckList.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 replaceLevelFromByPersonIdList has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function replaceLevelFromByPersonIdList(
        $PersonIdArray = array(),
        TblLevel $tblLevel = null,
        TblStudentSubjectType $tblStudentSubjectType,
        TblStudentSubjectRanking $tblStudentSubjectRanking
Severity: Minor
Found in Application/Api/People/Meta/Subject/StudentService.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 replaceSubjectByPersonIdList has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function replaceSubjectByPersonIdList(
        $PersonIdArray = array(),
        TblSubject $tblSubject = null,
        TblStudentSubjectType $tblStudentSubjectType,
        TblStudentSubjectRanking $tblStudentSubjectRanking
Severity: Minor
Found in Application/Api/People/Meta/Subject/StudentService.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 replaceLevelTillByPersonIdList has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function replaceLevelTillByPersonIdList(
        $PersonIdArray = array(),
        TblLevel $tblLevel = null,
        TblStudentSubjectType $tblStudentSubjectType,
        TblStudentSubjectRanking $tblStudentSubjectRanking
Severity: Minor
Found in Application/Api/People/Meta/Subject/StudentService.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 getProfileStandardNew has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getProfileStandardNew($personId, $TextSize = '14px', $IsGradeUnderlined = false)
    {

        $tblPerson = Person::useService()->getPersonById($personId);

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

    public function reorderDivision($Reorder = null, $Additional = null)
    {

        if ($Additional
            && $Reorder
Severity: Minor
Found in Application/Api/Education/Prepare/Prepare.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 reorderDivision has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function reorderDivision($Reorder = null, $Additional = null)
    {

        if ($Additional
            && $Reorder
Severity: Minor
Found in Application/Api/Education/ClassRegister/ClassRegister.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 getVersionRelease has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getVersionRelease()
    {

        if ($this->VersionRelease === null) {
            $Cache = $this->getCache(new MemcachedHandler());
Severity: Minor
Found in Application/Platform/Roadmap/Youtrack/Map.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 getVersionPreview has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getVersionPreview()
    {

        if ($this->VersionPreview === null) {
            $Cache = $this->getCache(new MemcachedHandler());
Severity: Minor
Found in Application/Platform/Roadmap/Youtrack/Map.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 frontendIdentificationToken has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function frontendIdentificationToken($tblAccount, $tblIdentification, $CredentialKey = null)
    {
        $View = new Stage(new YubiKey().' Anmelden', '', $this->getIdentificationEnvironment());

        $tblAccount = Account::useService()->getAccountById($tblAccount);
Severity: Minor
Found in Application/Platform/Gatekeeper/Authentication/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 updateIndiwareImportStudentCourse has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateIndiwareImportStudentCourse(
        IFormInterface $Stage = null,
        TblIndiwareImportStudent $tblIndiwareImportStudent,
        $Data = null,
        $Visible = false
Severity: Minor
Found in Application/Transfer/Indiware/Import/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 displaySetting has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function displaySetting($Category = TblSetting::CATEGORY_REGULAR)
    {

        $tblSettingList = Setting::useService()->getSettingAllByCategory($Category);
        $Listing = array();
Severity: Minor
Found in Application/Billing/Inventory/Setting/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 loadDocumentOverviewContent has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function loadDocumentOverviewContent()
    {
        if (($tblDocumentList = Document::useService()->getDocumentAll())) {
            $contentTable = array();
            foreach ($tblDocumentList as $tblDocument) {
Severity: Minor
Found in Application/Billing/Inventory/Document/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 formRelationshipToPerson has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function formRelationshipToPerson(
        $PersonId,
        $ToPersonId = null,
        $setPost = false,
        $Search = '',
Severity: Minor
Found in Application/People/Relationship/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 addBehaviorGradeTypeToDivisionAndTask has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function addBehaviorGradeTypeToDivisionAndTask(
        TblTask $tblTask,
        TblDivision $tblDivision,
        TblGradeType $tblGradeType
    ) {
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 contentEditTestGradeTableRow has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    private function contentEditTestGradeTableRow(
        TblPerson $tblPerson,
        $tblGrade,
        $IsEdit,
        $student,
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 getEntityManager has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getEntityManager($EntityPath, $EntityNamespace, $useCache = true)
    {

        // Sanitize Namespace
        $EntityNamespace = trim(str_replace(array('/', '\\'), '\\', $EntityNamespace), '\\') . '\\';
Severity: Minor
Found in System/Database/Database.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

File CheJGsOne.php has 281 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\ESZC;

use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
use SPHERE\Application\Education\Certificate\Generator\Repository\Element;

    File Data.php has 281 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    namespace SPHERE\Application\People\Person\Service;
    
    use SPHERE\Application\Contact\Address\Address;
    use SPHERE\Application\Contact\Mail\Mail;
    Severity: Minor
    Found in Application/People/Person/Service/Data.php - About 2 hrs to fix

      File AbstractField.php has 280 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      namespace SPHERE\Common\Frontend\Form\Repository;
      
      use MOC\V\Component\Template\Component\IBridgeInterface;
      use SPHERE\Common\Frontend\Ajax\Pipeline;
      Severity: Minor
      Found in Common/Frontend/Form/Repository/AbstractField.php - About 2 hrs to fix
        Severity
        Category
        Status
        Source
        Language