Showing 5,014 of 7,620 total issues
Function getGradeLanesCustomForChemnitz
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
protected function getGradeLanesCustomForChemnitz(
$personId,
$TextSize = '14px',
$IsGradeUnderlined = false,
$MarginTop = '15px'
- Read upRead up
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 formSubjectCourse
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function formSubjectCourse(TblIndiwareImportStudent $tblIndiwareImportStudent, TblYear $tblYear = null)
{
$FormSubjectAll = array();
$tblSubjectList = Subject::useService()->getSubjectAll();
- Read upRead up
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 frontendSaveRelationshipCustody
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSaveRelationshipCustody()
{
$stage = new Stage('Einordnung der Sorgeberechtigten', 'nach S1, S2, S3');
$stage->addButton(new Standard('Zurück', '/People/Group', new ChevronLeft()));
- Read upRead up
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 getTestListForPlanning
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function getTestListForPlanning($tblDivisionList, TblGradeType $tblGradeType = null, $isHighlighted = false)
{
$result = array();
$tblGradeTypeList = array();
- Read upRead up
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 getMinimumGradeCountAllByDivisionSubject
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function getMinimumGradeCountAllByDivisionSubject(
TblDivisionSubject $tblDivisionSubject,
$isSekII
) {
- Read upRead up
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 25 (exceeds 5 allowed). Consider refactoring. Open
public function getContent($GroupId = null, $Data = null)
{
$dataList = array();
if (($tblPrepareAdditionalGradeList = Prepare::useService()->getPrepareAdditionalGradeListBy(
- Read upRead up
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 frontendDiplomaSelectDivision
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function frontendDiplomaSelectDivision($IsAllYears = false, $IsGroup = false, $YearId = null)
{
$Stage = new Stage('Zeugnisvorbereitung', 'Klasse auswählen');
$this->setHeaderButtonList($Stage, View::DIPLOMA);
- Read upRead up
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 frontendShowTemplate
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function frontendShowTemplate($PrepareId = null, $PersonId = null, $Route = 'Teacher')
{
$Stage = new Stage('Noteninformation', 'Vorschau und Herunterladen');
$Stage->addButton(new Standard(
- Read upRead up
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 frontendSubjectAdd
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSubjectAdd($Id = null, $IsHasGradingView = false, $Data = null)
{
$tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
if (!$tblDivision) {
- Read upRead up
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 createLogic
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function createLogic($Search, $Restriction, $ProbeIndex)
{
// ONLY Valid Id-Lists, NOT! Empty Lists
$Restriction = array_filter( $Restriction );
- Read upRead up
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 getPrepareStudentListForStudentCard
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function getPrepareStudentListForStudentCard(TblPerson $tblPerson, TblType $tblType = null)
{
$list = array();
if (($tblDivisionStudentList = Division::useService()->getDivisionStudentAllByPerson($tblPerson))) {
- Read upRead up
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 getStudentCardSubjectListForSekIIByPerson
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function getStudentCardSubjectListForSekIIByPerson(TblPerson $tblPerson)
{
$resultList = array();
$list = array();
- Read upRead up
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 setForeignLanguages
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
private static function setForeignLanguages(
&$Content,
$countForeignSubjectArray,
$countSecondForeignSubjectArray,
TblType $tblSchoolType
- Read upRead up
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 generatePdfControl
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function generatePdfControl(IFormInterface $Form, TblUserAccount $tblUserAccount, $Data = null, $Path = '/Setting/User')
{
if($Data === null){
return $Form;
Method openOverViewModal
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function openOverViewModal($PersonId)
{
$tblPerson = Person::useService()->getPersonById($PersonId);
if(!$tblPerson){
File ItemVariant.php
has 315 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Billing\Inventory;
use SPHERE\Application\Billing\Inventory\Item\Item;
use SPHERE\Common\Frontend\Ajax\Emitter\ServerEmitter;
Method buildPages
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Method createExtendedClassListExcel
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createExtendedClassListExcel($PersonList, $tblPersonList)
{
if (!empty($PersonList)) {
Method formFilterProspect
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function formFilterProspect(TblSerialLetter $tblSerialLetter = null)
{
$GroupList = array();
$tblGroup = Group::useService()->getGroupByMetaTable('PROSPECT');
Method getItemContent
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getItemContent($PersonId = '', $ItemId = '', $IsOpen = false)
{
$PanelContent = array();
$Accordion = '';