Showing 5,014 of 7,620 total issues
Function getEditStudentProcessContent
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getEditStudentProcessContent($PersonId = null)
{
$tblPerson = false;
if ($PersonId && ($tblPerson = Person::useService()->getPersonById($PersonId))) {
- 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 setTableGradeType
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function setTableGradeType(Schema &$Schema)
{
$Table = $this->getConnection()->createTable($Schema, 'tblGradeType');
if (!$this->getConnection()->hasColumn('tblGradeType', 'Code')) {
- 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 updateGradeType
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function updateGradeType(IFormInterface $Stage = null, $Id, $GradeType)
{
/**
* Skip to Frontend
- 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 getScoreGroupGradeTypeListByGroup
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getScoreGroupGradeTypeListByGroup(TblScoreGroup $tblScoreGroup)
{
$list = $this->getCachedEntityListBy(__METHOD__, $this->getConnection()->getEntityManager(),
'TblScoreGroupGradeTypeList',
- 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 frontendScoreGroupGradeTypeAdd
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function frontendScoreGroupGradeTypeAdd(
$tblScoreGroupId = null,
$tblGradeTypeId = null,
$GradeType = null
) {
- 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 getScoreConditionGradeTypeListByCondition
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getScoreConditionGradeTypeListByCondition(TblScoreCondition $tblScoreCondition)
{
$list = $this->getCachedEntityListBy(__METHOD__, $this->getConnection()->getEntityManager(),
'TblScoreConditionGradeTypeList',
- 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 getScoreConditionGroupRequirementAllByCondition
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getScoreConditionGroupRequirementAllByCondition(TblScoreCondition $tblScoreCondition)
{
$list = $this->getCachedEntityListBy(__METHOD__, $this->getConnection()->getEntityManager(),
'TblScoreConditionGroupRequirement',
- 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 setTablePrepareStudent
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function setTablePrepareStudent(Schema &$Schema, Table $tblPrepare)
{
$Table = $this->getConnection()->createTable($Schema, 'tblPrepareStudent');
if (!$this->getConnection()->hasColumn('tblPrepareStudent', 'serviceTblPerson')) {
- 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 getPrepareAllByYear
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getPrepareAllByYear(TblYear $tblYear)
{
$resultList = array();
$entityList = $this->getPrepareAll();
- 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 setTableCertificatePrepare
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function setTableCertificatePrepare(Schema &$Schema)
{
$Table = $this->getConnection()->createTable($Schema, 'tblPrepareCertificate');
if (!$this->getConnection()->hasColumn('tblPrepareCertificate', 'serviceTblDivision')) {
- 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 getVerbalGrade
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function getVerbalGrade($grade)
{
switch ($grade) {
case 1 : return 'sehr gut'; break;
case 2 : return 'gut'; break;
- 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 __construct
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function __construct(TblLeaveStudent $tblLeaveStudent, $view = BlockIView::PREVIEW)
{
$this->tblLeaveStudent = $tblLeaveStudent;
$this->View = $view;
- 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 updateAbiturSettings
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function updateAbiturSettings(
IFormInterface $form,
TblGenerateCertificate $tblGenerateCertificate,
$Data
) {
- 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 frontendGradeInformation
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function frontendGradeInformation($DivisionId = null, $Route = 'Teacher')
{
$Stage = new Stage('Noteninformation', 'Übersicht');
$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 frontendDestroyDroppedSubjects
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function frontendDestroyDroppedSubjects(
$Id = null,
$GroupId = null,
$Confirm = false,
$Route = null
- 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 getTeacherAllByDivision
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getTeacherAllByDivision(TblDivision $tblDivision)
{
$TempList = $this->getCachedEntityListBy(__Method__, $this->getConnection()->getEntityManager(),
'TblDivisionTeacher',
- 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 countSubjectStudentByDivisionSubject
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function countSubjectStudentByDivisionSubject(
TblDivisionSubject $tblDivisionSubject
) {
// Todo GCK getCachedCountBy anpassen --> ignorieren von removed entities bei Verkn�pfungstabelle
- 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 getDivisionSubjectByDivision
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getDivisionSubjectByDivision(TblDivision $tblDivision)
{
$EntityList = $this->getCachedEntityListBy(__Method__, $this->getConnection()->getEntityManager(),
'TblDivisionSubject',
- 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 saveFilter
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function saveFilter(TblSubjectGroup $tblSubjectGroup, $property, $field)
{
$tblSubjectGroupFilter = Division::useService()->getSubjectGroupFilterBy($tblSubjectGroup, $field);
/** @var Element $property */
if ($property) {
- 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 getDivisionSubjectBySubjectAndDivision
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getDivisionSubjectBySubjectAndDivision(TblSubject $tblSubject, TblDivision $tblDivision)
{
$EntityList = $this->getCachedEntityListBy(__Method__, $this->getConnection()->getEntityManager(),
'TblDivisionSubject',
- 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"