Showing 5,014 of 7,620 total issues
Function setCourses
has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring. Open
private function setCourses(TblPerson $tblPerson = null)
{
$advancedCourses = array();
$basicCourses = 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 getProspectTableByResult
has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring. Open
public function getProspectTableByResult($Result)
{
$TableSearch = array();
if (!empty($Result)) {
- 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 getPriceListByItemAndYear
has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring. Open
public function getPriceListByItemAndYear(
TblItem $tblItem,
$Year,
$MonthFrom = '1',
$MonthTo = '12',
- 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 updatePrepareBehaviorGradesAndRemark
has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring. Open
public function updatePrepareBehaviorGradesAndRemark(
IFormInterface $Stage = null,
TblPrepareCertificate $tblPrepare,
$Route = 'Teacher',
$Grades,
- 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 createStaffsFromFile
has 163 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
{
/**
* Skip to Frontend
Method getContent
has 163 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getContent($GroupId = null, $Data = null)
{
$dataList = array();
if (($tblPrepareAdditionalGradeList = Prepare::useService()->getPrepareAdditionalGradeListBy(
Method frontendSubjectTeacherAdd
has 163 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendSubjectTeacherAdd($Id = null, $DivisionSubjectId = null, $SubjectTeacherId = null, $PersonId = null)
{
$tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
if (!$tblDivision) {
File Service.php
has 438 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\People\Relationship;
use SPHERE\Application\Corporation\Company\Company;
use SPHERE\Application\Corporation\Company\Service\Entity\TblCompany;
File Support.php
has 437 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\People\Meta\Student\Service\Data;
use SPHERE\Application\People\Meta\Student\Service\Entity\TblHandyCap;
use SPHERE\Application\People\Meta\Student\Service\Entity\TblSpecial;
Method createInterestedPersonList
has 162 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createInterestedPersonList()
{
$tblPersonList = Group::useService()->getPersonAllByGroup(Group::useService()->getGroupByName('Interessent'));
$TableContent = array();
Method frontendScoreSubjectGroup
has 162 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendScoreSubjectGroup(
$Id = null,
$YearId = null,
$Data = null
) {
Method getDivisionMessageTable
has 162 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getDivisionMessageTable(TblDivision $tblDivision, $isAccordion = false, &$totalCount, $IsTableAccordion = false)
{
$list = array();
$missingGroupList = array();
Method getContent
has 161 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Method createClubsFromFile
has 161 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createClubsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
{
/**
* Skip to Frontend
Method getStudentGeneralContent
has 161 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getStudentGeneralContent($PersonId = null)
{
if (($tblPerson = Person::useService()->getPersonById($PersonId))) {
$billingSiblingRank = '';
Function checkInputDebtorSelection
has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring. Open
private function checkInputDebtorSelection(
$BasketVerificationId = '',
$DebtorSelection = 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 setCourses
has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring. Open
private function setCourses(TblPerson $tblPerson = null)
{
$advancedCourses = array();
$basicCourses = 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 getSchoolPartAbitur
has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring. Open
private function getSchoolPartAbitur($personId, $MarginTop = '20px')
{
if (($tblSetting = 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 getSubjectLanesForRadebeul
has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring. Open
protected function getSubjectLanesForRadebeul(
$personId,
$TextColor = 'black',
$TextSize = '13px',
$GradeFieldBackgroundColor = 'rgb(224,226,231)',
- 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 fetchDivision
has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring. Open
protected function fetchDivision($Value)
{
if ($Value != '') {
$LevelName = null;
$DivisionName = 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"