Showing 5,014 of 7,620 total issues
Method frontendParentTeacherConferenceList
has 145 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendParentTeacherConferenceList($DivisionId = null)
{
$Stage = new Stage('Individuelle Auswertung', 'Anwesenheitsliste Elternabende');
if (null !== $DivisionId) {
Method createCompaniesFromFile
has 145 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createCompaniesFromFile(IFormInterface $Form = null, UploadedFile $File = null)
{
/**
* Skip to Frontend
Method getPdfForm
has 145 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getPdfForm(TblItem $tblItem, $tblDocumentList, $countPdfs, $Balance = null, $Data = null)
{
$Location = '';
$Date = '';
File GradebookOverview.php
has 408 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Document\Standard\Repository\GradebookOverview;
use SPHERE\Application\Api\Document\AbstractDocument;
File HorHj.php
has 407 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\FESH;
use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
use SPHERE\Application\Education\Certificate\Generator\Repository\Element;
File Data.php
has 407 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Billing\Accounting\Debtor\Service;
use SPHERE\Application\Billing\Accounting\Debtor\Service\Entity\TblBankAccount;
Method updateSerialLetter
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function updateSerialLetter(
IFormInterface $Stage = null,
TblSerialLetter $tblSerialLetter,
$SerialLetter = null,
$FilterGroup = null,
Function getCompanySchoolByPerson
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
public function getCompanySchoolByPerson(TblPerson $tblPerson, $IsParent = false)
{
$tblCompany = false;
if($IsParent){
- 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 frontendSettingAllConsumers
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSettingAllConsumers($SettingId = null)
{
$stage = new Stage('Mandant' , 'Einstellungen');
$stage->addButton(new Standard('Zurück', '/Setting/Consumer/Setting', new ChevronLeft()));
if (($tblSetting = Consumer::useService()->getSettingById($SettingId))) {
- 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 setSubjectRow
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
private function setSubjectRow($personId, $subjectName = ' ', $isForeignLanguage = false, $isLastRow = false)
{
$textSize = '13px';
$colorPoints = '#BBB';
- 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 createAddressPersonSelf
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
public function createAddressPersonSelf(TblSerialLetter $tblSerialLetter)
{
$tblSerialPersonList = SerialLetter::useService()->getSerialPersonBySerialLetter($tblSerialLetter);
if ($tblSerialPersonList) {
$CreateArray = 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 destroyAccount
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
public function destroyAccount(TblAccount $tblAccount)
{
$Manager = $this->getConnection()->getEntityManager();
/** @var TblAccount $Entity */
- 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 frontendLeaveStudentAbiturInformation
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
public function frontendLeaveStudentAbiturInformation($Id = null, $Data = null)
{
if (($tblLeaveStudent = Prepare::useService()->getLeaveStudentById($Id))
&& ($tblPerson = $tblLeaveStudent->getServiceTblPerson())
- 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 updateAbsence
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
public function updateAbsence(IFormInterface $Stage = null, TblAbsence $tblAbsence, $BasicRoute = '', $Data)
{
/**
* 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"
Further reading
Method getGradeLanesForGradeInformation
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getGradeLanesForGradeInformation(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Method getContent
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Method createExtendedClassList
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createExtendedClassList(TblDivision $tblDivision)
{
$tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
Method createSerialLetter
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createSerialLetter(
IFormInterface $Stage = null,
$SerialLetter,
$FilterGroup = null,
$FilterPerson = null,
Method createStaffsFromFile
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
{
/**
* Skip to Frontend
Method loadMinimumGradeCountReporting
has 142 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function loadMinimumGradeCountReporting($Data = null, $IsDivisionTeacher = null, $PersonId = null)
{
ini_set('memory_limit', '2G');
$IsDivisionTeacher = $IsDivisionTeacher === 'true';