Showing 5,014 of 7,620 total issues
Method getEZSHDateSign
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getEZSHDateSign($personId)
{
$SectionList = array();
$Section = new Section();
Method createProfileListExcel
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createProfileListExcel($PersonList, $tblPersonList)
{
if (!empty( $PersonList )) {
Method createClassList
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createClassList(TblDivision $tblDivision)
{
$tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
Method getStudentFilterForm
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getStudentFilterForm()
{
$tblLevelShowList = array();
$tblLevelList = Division::useService()->getLevelAll();
Method sanitizeDivision
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function sanitizeDivision($Value)
{
$LevelName = null;
$DivisionName = null;
if ($Value === '') {
Method getInvoiceDebtorList
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getInvoiceDebtorList(
$Year,
$Month,
$BasketName,
$IsFrontend
Function registerRoute
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
public static function registerRoute(RouteParameter $Route)
{
try {
if (Access::useService()->hasAuthorization($Route->getPath())) {
- 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 getAdditionalSubjectLanes
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
private function getAdditionalSubjectLanes(
$personId,
$TextSize = '14px',
$IsGradeUnderlined = 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 tableUsedSubject
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
public static function tableUsedSubject($DivisionId = null)
{
// get Content
$tblDivision = DivisionAPP::useService()->getDivisionById($DivisionId);
- 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 tablePerson
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
public static function tablePerson($DivisionId = null)
{
// get Content
$tblDivision = DivisionApplication::useService()->getDivisionById($DivisionId);
- 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 setPlaceholders
has 18 arguments (exceeds 4 allowed). Consider refactoring. Open
$Text,
$ItemName,
$Year,
$TotalPrice,
$DebtorSalutation,
Function createNursery
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
public function createNursery(TblGroup $tblGroup, $PLZ = '')
{
$TableContent = 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 formFilterProspect
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
public function formFilterProspect(TblSerialLetter $tblSerialLetter = null)
{
$GroupList = array();
$tblGroup = Group::useService()->getGroupByMetaTable('PROSPECT');
- 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 getGroupTableByResult
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
public function getGroupTableByResult($Result)
{
$TableSearch = array();
if (!empty($Result)) {
/** @var AbstractView[]|ViewPerson[] $Row */
- 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 createSessionCredential
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
public function createSessionCredential(
IFormInterface &$Form,
$CredentialName,
$CredentialLock,
TblIdentification $tblIdentification
- 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 getServiceTblPeriodByDivision
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
public function getServiceTblPeriodByDivision(TblDivision $tblDivision)
{
if ($this->serviceTblPeriod < 0) {
if (($tblLevel = $tblDivision->getTblLevel())
- 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 setWelcomeContent
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
private function setWelcomeContent($taskList, $columns, $isFuture = false)
{
foreach ($taskList as $taskId => $list) {
if (($tblTask = Evaluation::useService()->getTaskById($taskId))
&& $tblTestType = $tblTask->getTblTestType()
- 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 getEditStudentProcessForm
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
private function getEditStudentProcessForm(TblPerson $tblPerson = null)
{
FrontendStudent::setYearAndDivisionForMassReplace($tblPerson, $Year, $Division);
- 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 copyAbiturLeaveGradesFromCertificates
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
public function copyAbiturLeaveGradesFromCertificates(
TblPrepareStudent $tblPrepareStudent,
TblPrepareAdditionalGradeType $tblPrepareAdditionalGradeType,
TblLeaveStudent $tblLeaveStudent
) {
- 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 getAbiturLeaveGradeBySubject
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
public function getAbiturLeaveGradeBySubject($points)
{
if ($points === '15') {
return '1+';
- 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"