Showing 5,014 of 7,620 total issues
Function getBasicContent
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public static function getBasicContent($CompanyId = null)
{
if (($tblCompany = Company::useService()->getCompanyById($CompanyId))) {
$groups = array();
if (($tblGroupList = Group::useService()->getGroupAllByCompany($tblCompany))) {
- 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 downloadSignList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadSignList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 downloadExtendedClassList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadExtendedClassList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 downloadClassList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadClassList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 downloadClassList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadClassList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 downloadMedicalRecordClassList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadMedicalRecordClassList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 downloadProfileList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadProfileList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 downloadMedicalInsuranceClassList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadMedicalInsuranceClassList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 downloadElectiveClassList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadElectiveClassList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 downloadParentTeacherConferenceList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadParentTeacherConferenceList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 downloadLanguageList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadLanguageList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 downloadMedicList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadMedicList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 pipelineAddField
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public static function pipelineAddField($Field, $View, $ViewType)
{
$Pipeline = new Pipeline();
$Emitter = new ServerEmitter(self::receiverService(), self::getEndpoint());
- 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 addField
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function addField($Field, $View, $ViewType)
{
$Position = 1;
$tblWorkSpaceList = Individual::useService()->getWorkSpaceAll($ViewType);
- 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 downloadParentTeacherConferenceList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadParentTeacherConferenceList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 downloadExtendedClassList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadExtendedClassList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 downloadBirthdayClassList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadBirthdayClassList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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 loadPreset
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function loadPreset($PresetId = null, $ViewType = TblWorkSpace::VIEW_TYPE_ALL)
{
$tblPreset = Individual::useService()->getPresetById($PresetId);
if ($tblPreset) {
- 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 saveEditRelationshipToPersonModal
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function saveEditRelationshipToPersonModal($PersonId, $ToPersonId, $Type, $To, $Search)
{
if (!($tblPersonFrom = Person::useService()->getPersonById($PersonId))) {
return new Danger('Die Person wurde nicht gefunden', new Exclamation());
- 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 downloadPrintClassList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadPrintClassList($DivisionId = null)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($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"