Showing 5,014 of 7,620 total issues
Method frontendListElementSelect
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendListElementSelect($Id = null, $Element = null)
{
$Stage = new Stage('Check-Listen', 'Elemente einer Check-Liste zuordnen');
Method getEditStudentTransferContent
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getEditStudentTransferContent($PersonId = null)
{
$tblPerson = false;
if ($PersonId && ($tblPerson = Person::useService()->getPersonById($PersonId))) {
Method frontendHeadmasterDivisionList
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendHeadmasterDivisionList($IsAllYears = false, $IsGroup = false, $YearId = null)
{
$Stage = new Stage('Schülerübersicht', 'Klasse des Schülers Auswählen');
$Stage->addButton(
Method updateAbiturPreliminaryGrades
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function updateAbiturPreliminaryGrades(
IFormInterface $Form = null,
TblPerson $tblPerson,
TblPrepareCertificate $tblPrepare,
$GroupId = null,
Method frontendHeadmasterSelectDivision
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendHeadmasterSelectDivision($IsAllYears = false, $IsGroup = false, $YearId = null)
{
$Stage = new Stage('Zeugnisvorbereitung', 'Klasse auswählen');
$this->setHeaderButtonList($Stage, View::HEADMASTER);
Method frontendSubjectAdd
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendSubjectAdd($Id = null, $IsHasGradingView = false, $Data = null)
{
$tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
if (!$tblDivision) {
Method setRepeatersFromCertificates
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static function setRepeatersFromCertificates(&$Content, $tblPastYearList, TblType $tblKamenzSchoolType)
{
if ($tblPastYearList) {
foreach ($tblPastYearList as $tblPastYear) {
File FrontendStudent.php
has 311 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 12.12.2018
Method frontendCustodyAdd
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendCustodyAdd($Person = null, $Year = null, $Division = null, $TypeId = null)
{
$Stage = new Stage('Sorgeberechtigten-Accounts', 'Erstellen');
$form = $this->getCustodyFilterForm();
Method formDebtorNumber
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function formDebtorNumber($Identifier = '', $PersonId = '', $DebtorNumberId = '')
{
// choose between Add and Edit
$SaveButton = new Primary('Speichern', self::getEndpoint(), new Save());
Method buildPages
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
$PageList = array();
Method createElectiveClassListExcel
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createElectiveClassListExcel($PersonList, $tblPersonList, $DivisionId)
{
// get PersonList sorted by GradeBook
if (!empty($PersonList)) {
Method frontendAppointmentGradeUpload
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendAppointmentGradeUpload(
UploadedFile $File = null,
$Period = null,
$TaskId = null
) {
Method frontendSaveRelationshipCustody
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendSaveRelationshipCustody()
{
$stage = new Stage('Einordnung der Sorgeberechtigten', 'nach S1, S2, S3');
$stage->addButton(new Standard('Zurück', '/People/Group', new ChevronLeft()));
Method getSelectLeaveCertificateStage
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getSelectLeaveCertificateStage(
TblPerson $tblPerson,
TblDivision $tblDivision,
TblType $tblType,
TblCourse $tblCourse = null,
Method frontendDestroyAbsence
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendDestroyAbsence($Id = null, $Confirm = false, $BasicRoute = '')
{
$Stage = new Stage('Fehlzeit', 'Löschen');
Function frontendSponsorAssociationDestroy
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSponsorAssociationDestroy($Id, $Confirm = false)
{
$Stage = new Stage('Förderverein', 'Löschen');
if ($Id) {
- 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 frontendDestroyPrepare
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function frontendDestroyPrepare($Id = null, $Confirm = false)
{
$Stage = new Stage('Benutzer', 'Löschen');
if ($Id) {
- 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 downloadBalanceList
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function downloadBalanceList($ItemIdString = '', $Year = '', $From = '', $To = '', $DivisionId = '', $GroupId = '', $PersonId = '')
{
if($ItemIdString){
$ItemIdList = explode(",", $ItemIdString);
- 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 pipelineNavigation
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public static function pipelineNavigation($isLoadFilter = true, $ViewType = TblWorkSpace::VIEW_TYPE_ALL, $PresetId = null)
{
$Pipeline = new Pipeline();
$Emitter = new ServerEmitter(self::receiverNavigation(), 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"