Showing 5,014 of 7,620 total issues
ApiSupport
has 45 functions (exceeds 20 allowed). Consider refactoring. Open
class ApiSupport extends Extension implements IApiInterface
{
use ApiTrait;
Service
has 45 functions (exceeds 20 allowed). Consider refactoring. Open
class Service extends AbstractService
{
/**
* @param bool $doSimulation
Method getContent
has 154 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Method frontendClassList
has 154 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendClassList($DivisionId = null)
{
$Stage = new Stage('EZSH Auswertung', 'Klassenliste');
if (null !== $DivisionId) {
Method buildPages
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Method createClassList
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createClassList(TblDivision $tblDivision)
{
$tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
$TableContent = array();
Method frontendExtendedClassList
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendExtendedClassList($DivisionId = null)
{
$Stage = new Stage('EZSH Auswertung', 'Erweiterte Klassenliste');
if (null !== $DivisionId) {
Method frontendBirthdayClassList
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendBirthdayClassList($DivisionId = null)
{
$Stage = new Stage('Auswertung', 'Klassenlisten Geburtstag');
if (null !== $DivisionId) {
Method frontendBalanceExcel
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendBalanceExcel($Balance = array())
{
$Stage = new Stage('Belegdruck', 'Serienbrief');
Method frontendSetting
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendSetting($PrepareId = null, $Route = 'Teacher', $Grades = null, $Remarks = null)
{
$Stage = new Stage('Noteninformation', 'Klassenübersicht');
Function setCourses
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
private function setCourses(TblPerson $tblPerson = null)
{
$advancedCourses = array();
if ($tblPerson && ($tblDivision = $this->getTblDivision())
- 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 createClassList
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
public function createClassList($tblDivisionList)
{
$tblPersonList = false;
$tblYear = 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 assign
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
public function assign($genderSetting)
{
$unAssigned = array();
$assignedCount = 0;
$unAssignedCount = 0;
- 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 getAverageByTest
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
public function getAverageByTest(TblTest $tblTest, &$gradeMirror = array())
{
$tblDivision = $tblTest->getServiceTblDivision();
$tblSubject = $tblTest->getServiceTblSubject();
- 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 frontendScoreGroupGradeTypeSelect
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
public function frontendScoreGroupGradeTypeSelect(
$Id = null
) {
$Stage = new Stage('Zensuren-Gruppe', 'Zensuren-Typen auswählen');
- 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 getCourses
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
private function getCourses(TblPerson $tblPerson, TblDivision $tblDivision, $advancedCourses, $basicCourses)
{
if (($tblDivisionSubjectList = Division::useService()->getDivisionSubjectByDivision($tblDivision))) {
foreach ($tblDivisionSubjectList as $tblDivisionSubjectItem) {
- 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 getSignOut
has 152 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getSignOut()
{
$Slice = new Slice();
$Slice->addSection((new Section())
Method frontendElectiveClassList
has 152 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendElectiveClassList($DivisionId = null)
{
$Stage = new Stage('Auswertung', 'Wahlfächer in Klassenlisten');
if (null !== $DivisionId) {
Method getItemTable
has 152 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getItemTable()
{
$tblItemAll = Item::useService()->getItemAll();
$TableContent = array();
Method getBody
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getBody($personId, $hasTransfer)
{
// zusammen 100%
$width1 = '20%';
$width2 = '45%';