Showing 5,014 of 7,620 total issues
Function frontendHeadmasterTaskDivision
has a Cognitive Complexity of 94 (exceeds 5 allowed). Consider refactoring. Open
public function frontendHeadmasterTaskDivision($Id = null, $Data = null)
{
$Stage = new Stage('Notenauftrag', 'Klassen zuordnen');
$Stage->setMessage(new Bold(new Exclamation() . ' Hinweis: ') . 'Bei der Auswahl vieler Klassen kann das Speichern einige Zeit dauern.');
- 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 frontendFillSignOutCertificate
has a Cognitive Complexity of 94 (exceeds 5 allowed). Consider refactoring. Open
public function frontendFillSignOutCertificate($Id = null)
{
$Stage = new Stage('Schülerüberweisung', 'Erstellen');
$Stage->addButton(new Standard('Zurück', '/Document/Standard/SignOutCertificate', new ChevronLeft()));
- 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 createInterestedPersonsFromFile
has 377 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createInterestedPersonsFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
Method frontendSerialLetterEdit
has 373 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendSerialLetterEdit(
$Id = null,
$Control = false,
$SerialLetter = null,
$TabActive = null,
Function frontendPrintCertificateDivisionTeacher
has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring. Open
public function frontendPrintCertificateDivisionTeacher()
{
$Stage = new Stage('Zeugnis', 'Übersicht (nicht gedruckte Zeugnisse)');
- 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 setStudentFocus
has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring. Open
private static function setStudentFocus(
TblPerson $tblPerson,
TblLevel $tblLevel,
&$Content,
$gender,
- 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 setNewSchoolStarter
has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring. Open
private static function setNewSchoolStarter(
&$Content,
TblPerson $tblPerson,
TblStudent $tblStudent,
TblLevel $tblLevel,
- 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 countStudentLevels
has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring. Open
private static function countStudentLevels(
TblPerson $tblPerson,
TblLevel $tblLevel,
&$gender,
$hasMigrationBackground,
- 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
Service
has 97 functions (exceeds 20 allowed). Consider refactoring. Open
class Service extends AbstractService
{
/**
* @param bool $doSimulation
Method contentTestSelected
has 370 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function contentTestSelected($DivisionSubjectId, $Test, Stage $Stage, $BasicRoute)
{
$Stage->addButton(new Standard('Zurück', $BasicRoute, new ChevronLeft()));
Function getSubjectLanesCoswig
has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring. Open
protected function getSubjectLanesCoswig(
$personId,
$isSlice = true,
$languagesWithStartLevel = array(),
$TextSize = '14px',
- 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 getSubjectLanesCustomForChemnitz
has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring. Open
protected function getSubjectLanesCustomForChemnitz(
$personId,
$isSlice = true,
$languagesWithStartLevel = array(),
$TextSize = '14px',
- 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 createAddressPersonList
has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring. Open
public function createAddressPersonList(
$PersonListArray = array(),
$isCompany = 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 updateAbiturPreliminaryGrades
has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring. Open
public function updateAbiturPreliminaryGrades(
IFormInterface $Form = null,
TblPerson $tblPerson,
TblPrepareCertificate $tblPrepare,
$GroupId = 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
File StudentCourse.php
has 781 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Transfer\Indiware\Import;
use SPHERE\Application\Document\Storage\FilePointer;
File Service.php
has 780 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 21.09.2016
Method buildPages
has 367 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Method createInterestedPersonsFromFile
has 367 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createInterestedPersonsFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
Method buildDocument
has 366 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildDocument($pageList = array())
{
return (new Frame())->addDocument((new Document())
->addPage((new Page())
->addSlice((new Slice())
Method getStudentTableContent
has 366 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getStudentTableContent($Result, $Option = null, $PersonGroup = null)
{
$SearchResult = array();
if (!empty($Result)) {