Showing 5,014 of 7,620 total issues
Function getResultForAbiturBlockI
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
public function getResultForAbiturBlockI(
TblPrepareCertificate $tblPrepare,
TblPerson $tblPerson
) {
$countCourses = 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 load
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
public function load()
{
$Filter = array();
if (($tblSubjectGroup = $this->getTblSubjectGroup())) {
// gespeicherten Filter laden
- 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 filterPersonListByDivision
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
public function filterPersonListByDivision(
$tblPersonList,
TblDivision $tblDivision = 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 setForeignLanguagesMatrix
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
private static function setForeignLanguagesMatrix(
&$Content,
$countForeignSubjectMatrix
) {
/**
- 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 Display.php
has 302 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Common\Window;
use MOC\V\Component\Template\Component\IBridgeInterface;
use SPHERE\Application\Platform\Gatekeeper\Authorization\Access\Access;
File ApiAddressToCompany.php
has 302 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 07.01.2019
File Student.php
has 302 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\TblStudent;
use SPHERE\Application\People\Meta\Student\Service\Entity\TblStudentBaptism;
Method setFieldValue
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function setFieldValue($DataPost)
{
$tblAccount = false;
// Common
Method createMinimumGradeCountFromFile
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createMinimumGradeCountFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
Method frontendDestroyPerson
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendDestroyPerson($Id = null, $Confirm = false, $Group = null)
{
$Stage = new Stage('Person', 'Löschen');
if ($Id) {
File ApiMailToCompany.php
has 301 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 08.01.2019
File ApiPhoneToCompany.php
has 301 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 08.01.2019
File ApiWebToCompany.php
has 301 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 08.01.2019
File ApiPhoneToPerson.php
has 301 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 08.01.2019
File ApiMailToPerson.php
has 301 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 08.01.2019
Method getFormField
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getFormField( $PropertyName, $Placeholder = null, $Label = null, IIconInterface $Icon = null,
$doResetCount = false, $ViewType = TblWorkSpace::VIEW_TYPE_ALL )
{
switch ($PropertyName) {
Method frontendGroup
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendGroup($Group = null)
{
$Stage = new Stage('Gruppen', 'Übersicht');
$Stage->addButton(new Standard('Zurück', '/People', new ChevronLeft()));
Method frontendDashboard
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendDashboard()
{
$Stage = new Stage('Zensuren', 'Überblick');
Method frontendGradeType
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendGradeType($GradeType = null)
{
$Stage = new Stage('Zensuren-Typ', 'Übersicht');
$Stage->setMessage('Hier werden die Zensuren-Typen verwaltet. Bei den Zensuren-Typen wird zwischen den beiden
Method frontendSigner
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendSigner($PrepareId = null, $GroupId = null, $Route = null, $Data = null)
{
$Stage = new Stage('Unterzeichner', 'Auswählen');
$Stage->addButton(new Standard(