Showing 5,014 of 7,620 total issues
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 downloadAgreementClassList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadAgreementClassList($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 downloadGroupList
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadGroupList($GroupId = null)
{
$tblGroup = Group::useService()->getGroupById($GroupId);
if ($tblGroup) {
- 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 setInitialView
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
private function setInitialView(QueryBuilder $Builder, $ViewType, &$ViewList = array(), &$ParameterList = array())
{
switch ($ViewType) {
case TblWorkSpace::VIEW_TYPE_STUDENT:
$viewGroup = new ViewGroup();
- 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 saveAddDebtorNumber
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function saveAddDebtorNumber($Identifier = '', $PersonId = '', $DebtorNumber = array())
{
// Handle error's
if($form = $this->checkInputDebtorNumber($Identifier, $PersonId, '', $DebtorNumber)){
- 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 downloadDatev
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadDatev($BasketId = '')
{
if(($tblBasket = Basket::useService()->getBasketById($BasketId))){
if(($fileLocation = Balance::useService()->createDatevCsv($tblBasket))){
- 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 saveAddReference
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function saveAddReference($Identifier = '', $PersonId = '', $Reference = array())
{
// Handle error's
if($form = $this->checkInputReference($Identifier, $PersonId, '', $Reference)){
- 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 saveAddBankAccount
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function saveAddBankAccount($Identifier = '', $PersonId = '', $BankAccount = array())
{
// Handle error's
if($form = $this->checkInputBankAccount($Identifier, $PersonId, '', $BankAccount)){
- 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 downloadSepa
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function downloadSepa($Invoice = array())
{
$CheckboxList = array();
if(isset($Invoice['CheckboxList'])){
- 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 replaceCurrentSchool
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function replaceCurrentSchool($modalField, $CloneField, $PersonIdArray = array(), $Id = null)
{
$tblStudentTransferType = Student::useService()->getStudentTransferTypeByIdentifier('PROCESS');
- 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 replaceLevelFrom
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function replaceLevelFrom(
$modalField,
$CloneField,
$TypeId,
$RankingId,
- 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 replaceLevelTill
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function replaceLevelTill(
$modalField,
$CloneField,
$TypeId,
$RankingId,
- 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 getPictureForDiploma
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public static function getPictureForDiploma($showPicture, $marginTop = '40px')
{
if (!$showPicture) {
return new Slice();
- 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 selectValuesTransfer
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function selectValuesTransfer()
{
if(($tblDivision = $this->getTblDivision())){
if(($tblLevel = $tblDivision->getTblLevel())){
// Versetzungevermerk wird für Klasse 1 deaktiviert
- 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 buildPages
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
- 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 getBody
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getBody($personId, $hasTransfer)
{
// zusammen 100%
$width1 = '20%';
$width2 = '45%';
- 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 getContactData
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
private function getContactData()
{
$Slice = new Slice();
if($this->FieldValue['Phone'] === ' '){
- 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 getHeaderSlice
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
private function getHeaderSlice($Height = '200px')
{
if (($tblSetting = Consumer::useService()->getSetting(
'Api', 'Document', 'Standard', 'Billing_PictureAddress'))
) {
- 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"