DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

File ApiPersonReadOnly.php has 323 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace SPHERE\Application\Api\People\Person;

use SPHERE\Application\Api\ApiTrait;
Severity: Minor
Found in Application/Api/People/Person/ApiPersonReadOnly.php - About 3 hrs to fix

    Function getContent has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        public function getContent($NoConnection = false)
        {
    
            $this->Template->setVariable('ManagerStyle', Style::getManager());
            $this->Template->setVariable('ManagerScript', Script::getManager());
    Severity: Minor
    Found in Common/Window/Display.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 checkFormAddressToCompany has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        public function checkFormAddressToCompany(
            TblCompany $tblCompany,
            $Street,
            $City,
            $Type,
    Severity: Minor
    Found in Application/Contact/Address/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 createTransferCourse has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        public function createTransferCourse(
            $PersonIdArray = array(),
            $StudentTransferTypeIdentifier,
            $tblCourse = null
        ) {
    Severity: Minor
    Found in Application/Api/People/Meta/Transfer/StudentService.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 createTransferCompany has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        public function createTransferCompany(
            $PersonIdArray = array(),
            $StudentTransferTypeIdentifier,
            $tblCompany = null
        ) {
    Severity: Minor
    Found in Application/Api/People/Meta/Transfer/StudentService.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 createTransferEnrollmentType has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        public function createTransferEnrollmentType(
            $PersonIdArray = array(),
            $StudentTransferTypeIdentifier,
            $tblStudentSchoolEnrollmentType = null
        ) {
    Severity: Minor
    Found in Application/Api/People/Meta/Transfer/StudentService.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 createTransferStateCompany has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        public function createTransferStateCompany(
            $PersonIdArray = array(),
            $StudentTransferTypeIdentifier,
            $tblStateCompany = null
        ) {
    Severity: Minor
    Found in Application/Api/People/Meta/Transfer/StudentService.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 createTransferType has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        public function createTransferType(
            $PersonIdArray = array(),
            $StudentTransferTypeIdentifier,
            $tblSchoolType = null
        ) {
    Severity: Minor
    Found in Application/Api/People/Meta/Transfer/StudentService.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 checkInputVariant has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        private function checkInputVariant($Identifier, $ItemId, $VariantId, $Variant = array(), $Calculation = array())
        {
            $Error = false;
            $form = $this->formVariant($Identifier, $ItemId, $VariantId);
    
    
    Severity: Minor
    Found in Application/Api/Billing/Inventory/ItemVariant.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 createTransferDate has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        public function createTransferDate(
            $PersonIdArray = array(),
            $StudentTransferTypeIdentifier,
            $transferDate = null
        ) {
    Severity: Minor
    Found in Application/Api/People/Meta/Transfer/StudentService.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 getCMSHeadGrade has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        protected function getCMSHeadGrade($personId)
        {
    
            $GradeSlice = (new 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 getSchoolName has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        protected function getSchoolName($personId, $MarginTop = '20px')
        {
    
            if (($tblSetting = Consumer::useService()->getSetting(
                    'Education', 'Certificate', 'Prepare', 'IsSchoolExtendedNameDisplayed'))

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

        protected function getESSHeadGrade($personId, $marginTop = '15px')
        {
    
            $GradeSlice = (new 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 getESRLHeadGrade has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        protected function getESRLHeadGrade($personId)
        {
    
            $GradeSlice = (new 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 getEZSHHeadGrade has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        protected function getEZSHHeadGrade($personId)
        {
    
            $GradeSlice = (new 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 setGradeLayoutHeader has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        protected function setGradeLayoutHeader(
            &$subjectPosition = array(),
            $countSubjectColumns = 18,
            $widthFirstColumns = 6,
            $widthLastColumns = 5,

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

        public static function getContent()
        {
            $sliceList = array();
    
            $sliceList[] = (new Slice())
    Severity: Minor
    Found in Application/Api/Document/Standard/Repository/KamenzReport/B01_1.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 getContent has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        public static function getContent()
        {
            $sliceList = array();
    
            $sliceList[] = (new Slice())
    Severity: Minor
    Found in Application/Api/Document/Standard/Repository/KamenzReport/B01.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 formFilterStudent has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        public function formFilterStudent(TblSerialLetter $tblSerialLetter = null)
        {
    
            $GroupList = array();
            $tblGroup = Group::useService()->getGroupByMetaTable('STUDENT');
    Severity: Minor
    Found in Application/Reporting/SerialLetter/SerialLetterForm.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 getPersonListByResult has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
    Open

        public function getPersonListByResult(TblSerialLetter $tblSerialLetter = null, $Result = array())
        {
            $tblCategory = false;
            if ($tblSerialLetter !== null) {
                $tblCategory = $tblSerialLetter->getFilterCategory();
    Severity: Minor
    Found in Application/Reporting/SerialLetter/SerialLetterFilter.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

    Severity
    Category
    Status
    Source
    Language