Showing 5,014 of 7,620 total issues
Method setSchoolTypeLastYear
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static function setSchoolTypeLastYear(
&$Content,
$tblPastYearList,
TblPerson $tblPerson,
$tblCourse,
Method getContent
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getContent($NoConnection = false)
{
$this->Template->setVariable('ManagerStyle', Style::getManager());
$this->Template->setVariable('ManagerScript', Script::getManager());
Method buildPages
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
$PageList = array();
File E03.php
has 365 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 05.09.2018
Method hasPersonAllObligations
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function hasPersonAllObligations(TblPerson $tblPerson, TblType $tblSchoolType, TblLevel $tblLevel, $list, $validateFirstLanguage, $hasOrientationSubjects)
{
$tblStudent = $tblPerson->getStudent();
// Keine 1. Fremdsprache hinterlegt.
Method formSignOut
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function formSignOut()
{
return new Form(
new FormGroup(array(
Function setPostValue
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
protected function setPostValue(IBridgeInterface &$Template, $RequestKey, $VariableName)
{
if (preg_match('!^(.*?)\[(.*?)\]$!is', $RequestKey, $Match)) {
if (false === strpos($Match[2], '[')) {
- 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 saveEditDebtorSelection
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function saveEditDebtorSelection(
$BasketVerificationId,
$DebtorSelection = 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 deleteReference
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function deleteReference($Identifier = '', $PersonId = '', $ReferenceId = '')
{
if(($tblReference = Debtor::useService()->getBankReferenceById($ReferenceId))){
$RowContent = 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 getSubjectList
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
private function getSubjectList(TblPerson $tblPerson = null)
{
$subjectList = array();
$tblCertificateSubjectAll = Generator::useService()->getCertificateSubjectAll($this->getCertificateEntity());
if ($tblCertificateSubjectAll) {
- 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 createLanguageListExcel
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function createLanguageListExcel($PersonList, $tblPersonList)
{
if (!empty( $PersonList )) {
- 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 frontendClassList
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function frontendClassList($LevelId = null, $YearId = null)
{
$Stage = new Stage('Auswertung', 'Klassenliste');
if (null !== $LevelId || $YearId !== 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 frontendClassList
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function frontendClassList($LevelId = null, $YearId = null)
{
$Stage = new Stage('Auswertung', 'Klassenliste');
if (null !== $LevelId || $YearId !== 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 getStudentTableByResult
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function getStudentTableByResult($Result)
{
$TableSearch = array();
if (!empty($Result)) {
/** @var AbstractView[]|ViewDivisionStudent[] $Row */
- 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 frontendDestroyAccount
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function frontendDestroyAccount($AccountType, $Confirm = false)
{
$Stage = new Stage('Benutzeraccounts', 'Löschen');
- 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 createIndiwareImportLectureshipBulk
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function createIndiwareImportLectureshipBulk(
$ImportList,
TblYear $tblYear,
TblAccount $tblAccount
) {
- 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 setStudentList
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
private function setStudentList(
TblDivisionSubject $tblDivisionSubject,
TblTest $tblTest,
$studentList,
&$studentTestList,
- 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 updateAbiturLevelTenGrades
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function updateAbiturLevelTenGrades(
IFormInterface $form,
TblPrepareCertificate $tblPrepare,
TblPerson $tblPerson,
$Data,
- 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 setCertificateTemplates
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function setCertificateTemplates(
TblPrepareCertificate $tblPrepare,
&$countStudents = 0,
&$certificateNameList = array(),
&$schoolNameList = 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 frontendCopyDivision
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function frontendCopyDivision($Id = null, $Division = null, $Level = null)
{
$Stage = new Stage('Klasse', 'Kopieren');
$Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', 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"