Showing 5,014 of 7,620 total issues
Function getPrimaryFocusBySupport
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getPrimaryFocusBySupport(TblSupport $tblSupport)
{
$FocusList = false;
$tblSupportFocusList = (new Data($this->getBinding()))->getSupportFocusBySupport($tblSupport);
- 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 getSpecialDisorderTypeAllBySpecial
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getSpecialDisorderTypeAllBySpecial(TblSpecial $tblSpecial)
{
$tblSpecialDisorderTypeList = array();
$tblSpecialDisorderList = (new Data($this->getBinding()))->getSpecialDisorderBySpecial($tblSpecial);
- 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 getCourseByStudent
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getCourseByStudent(TblStudent $tblStudent)
{
$tblTransferType = \SPHERE\Application\People\Meta\Student\Student::useService()->getStudentTransferTypeByIdentifier('PROCESS');
if ($tblTransferType) {
- 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 setPersonData
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
private function setPersonData(TblPerson $tblPerson, $DataName)
{
$result = array();
$result['Check'] = new CheckBox(
$DataName . '[' . $tblPerson->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"
Further reading
Function setTableClub
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
private function setTableClub(Schema &$Schema)
{
$Table = $this->getConnection()->createTable($Schema, 'tblClub');
if (!$this->getConnection()->hasColumn('tblClub', '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 frontendEditDocumentInformation
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function frontendEditDocumentInformation($DocumentId = null, $Data = null)
{
$Stage = new Stage('Belegdruck', 'Inhalt bearbeiten');
$Stage->addButton(new Standard(
'Zurück', '/Billing/Inventory/Document', 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 getDisplayInsuranceState
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getDisplayInsuranceState()
{
$result = '';
switch ($this->getInsuranceState()) {
- 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 updatePersonAnonymousBulk
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function updatePersonAnonymousBulk(
$ProcessList = array()
) {
$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 setTablePerson
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
private function setTablePerson(Schema &$Schema, Table $tblSalutation)
{
$Table = $this->getConnection()->createTable($Schema, 'tblPerson');
if (!$this->getConnection()->hasColumn('tblPerson', 'Title')) {
- 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 createRelationshipToPerson
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function createRelationshipToPerson(
TblPerson $tblPersonFrom,
TblPerson $tblPersonTo,
$Type
) {
- 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 frontendPersonReadOnly
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function frontendPersonReadOnly($Id = null, $Group = null)
{
$stage = new Stage('Person', 'Datenblatt ' . ($Id ? 'bearbeiten' : 'anlegen'));
$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 getProspectContent
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public static function getProspectContent($PersonId = null)
{
if (($tblPerson = Person::useService()->getPersonById($PersonId))
&& ($tblGroup = Group::useService()->getGroupByMetaTable('PROSPECT'))
&& Group::useService()->existsGroupPerson($tblGroup, $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 checkFormRelationshipToCompany
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function checkFormRelationshipToCompany(
TblPerson $tblPerson,
$Type,
$To,
TblToCompany $tblToCompany = 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 getPersonAllBySoftRemove
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getPersonAllBySoftRemove()
{
// direkt über DB ermitteln
// return $this->getForceEntityListBy(__METHOD__, $this->getEntityManager(false), 'TblPerson', array(Element::ENTITY_REMOVE => !null));
$resultList = 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 loadExtraOptions
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function loadExtraOptions(IMessageInterface $message = null, $Post = null)
{
if ($Post) {
$global = $this->getGlobal();
$global->POST['Type']['Ranking'] = $Post;
- 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 6 (exceeds 5 allowed). Consider refactoring. Open
public static function getContent(
$titleName,
$content,
$linkList = array(),
$titleDescription = '',
- 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 setTableStudentMedicalRecord
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
private function setTableStudentMedicalRecord(Schema &$Schema)
{
$Table = $this->getConnection()->createTable($Schema, 'tblStudentMedicalRecord');
if (!$this->getConnection()->hasColumn('tblStudentMedicalRecord', 'Disease')) {
- 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 softRemovePersonReferences
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function softRemovePersonReferences(TblPerson $tblPerson)
{
$IsSoftRemove = true;
- 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 removeRelationshipAllByPerson
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function removeRelationshipAllByPerson(TblPerson $tblPerson, $IsSoftRemove = false)
{
if (($tblRelationshipToPersonList = $this->getPersonRelationshipAllByPerson($tblPerson))){
foreach($tblRelationshipToPersonList as $tblToPerson){
- 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 getDivisionAllByTask
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getDivisionAllByTask(TblTask $tblTask)
{
$resultList = array();
$tblTestList = $this->getTestAllByTask($tblTask);
- 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"