Showing 5,014 of 7,620 total issues
Function buildDocument
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function buildDocument($pageList = array())
{
$document = new Document();
foreach ($pageList as $subjectPages) {
- 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 getForeignLanguages
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private static function getForeignLanguages(TblPerson $tblPerson)
{
$subjects = array();
if (($tblStudent = $tblPerson->getStudent())
&& ($tblStudentSubjectType = Student::useService()->getStudentSubjectTypeByIdentifier('FOREIGN_LANGUAGE'))
- 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 createDiseaseList
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function createDiseaseList(TblGroup $tblGroup)
{
$TableContent = 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 showClassList
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function showClassList(Stage $Stage, $DivisionId, $showDownLoadButton = true)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
$tblPersonList = Division::useService()->getStudentAllByDivision($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 getInActiveStudentPanel
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function getInActiveStudentPanel(TblDivision $tblDivision)
{
$inActiveStudentList = array();
if (($tblDivisionStudentAll = Division::useService()->getDivisionStudentAllByDivision($tblDivision, true))) {
foreach ($tblDivisionStudentAll as $tblDivisionStudent) {
- 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 formFilterPersonGroup
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function formFilterPersonGroup(TblSerialLetter $tblSerialLetter = null)
{
$FormGroup = array();
$FormGroup[] = (new SerialLetterForm())->formSerialLetterStandardGroup();
- 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 changeDynamicFilter
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function changeDynamicFilter(IFormInterface &$Stage = null, TblDynamicFilter $tblDynamicFilter, $FilterName = null, $IsPublic = false)
{
/**
* 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 countListObjectListByList
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function countListObjectListByList(TblList $tblList)
{
// Todo GCK getCachedCountBy anpassen --> ignorieren von removed entities bei Verknüpfungstabelle
// $result = $this->getCachedCountBy(__METHOD__, $this->getConnection()->getEntityManager(), 'TblListObjectList',
- 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 pictureShow
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function pictureShow($PictureList)
{
if (!empty( $PictureList )) {
// $this->getDebugger()->screenDump( $PictureList );
- 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 frontendUpdateAddress
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function frontendUpdateAddress($Confirm = false)
{
$Stage = new Stage('Daten Anonymisieren', 'Adressen');
- 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 frontendUpdatePerson
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function frontendUpdatePerson($Confirm = false)
{
$Stage = new Stage('Daten Anonymisieren', 'Personen');
- 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 executeCreateTicket
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function executeCreateTicket(IFormInterface &$Form, $TicketSubject, $TicketMessage)
{
// $Error = false;
// if (empty( $TicketSubject ) && null !== $TicketSubject) {
- 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 createConsumer
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function createConsumer(
IFormInterface &$Form,
$ConsumerAcronym,
$ConsumerName,
$ConsumerAlias
- 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 frontendUpdateCompany
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function frontendUpdateCompany($Confirm = false)
{
$Stage = new Stage('Daten Anonymisieren', 'Institution');
if ($Confirm){
- 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 frontendPersonRestoreSelected
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function frontendPersonRestoreSelected($PersonId = null, $IsRestore = false)
{
if (($tblPerson = Person::useService()->getPersonById($PersonId, true))) {
$Stage = new Stage('Person Wiederherstellen', 'Anzeigen');
- 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 addCombinedTransfer
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function addCombinedTransfer(CustomerDirectDebitFacade $directDebit, $combinedItemDebtorList = array())
{
/** @var TblInvoiceItemDebtor $tblInvoiceItemDebtor */
foreach($combinedItemDebtorList as $ReferenceGroup){
- 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 sanitizeIBANFrontend
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
protected function sanitizeIBANFrontend($Value)
{
$iban = strtoupper(str_replace(' ', '', $Value));
// Todo Wie gehen wir mit fehlerwerten um?
if (preg_match('!(DE)([0-9]){20}!is', $iban, $Match)){
- 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 addCompanyTransfer
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function addCompanyTransfer(CustomerCreditFacade $customerCredit, $tblInvoiceItemDebtorList, $PaymentId)
{
/** @var TblInvoiceItemDebtor $tblInvoiceItemDebtor */
foreach($tblInvoiceItemDebtorList as $tblInvoiceItemDebtor) {
- 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 getMonthList
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getMonthList($From = null, $To = null)
{
$MonthList[1] = 'Januar';
$MonthList[2] = 'Februar';
- 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 getGroupAllSortedByPerson
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getGroupAllSortedByPerson(TblPerson $tblPerson)
{
$lockedList = array();
$customList = array();
$tblGroupAll = $this->getGroupAllByPerson($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"