Showing 5,014 of 7,620 total issues
Function updateDocument
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function updateDocument(TblDocument $tblDocument, $Data)
{
if ((new Data($this->getBinding()))->updateDocument($tblDocument, $Data['Name'], $Data['Description'])) {
if (($tblDocumentItemList = $this->getDocumentItemAllByDocument($tblDocument))) {
foreach ($tblDocumentItemList as $tblDocumentItem) {
- 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 layoutPersonGroupList
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public static function layoutPersonGroupList($GroupId = '')
{
$tblGroupList = 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 checkGuardianRelationshipsForPerson
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
private function checkGuardianRelationshipsForPerson(TblPerson $tblPersonChild, TblPerson $tblPersonGuardian, $Ranking, $IsSingleParent)
{
$result = array();
if (($tblType = $this->getTypeByName(TblType::IDENTIFIER_GUARDIAN))
- 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 frontendSearch
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSearch($Id = false)
{
$Stage = new Stage('Suche', 'nach Gruppe');
$Stage->addButton(new Standard('Zurück', '/People', 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 frontendDestroyPerson
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function frontendDestroyPerson($Id = null, $Confirm = false, $Group = null)
{
$Stage = new Stage('Person', 'Löschen');
if ($Id) {
- 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 updateTest
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function updateTest(IFormInterface $Stage = null, $Id, $Test, $BasicRoute)
{
/**
* 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 frontendEditMinimumGradeCount
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function frontendEditMinimumGradeCount($Id = null, $MinimumGradeCount = null)
{
$Stage = new Stage('Mindestnotenanzahl', 'Bearbeiten');
$Stage->addButton(
- 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 setTableContentForBehaviourTask
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
private function setTableContentForBehaviourTask(
TblDivision $tblDivision,
TblTest $tblTest,
TblPerson $tblPerson,
$studentList,
- 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 copyAbiturPreliminaryGradesFromCertificates
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function copyAbiturPreliminaryGradesFromCertificates(
TblPrepareStudent $tblPrepareStudent,
TblPrepareAdditionalGradeType $tblPrepareAdditionalGradeType,
TblPrepareCertificate $tblPrepareCertificate
) {
- 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 frontendResetApprovePrepareDivision
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function frontendResetApprovePrepareDivision(
$PrepareId = null,
$DivisionId = null,
$IsLeave = false,
$Route = '/Education/Certificate/Approve/Prepare',
- 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 frontendApprovePrepareDivision
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function frontendApprovePrepareDivision(
$PrepareId = null,
$DivisionId = null,
$IsLeave = false,
$Route = '/Education/Certificate/Approve/Prepare',
- 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 frontendEditGenerate
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function frontendEditGenerate($Id = null, $Data = null)
{
$Stage = new Stage('Zeugnis generieren', 'Bearbeiten');
$Stage->setMessage('Die Notenaufträge können nur geändert werden bis ein Zeugnis freigeben wurde.');
- 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 getAbsenceListByDate
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function getAbsenceListByDate(TblPerson $tblPerson, TblDivision $tblDivision, \DateTime $date)
{
$resultList = array();
if (($tblAbsenceList = $this->getAbsenceAllByPerson($tblPerson, $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 destroyCertificate
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function destroyCertificate(TblCertificate $tblCertificate)
{
$Manager = $this->getConnection()->getEntityManager();
/** @var TblCertificate $Entity */
- 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 frontendSelectCertificate
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSelectCertificate($Division = null, $Person = null)
{
$Stage = new Stage('Zeugnisvorlage', 'wählen');
// Zurück button bei bedarf einbauen
- 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 changeSubjectGroup
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function changeSubjectGroup(
IFormInterface $Form,
$Group,
$Id,
$DivisionId,
- 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 getCertificateRevisionFileAllByPerson
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function getCertificateRevisionFileAllByPerson(TblPerson $tblPerson)
{
$tblPartition = $this->getPartitionByIdentifier(
TblPartition::IDENTIFIER_CERTIFICATE_STORAGE
- 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 innerJoin
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
protected function innerJoin($List)
{
$Result = array();
/** @var AbstractView $Node0 */
foreach ($List[0] as $Node0) {
- 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 countOrientation
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
private static function countOrientation(
TblStudent $tblStudent,
TblLevel $tblLevel,
$gender,
$countOrientationArray
- 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 getHolidayAllWhereYear
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function getHolidayAllWhereYear(TblYear $tblYear)
{
$fromDate = false;
$toDate = false;
- 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"