DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Function __construct has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function __construct(CacheStatus $Cache)
    {

        if (
            ( $Cache->getHitCount() != -1 || $Cache->getMissCount() != -1 )
Severity: Minor
Found in Application/Platform/System/Cache/Frontend/Status.php - About 25 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 frontendPersonRestore has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public static function frontendPersonRestore()
    {
        $Stage = new Stage('Personen Wiederherstellen', 'Übersicht');
        $Stage->addButton(new Standard('Zurück', __NAMESPACE__, new ChevronLeft()));

Severity: Minor
Found in Application/Platform/System/DataMaintenance/DataMaintenance.php - About 25 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 setTableIndiwareImportStudent has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private function setTableIndiwareImportStudent(Schema &$Schema)
    {

        $Table = $this->getConnection()->createTable($Schema, 'tblIndiwareImportStudent');
        if (!$this->getConnection()->hasColumn('tblIndiwareImportStudent', 'serviceTblYear')) {
Severity: Minor
Found in Application/Transfer/Indiware/Import/Service/Setup.php - About 25 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 destroyIndiwareImportStudentAll has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function destroyIndiwareImportStudentAll()
    {

        $tblAccount = Account::useService()->getAccountBySession();
        if ($tblAccount) {
Severity: Minor
Found in Application/Transfer/Indiware/Import/Service.php - About 25 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 setTableIndiwareImportStudentCourse has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private function setTableIndiwareImportStudentCourse(Schema &$Schema, $tblIndiwareImportStudent)
    {

        $Table = $this->getConnection()->createTable($Schema, 'tblIndiwareImportStudentCourse');

Severity: Minor
Found in Application/Transfer/Indiware/Import/Service/Setup.php - About 25 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 runConvert has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function runConvert($Row)
    {

        // Fertige Zeile,

Severity: Minor
Found in Application/Transfer/Gateway/Operation/FESH.php - About 25 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 insertGroupsByName has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function insertGroupsByName(TblPerson $tblPerson, $columnName, $RunY, $separator = ';')
    {
        $groupNames = trim($this->Document->getValue($this->Document->getCell($this->Location[$columnName],
            $RunY)));
        if ($groupNames != '') {
Severity: Minor
Found in Application/Transfer/Import/Service.php - About 25 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 getBookingText has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private function getBookingText(TblInvoiceItemDebtor $tblInvoiceItemDebtor, $bookingText = '', $ItemCombinedName = '')
    {

        $ItemName = $ItemCombinedName;
        if($ItemName == ''){
Severity: Minor
Found in Application/Billing/Bookkeeping/Balance/Service.php - About 25 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 getPersonListByInvoiceTime has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function getPersonListByInvoiceTime($Year, $From, $To)
    {

        $tblPersonList = array();
        $PersonIdList = (new Data($this->getBinding()))->getPersonIdListByInvoiceTime($Year, $From, $To);
Severity: Minor
Found in Application/Billing/Bookkeeping/Balance/Service.php - About 25 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 getItemAllByBasket has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function getItemAllByBasket(TblBasket $tblBasket)
    {

        $tblBasketItemList = $this->getBasketItemAllByBasket($tblBasket);
        $tblItemList = array();
Severity: Minor
Found in Application/Billing/Bookkeeping/Basket/Service.php - About 25 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 getBillTime has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function getBillTime($Format = 'd.m.Y')
    {

        // Rechnungs Jahr
        if(null !== $this->BillTime){
Severity: Minor
Found in Application/Billing/Bookkeeping/Invoice/Service/Entity/TblInvoice.php - About 25 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 sanitizeDebtorNumber has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    protected function sanitizeDebtorNumber($Value)
    {

        if(($Setting = Setting::useService()->getSettingByIdentifier(TblSetting::IDENT_DEBTOR_NUMBER_COUNT))){
            if(strlen($Value) > $Setting->getValue()){
Severity: Minor
Found in Application/Billing/Inventory/Import/ImportGateway.php - About 25 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 createBasket has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function createBasket($Name = '', $Description = '', $Year = '', $Month = '', $TargetTime = '', $BillTime = '',
        TblBasketType $tblBasketType = null, $CreditorId = '', TblDivision $tblDivision = null, TblType $tblType = null,
        TblDebtorPeriodType $tblDebtorPeriodType = null)
    {

Severity: Minor
Found in Application/Billing/Bookkeeping/Basket/Service.php - About 25 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 createInvoiceList has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function createInvoiceList($InvoiceList, $Month, $Year, $TargetTime, $BillTime, TblBasket $tblBasket)
    {
        //ToDO $InvoiceNumberLength from Setting?
        $InvoiceNumberLength = 5;
        if(!empty($InvoiceList)){
Severity: Minor
Found in Application/Billing/Bookkeeping/Invoice/Service/Data.php - About 25 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 getBillYear has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function getBillYear()
    {

        // Rechnungs Jahr
        if(null !== $this->BillTime){
Severity: Minor
Found in Application/Billing/Bookkeeping/Basket/Service/Entity/TblBasket.php - About 25 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 removeItem has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function removeItem(TblItem $tblItem)
    {

        // remove tblItemGroup
        if(($tblItemGroupPersonList = $this->getItemGroupByItem($tblItem))){
Severity: Minor
Found in Application/Billing/Inventory/Item/Service.php - About 25 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 getDocumentAllByItem has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function getDocumentAllByItem(TblItem $tblItem)
    {

        $list = array();
        if (($tblDocumentItemList = (new Data($this->getBinding()))->getDocumentItemAllByItem($tblItem))){
Severity: Minor
Found in Application/Billing/Inventory/Document/Service.php - About 25 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 filterPersonListByDivision has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private function filterPersonListByDivision($tblPersonList, TblDivision $tblDivision)
    {

        $resultPersonList = array();
        if(!empty($tblPersonList)){
Severity: Minor
Found in Application/Billing/Bookkeeping/Basket/Service.php - About 25 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 setTableCommonBirthDates has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private function setTableCommonBirthDates(Schema &$Schema, Table $tblCommonGender)
    {

        $Table = $this->createTable($Schema, 'tblCommonBirthDates');
        $this->createColumn( $Table, 'Birthday', self::FIELD_TYPE_DATETIME, true );
Severity: Minor
Found in Application/People/Meta/Common/Service/Setup.php - About 25 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 getIsSupportByPerson has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public function getIsSupportByPerson(TblPerson $tblPerson)
    {

        $return = false;
        $tblSupport = Student::useService()->getSupportByPersonNewest($tblPerson, array('Förderbescheid'));
Severity: Minor
Found in Application/People/Meta/Student/Service/Service/Support.php - About 25 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