Showing 5,014 of 7,620 total issues
Function getLevelTen
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private function getLevelTen(TblPerson $tblPerson = null)
{
$slice = new Slice();
$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 getForeignLanguages
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private function getForeignLanguages(TblPerson $tblPerson = null)
{
$slice = new Slice();
$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 createClassListExcel
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function createClassListExcel($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 frontendExtendedClassList
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function frontendExtendedClassList($DivisionId = null)
{
$Stage = new Stage('Auswertung', 'erweiterte Klassenlisten');
if (null !== $DivisionId) {
- 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 checkFormRelationshipToPerson
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function checkFormRelationshipToPerson(
TblPerson $tblPerson,
$Type,
$To,
TblToPerson $tblToPerson = 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 getTestAllByTypeAndDivisionAndSubjectAndPeriodAndSubjectGroup
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function getTestAllByTypeAndDivisionAndSubjectAndPeriodAndSubjectGroup(
TblDivision $tblDivision,
TblSubject $tblSubject,
TblTestType $tblTestType = null,
TblPeriod $tblPeriod = 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 frontendHeadmasterTaskGrades
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function frontendHeadmasterTaskGrades($Id = null, $DivisionId = null)
{
$Stage = new Stage('Notenauftrag', 'Zensurenübersicht');
$tblTask = 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 frontendMinimumGradeCount
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function frontendMinimumGradeCount($MinimumGradeCount = null)
{
$Stage = new Stage('Mindestnotenanzahl', 'Übersicht');
$Stage->setMessage(
- 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 setTableContentForAppointedDateTask
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private function setTableContentForAppointedDateTask(
TblDivision $tblDivision,
TblTest $tblTest,
TblSubject $tblSubject,
TblPerson $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 setPrepareStudentList
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private function setPrepareStudentList()
{
$prepareStudentList = array();
// Zensuren von Kurshalbjahreszeugnissen
if (($tblLeaveStudent = $this->tblLeaveStudent)
- 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 frontendSigner
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSigner($PrepareId = null, $GroupId = null, $Route = null, $Data = null)
{
$Stage = new Stage('Unterzeichner', 'Auswählen');
$Stage->addButton(new Standard(
- 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 setPrepareStudentList
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private function setPrepareStudentList()
{
$prepareStudentList = array();
// Zensuren von Kurshalbjahreszeugnissen
if (($tblDivisionStudentList = Division::useService()->getDivisionStudentAllByPerson($this->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 setRepeatersGym
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private static function setRepeatersGym(
TblPerson $tblPerson,
TblLevel $tblLevel,
TblDivision $tblDivision,
&$Content,
- 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 setRepeatersOs
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private static function setRepeatersOs(
TblPerson $tblPerson,
TblLevel $tblLevel,
TblDivision $tblDivision,
&$Content,
- 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 removePersonListFromSubject
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private function removePersonListFromSubject($DataRemovePerson, $SubjectGroup, $Group)
{
foreach ($DataRemovePerson as $personId => $value) {
$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 performExtraAnalysis
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function performExtraAnalysis() {
// La colonne extra contient des infos multiples alors on utilise un tableau d'information
// Par contre l'état (danger ou success) reste global à la cellule et est à gérer au cas par cas
$infos = array();
// Contient Using temporary; Using filesort
- 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 verifyKey
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
final public function verifyKey(KeyValue $Key)
{
(new DebuggerFactory())->createLogger(new BenchmarkLogger())->addLog('YubiKey-Api Verify');
- 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 performExtraAnalysis
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function performExtraAnalysis() {
// La colonne extra contient des infos multiples alors on utilise un tableau d'information
// Par contre l'état (danger ou success) reste global à la cellule et est à gérer au cas par cas
$infos = array();
// Contient Using temporary; Using filesort
- 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
File ModAjax.js
has 309 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function ($) {
// 'use strict';
$.fn.ModAjax = function (options) {
// Settings
Method buildPages
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;