Showing 5,014 of 7,620 total issues
Function calcAbiturExamGradesTotalForVerbalExam
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function calcAbiturExamGradesTotalForVerbalExam(
TblPrepareAdditionalGrade $tblVerbalExamGrade,
TblPrepareAdditionalGrade $tblExtraVerbalGrade = 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 calcAbiturExamGradesTotalForWrittenExam
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function calcAbiturExamGradesTotalForWrittenExam(
TblPrepareAdditionalGrade $tblWrittenExamGrade,
TblPrepareAdditionalGrade $tblExtraVerbalGrade = 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 setTablePrepareGrade
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
private function setTablePrepareGrade(Schema &$Schema, Table $tblPrepare)
{
$Table = $this->getConnection()->createTable($Schema, 'tblPrepareGrade');
if (!$this->getConnection()->hasColumn('tblPrepareGrade', '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 getCertificateMultiLeaveContent
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getCertificateMultiLeaveContent(TblDivision $tblDivision) {
$Content = array();
if (($tblLeaveStudentList = $this->getLeaveStudentAllByDivision($tblDivision))) {
foreach ($tblLeaveStudentList as $tblLeaveStudent) {
- 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 updatePrepareStudentSetApproved
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function updatePrepareStudentSetApproved(TblPrepareStudent $tblPrepareStudent)
{
if (($tblCertificate = $tblPrepareStudent->getServiceTblCertificate())
&& ($tblPrepare = $tblPrepareStudent->getTblPrepareCertificate())
- 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 updatePrepareDivisionSetApproved
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function updatePrepareDivisionSetApproved(TblPrepareCertificate $tblPrepare)
{
if (($tblDivision = $tblPrepare->getServiceTblDivision())) {
if (($tblGenerateCertificate = $tblPrepare->getServiceTblGenerateCertificate())
- 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 createLeaveStudentFromForm
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function createLeaveStudentFromForm(
IFormInterface $form = null,
TblPerson $tblPerson,
TblDivision $tblDivision,
$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 frontendPrintCertificateHistoryDivision
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function frontendPrintCertificateHistoryDivision()
{
$Stage = new Stage('Zeugnis', 'Klasse auswählen');
$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 frontendSelectDivision
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSelectDivision()
{
$hasHeadmasterRight = Access::useService()->hasAuthorization('/Education/Certificate/Prepare/Headmaster');
$hasTeacherRight = Access::useService()->hasAuthorization('/Education/Certificate/Prepare/Teacher');
$hasDiplomaRight = Access::useService()->hasAuthorization('/Education/Certificate/Prepare/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 setAvailableExamsSubjectToArray
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
private function setAvailableExamsSubjectToArray($subjectName, $isP3 = true)
{
$tblSubject = Subject::useService()->getSubjectByName($subjectName);
if (!$tblSubject && $subjectName == 'Gemeinschaftskunde/Rechtserziehung/Wirtschaft') {
- 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 copyTeacherAllByDivision
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function copyTeacherAllByDivision(TblDivision $tblDivision, TblDivision $tblDivisionCopy)
{
$Manager = $this->getConnection()->getEntityManager();
$EntityList = $this->getConnection()->getEntityManager()->getEntity('TblDivisionTeacher')->findBy(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 getCharCountByCertificateAndField
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getCharCountByCertificateAndField(TblCertificate $tblCertificate, $FieldName, $HasTeamInRemark = true)
{
$tblCertificateField = $this->getCertificateFieldByCertificateAndField(
$tblCertificate, $FieldName
- 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 removeSubjectTeacherList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function removeSubjectTeacherList($tblSubjectTeacherList)
{
$Manager = $this->getConnection()->getEntityManager();
if ($tblSubjectTeacherList) {
- 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 countDivisionSubjectGroupByDivision
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function countDivisionSubjectGroupByDivision(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 getDivisionSubjectAllWhereSubjectGroupByDivisionAndSubject
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getDivisionSubjectAllWhereSubjectGroupByDivisionAndSubject(
TblDivision $tblDivision,
TblSubject $tblSubject
) {
- 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 getDivisionTeacherAllByTeacher
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getDivisionTeacherAllByTeacher(TblPerson $tblPerson)
{
$EntityList = $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 removeSubjectGroupFilterByDivisionSubject
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function removeSubjectGroupFilterByDivisionSubject(TblDivisionSubject $tblDivisionSubject)
{
if (($tblSubjectGroup =$tblDivisionSubject->getTblSubjectGroup())) {
$Manager = $this->getConnection()->getEntityManager();
- 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 isSingleDay
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function isSingleDay()
{
if ($this->getFromDate() && $this->getToDate()) {
if ($this->getFromDate() == $this->getToDate()) {
- 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 addSubjectStudentList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function addSubjectStudentList($SubjectStudentList)
{
$Manager = $this->getConnection()->getEntityManager();
- 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 getTeacherAllByDivisionSubject
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getTeacherAllByDivisionSubject(TblDivisionSubject $tblDivisionSubject)
{
$TempList = $this->getConnection()->getEntityManager()->getEntity('TblSubjectTeacher')->findBy(array(
TblSubjectTeacher::ATTR_TBL_DIVISION_SUBJECT => $tblDivisionSubject->getId()
- 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"