Showing 5,014 of 7,620 total issues
Function checkAbiturExams
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public function checkAbiturExams(TblPrepareCertificate $tblPrepareCertificate, TblPerson $tblPerson)
{
$warnings = false;
$exams = 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 setYearGroupButtonList
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public function setYearGroupButtonList($Route, $IsAllYears, $IsGroup, $YearId, &$tblYear, $HasAllYears = true)
{
$tblYear = false;
$tblYearList = Term::useService()->getYearByNow();
- 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 frontendPrintCertificateHistory
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public function frontendPrintCertificateHistory()
{
$Stage = new Stage('Zeugnis', 'Person 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 frontendPrepareDiplomaAbiturBlockI
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public function frontendPrepareDiplomaAbiturBlockI(
$PrepareId = null,
$GroupId = null,
$PersonId = null,
$View = BlockIView::PREVIEW,
- 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 setCertificateSubject
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
private function setCertificateSubject(
TblCertificate $tblCertificate,
$SubjectAcronym,
$LaneIndex,
$LaneRanking,
- 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 addPersonListFromSubject
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
private function addPersonListFromSubject($DataAddPerson, TblSubject $tblSubject, $SubjectGroup, $Group)
{
foreach ($DataAddPerson 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 frontendSelectHoliday
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSelectHoliday(
$YearId = null,
$DataAddHoliday = null,
$DataRemoveHoliday = 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 frontendDashboard
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public function frontendDashboard()
{
$Stage = new Stage('Fächer', 'Dashboard');
- 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 Data.php
has 274 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Reporting\Dynamic\Service;
use SPHERE\Application\Platform\Gatekeeper\Authorization\Account\Service\Entity\TblAccount;
use SPHERE\Application\Platform\System\Protocol\Protocol;
File Service.php
has 274 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Transfer\Untis\Import;
use SPHERE\Application\Education\Lesson\Division\Division;
use SPHERE\Application\Education\Lesson\Division\Service\Entity\TblDivision;
File Row.php
has 274 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace Rap2hpoutre\MySQLExplainExplain;
use \Jasny\MySQL\DB as DB;
use \Jasny\MySQL\DB_Exception as DB_Exception;
Function callback
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
callback: function( Confirm ) {
if (Confirm == true) {
Table.processing(true);
var $ExchangeTarget = $('table.' + settings.ExtensionRowExchange.Connect.To)
Method getSchoolName
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getSchoolName($personId, $MarginTop = '20px')
{
if (($tblSetting = \SPHERE\Application\Setting\Consumer\Consumer::useService()->getSetting(
'Education', 'Certificate', 'Prepare', 'IsSchoolExtendedNameDisplayed'))
Method getESSHeadGrade
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getESSHeadGrade($personId, $marginTop = '15px')
{
$GradeSlice = (new Slice());
Method getEZSHHeadGrade
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getEZSHHeadGrade($personId)
{
$GradeSlice = (new Slice());
Method frontendDenominationList
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendDenominationList()
{
$Stage = new Stage('Individuelle Auswertung', 'Anwesenheitsliste Elternabende');
$Stage->setMessage(new Danger('Die dauerhafte Speicherung des Excel-Exports
Method createSchoolFeeListExcel
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createSchoolFeeListExcel($PersonList, $tblPersonList)
{
if (!empty($PersonList)) {
Method checkCertificateSubjectsForDivision
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function checkCertificateSubjectsForDivision(TblPrepareCertificate $tblPrepare, $certificateNameList, &$hasMissingLanguage)
{
if (($tblSetting = ConsumerSetting::useService()->getSetting('Api', 'Education', 'Certificate', 'ProfileAcronym'))
&& ($value = $tblSetting->getValue())
Method frontendPrintCertificateHistorySelectedDivision
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendPrintCertificateHistorySelectedDivision($DivisionId = null)
{
$Stage = new Stage('Zeugnis', 'Auswahl');
$Stage->addButton(new Standard('Zurück', '/Education/Certificate/PrintCertificate/History/Division', new ChevronLeft()));
Method frontendDivisionChange
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendDivisionChange($Id = null, $Division = null)
{
$Stage = new Stage('Klasse', 'Bearbeiten');
$Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));