Showing 5,014 of 7,620 total issues
Method importUntisLectureship
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function importUntisLectureship()
{
$InfoList = array();
$tblUntisImportLectureshipList = $this->getUntisImportLectureshipAll(true);
Method getStudentSubjectContent
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getStudentSubjectContent($PersonId = null)
{
if (($tblPerson = Person::useService()->getPersonById($PersonId))) {
$subjects = array();
Method frontendHeadmasterTask
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendHeadmasterTask($Task = null, $IsAllYears = false, $YearId = null)
{
$Stage = new Stage('Notenaufträge', 'Übersicht');
$Stage->setMessage(
Method frontendCertificateSetting
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendCertificateSetting($Certificate = 0, $Grade = array(), $Subject = array(), $Data = null)
{
$Stage = new Stage('Einstellungen', 'Vorlage bearbeiten');
$Stage->addButton(new Standard('Zurück', '/Education/Certificate/Setting/Template', new ChevronLeft()));
Method frontendScoreCondition
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendScoreCondition(
$ScoreCondition = null
) {
$Stage = new Stage('Berechnungsvariante', 'Übersicht');
Method createPrepareCertificates
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createPrepareCertificates(
IFormInterface $Form = null,
TblGenerateCertificate $tblGenerateCertificate,
$Data = null
) {
File Frontend.php
has 338 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Contact\Phone;
use SPHERE\Application\Api\Contact\ApiPhoneToCompany;
use SPHERE\Application\Api\Contact\ApiPhoneToPerson;
File EssGsJThree.php
has 338 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\ESS;
use SPHERE\Application\Education\Certificate\Generator\Repository\Element;
File BlockI.php
has 337 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 15.03.2018
Function checkFormAddressToPerson
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public function checkFormAddressToPerson(
TblPerson $tblPerson,
$Street,
$City,
$Type,
- 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 getPanelList
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
private function getPanelList(AbstractView $View, $WorkSpaceList, $ViewType)
{
$PanelString = '';
$ViewBlockList = 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 getOrientationStandard
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public function getOrientationStandard($personId, $TextSize = '14px', $IsGradeUnderlined = false)
{
$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 getSchoolName
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
protected function getSchoolName($personId, $MarginTop = '20px')
{
if (($tblSetting = \SPHERE\Application\Setting\Consumer\Consumer::useService()->getSetting(
'Education', 'Certificate', 'Prepare', 'IsSchoolExtendedNameDisplayed'))
- 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 downloadHistoryZip
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public function downloadHistoryZip($PrepareId = null, $Name = 'Zeugnis')
{
if (($tblPrepare = Prepare::useService()->getPrepareById($PrepareId))
&& ($tblDivision = $tblPrepare->getServiceTblDivision())
- 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 getCMSOrientationStandard
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public function getCMSOrientationStandard($personId, $TextSize = '14px', $IsGradeUnderlined = false)
{
$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 setLetterRow
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
protected function setLetterRow($textSize = '16px')
{
$countCharacters = 26;
$width = (100/$countCharacters) . '%';
- 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 setGradeLayoutHeaderForSekII
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
protected function setGradeLayoutHeaderForSekII(
&$subjectPosition = array(),
$countSubjectColumns = 23,
$widthFirstColumns = 6,
$widthLastColumns = 5,
- 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 allocateResponsibility
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
private function allocateResponsibility(&$Data)
{
$tblPerson = $this->tblPerson;
// pre fill found information (Responsibility)
$Data['Responsibility']['Company']['Number'] = School::useService()->getCompanyNumber();
- 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 getSerialLetterCount
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public function getSerialLetterCount(TblSerialLetter $tblSerialLetter)
{
$result = 0;
$tblSerialLetterPersonList = SerialLetter::useService()->getPersonAllBySerialLetter($tblSerialLetter);
- 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 getCompanyFilterResultListBySerialLetter
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public function getCompanyFilterResultListBySerialLetter(
TblSerialLetter $tblSerialLetter = null,
$FilterGroupList = array(),
$FilterCompanyList = array(),
$FilterRelationshipList = 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"