Showing 5,014 of 7,620 total issues
Method frontendCreateFilter
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendCreateFilter($FilterName = null, $IsPublic = 0)
{
$tblAccount = Account::useService()->getAccountBySession();
// if ($tblAccount) {
Method frontendExport
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendExport()
{
$Stage = new Stage('Export', 'Stichtagsnoten eines Halbjahres');
Method updateAbiturExamGrades
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function updateAbiturExamGrades(
IFormInterface $form,
TblPrepareCertificate $tblPrepare,
TblPerson $tblPerson,
$Data,
Method formStudentDocument
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function formStudentDocument($Gender)
{
// $Data[] = 'BohrEy';
return new Form(
Function setSubjectRow
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
private function setSubjectRow($personId, $subjectName = ' ', $hasAdvancedCourse = true, $isLastRow = false)
{
$color = '#BBB';
$isAdvancedSubject = 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 createCompaniesFromFile
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public function createCompaniesFromFile(
IFormInterface $Form = null,
UploadedFile $File = 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 getBasketVerificationLayout
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public function getBasketVerificationLayout($BasketId = null)
{
$tblBasket = Basket::useService()->getBasketById($BasketId);
if(!$tblBasket){
- 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 importBillingData
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public function importBillingData()
{
// $InfoList = array();
$tblImportList = $this->getImportAll();
- 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 getEditStudentGeneralContent
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public function getEditStudentGeneralContent($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 __construct
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public function __construct(
TblDivision $tblDivision,
TblPerson $tblPerson,
TblPrepareCertificate $tblPrepareCertificate
) {
- 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 getReferenceForLanguageByStudent
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public function getReferenceForLanguageByStudent(
TblCertificate $tblCertificate,
TblStudentSubject $tblStudentSubject,
TblPerson $tblPerson,
TblDivision $tblDivision
- 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 frontendLayoutPersonNew
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendLayoutPersonNew(TblPerson $tblPerson)
{
$phoneList = array();
$phoneEmergencyList = array();
Method setRow
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static function setRow(&$sliceList, $identifier, $name)
{
$paddingLeft = '5px';
$section = new Section();
Method getTeacherWelcome
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getTeacherWelcome(TblPerson $tblPerson)
{
$appointedDateTaskList = array();
$behaviorTask = array();
Method frontendFillSignOutCertificate
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendFillSignOutCertificate($Id = null)
{
$Stage = new Stage('Schülerüberweisung', 'Erstellen');
$Stage->addButton(new Standard('Zurück', '/Document/Standard/SignOutCertificate', new ChevronLeft()));
Method displaySetting
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function displaySetting($Category = TblSetting::CATEGORY_REGULAR)
{
$tblSettingList = Setting::useService()->getSettingAllByCategory($Category);
$Listing = array();
Method frontendPrintCertificateDivisionTeacher
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendPrintCertificateDivisionTeacher()
{
$Stage = new Stage('Zeugnis', 'Übersicht (nicht gedruckte Zeugnisse)');
File HorJOne.php
has 375 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;
Method getStudentTransferHead
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getStudentTransferHead()
{
$Slice = new Slice();
$Slice->addElement((new Element())
->setContent('Abgebende Schule')
Method getContent
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())