Showing 5,014 of 7,620 total issues
Function frontendSetupUpgrade
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSetupUpgrade()
{
$Stage = new Stage('Database', 'Setup aller Mandanten (Struktur)');
$this->menuButton($Stage);
- 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 runConvert
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function runConvert($Row)
{
$Result = array();
foreach ($Row as $Part) {
$Result = array_merge($Result, $Part);
- 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 insertSchoolYear
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function insertSchoolYear($year)
{
$tblYear = Term::useService()->insertYear('20' . $year . '/' . ($year + 1));
if ($tblYear) {
$tblPeriodList = Term::useService()->getPeriodAllByYear($tblYear);
- 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 getDateFrom
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function getDateFrom($getDateTimeObjekt = false)
{
if(null === $this->DateFrom){
return false;
- 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 loadPersonSearch
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function loadPersonSearch($Search, IMessageInterface $message = null)
{
if ($Search != '' && strlen($Search) > 2) {
if (($tblPersonList = Person::useService()->getPersonListLike($Search))) {
- 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 createImportBulk
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function createImportBulk($ImportList)
{
$Manager = $this->getConnection()->getEntityManager();
if (!empty($ImportList)) {
- 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 createInvoice
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function createInvoice(TblBasket $tblBasket)
{
/** Shopping Content */
$tblBasketVerificationList = Basket::useService()->getBasketVerificationAllByBasket($tblBasket);
if(!$tblBasketVerificationList){
- 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 formInvoiceFilter
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function formInvoiceFilter($HasItemFilter = false)
{
$YearList = Invoice::useService()->getYearList(3, 1);
$MonthList = Invoice::useService()->getMonthList();
- 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 getDateTo
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function getDateTo($getDateTimeObjekt = false)
{
if(null === $this->DateTo){
return false;
}
- 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 setTableStudentIntegration
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
private function setTableStudentIntegration(
Schema &$Schema
) {
$Table = $this->getConnection()->createTable($Schema, 'tblStudentIntegration');
- 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 updateStudentMedicalRecord
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function updateStudentMedicalRecord(TblPerson $tblPerson, $Meta)
{
// Student mit Automatischer Schülernummer anlegen falls noch nicht vorhanden
$tblStudent = $tblPerson->getStudent(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 loadCompanySearch
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function loadCompanySearch($Search, IMessageInterface $message = null)
{
if ($Search != '' && strlen($Search) > 2) {
if (($tblCompanyList = Company::useService()->getCompanyListLike($Search))) {
- 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 getEditBasicContent
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function getEditBasicContent($PersonId = null)
{
$tblPerson = false;
if ($PersonId && ($tblPerson = Person::useService()->getPersonById($PersonId))) {
- 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 getDisplayGrade
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function getDisplayGrade($WithTrend = true)
{
if ($this->getTblGradeText()){
return $this->getTblGradeText()->getName();
- 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 frontendSelectCertificate
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSelectCertificate()
{
$Stage = new Stage('Einstellungen', 'Zeugnisvorlage auswählen');
$Stage = self::setSettingMenue($Stage, 'Template');
- 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 frontendScoreConditionGradeTypeAdd
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function frontendScoreConditionGradeTypeAdd(
$tblScoreConditionId = null,
$tblGradeTypeId = null,
$tblScoreGroupId = null,
$GradeType = 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 getMinimumGradeCountPanel
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
private function getMinimumGradeCountPanel($tblMinimumGradeCountList, $isSekII)
{
if ($tblMinimumGradeCountList) {
- 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 setSignerFromSignedInPerson
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
private function setSignerFromSignedInPerson(TblPrepareStudent $tblPrepareStudent)
{
if (!$tblPrepareStudent->getServiceTblPersonSigner()
&& ($tblPrepare = $tblPrepareStudent->getTblPrepareCertificate())
- 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 frontendGenerateSetting
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function frontendGenerateSetting($GenerateCertificateId = null, $Data = null)
{
$Stage = new Stage('Zeugnis generieren', 'Zusätzliche Einstellungen');
$Stage->addButton(new Standard('Zurück', '/Education/Certificate/Generate', 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 createGenerateCertificate
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function createGenerateCertificate(IFormInterface $Form = null, $Data = null)
{
/**
* 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"