Showing 5,014 of 7,620 total issues
Function loadMinimumGradeCountReporting
has a Cognitive Complexity of 113 (exceeds 5 allowed). Consider refactoring. Open
public function loadMinimumGradeCountReporting($Data = null, $IsDivisionTeacher = null, $PersonId = null)
{
ini_set('memory_limit', '2G');
$IsDivisionTeacher = $IsDivisionTeacher === 'true';
- 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 frontendPrintClassList
has a Cognitive Complexity of 113 (exceeds 5 allowed). Consider refactoring. Open
public function frontendPrintClassList($DivisionId = null)
{
$Stage = new Stage('ESZC Auswertung', 'Klassenliste zum Ausdrucken');
if (null !== $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 buildPages
has 453 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Function frontendSelectPrepare
has a Cognitive Complexity of 112 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSelectPrepare($IsAllYears = false, $YearId = null)
{
$Stage = new Stage('Zeugnisse freigeben', 'Übersicht');
- 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
File AccidentReport.php
has 908 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Document\Standard\Repository\AccidentReport;
use SPHERE\Application\Api\Document\AbstractDocument;
Function getNavigation
has a Cognitive Complexity of 110 (exceeds 5 allowed). Consider refactoring. Open
public function getNavigation($ViewType = TblWorkSpace::VIEW_TYPE_ALL)
{
// remove every entry that is already chosen
$WorkSpaceList = 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 updateDivisionTasks
has a Cognitive Complexity of 110 (exceeds 5 allowed). Consider refactoring. Open
public function updateDivisionTasks(IFormInterface $Stage = null, $Id, $Data = null)
{
/**
* 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
Function addSubjectWithGroups
has a Cognitive Complexity of 110 (exceeds 5 allowed). Consider refactoring. Open
public function addSubjectWithGroups(
TblDivision $tblDivision,
TblDivision $tblDivisionCopy
) {
- 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 ModTable
has 442 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.fn.ModTable = function(options)
{
var Table;
Function createClubsFromFile
has a Cognitive Complexity of 109 (exceeds 5 allowed). Consider refactoring. Open
public function createClubsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
{
/**
* 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
Function frontendTestTeacher
has a Cognitive Complexity of 109 (exceeds 5 allowed). Consider refactoring. Open
public function frontendTestTeacher($IsAllYears = false, $YearId = null)
{
$Stage = new Stage('Leistungsüberprüfung', 'Auswahl');
$Stage->setMessage(
- 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 frontendAbsenceMonth
has a Cognitive Complexity of 109 (exceeds 5 allowed). Consider refactoring. Open
public function frontendAbsenceMonth($DivisionId = null, $Month = null, $Year = null, $BasicRoute = '')
{
$Stage = new Stage('Fehlzeiten', 'Monatsübersicht');
$tblDivision = Division::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
File CmsStyle.php
has 897 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\CMS;
use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
Function createClubMembersFromFile
has a Cognitive Complexity of 108 (exceeds 5 allowed). Consider refactoring. Open
public function createClubMembersFromFile(
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 setSchoolTypeLastYear
has a Cognitive Complexity of 108 (exceeds 5 allowed). Consider refactoring. Open
private static function setSchoolTypeLastYear(
&$Content,
$tblPastYearList,
TblPerson $tblPerson,
$tblCourse,
- 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
Data
has 112 functions (exceeds 20 allowed). Consider refactoring. Open
class Data extends AbstractData
{
/**
* @return false|ViewDivision[]
Function createDivisionsFromFile
has a Cognitive Complexity of 107 (exceeds 5 allowed). Consider refactoring. Open
public function createDivisionsFromFile(
IFormInterface $Form = null,
UploadedFile $File = null,
$TypeId = null,
$YearId = 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 frontendSelectContent
has a Cognitive Complexity of 107 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSelectContent(
$Division = null,
$Person = null,
$Certificate = null,
$Content = 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
Method processRow
has 431 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function processRow(
PhpExcel $Document,
$Location,
$RunY,
$countPerson,
File Frontend.php
has 881 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Education\Lesson\Term;
use SPHERE\Application\Education\Lesson\Term\Service\Entity\TblHoliday;
use SPHERE\Application\Education\Lesson\Term\Service\Entity\TblPeriod;