Showing 5,014 of 7,620 total issues
Function updateLeaveContent
has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring. Open
public function updateLeaveContent(
IFormInterface $Form = null,
TblPerson $tblPerson,
TblDivision $tblDivision,
TblCertificate $tblCertificate,
- 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 frontendStudentList
has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring. Open
public function frontendStudentList()
{
$Stage = new Stage('SchülerListe');
- 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 Client
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Client = (function ()
{
'use strict';
var useDelay = 30;
var useConfig = {};
Method frontendPrepareShowSubjectGrades
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendPrepareShowSubjectGrades($PrepareId = null, $GroupId = null, $Route = null)
{
$Stage = new Stage('Zeugnisvorbereitung', 'Fachnoten-Übersicht');
Method frontendDivision
has 167 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendDivision($GenerateCertificateId = null)
{
$Stage = new Stage('Zeugnis generieren', 'Klassenübersicht');
$Stage->addButton(new Standard('Zurück', '/Education/Certificate/Generate', new ChevronLeft()));
ApiIndividual
has 48 functions (exceeds 20 allowed). Consider refactoring. Open
class ApiIndividual extends IndividualReceiver implements IApiInterface, IModuleInterface
{
// Schränkt die Auswahl der Filterung auf "like" und "not like" ein
private $reducedSelectBoxList = array(
Service
has 48 functions (exceeds 20 allowed). Consider refactoring. Open
class Service extends AbstractService
{
/**
* @param bool $doSimulation
Support
has 48 functions (exceeds 20 allowed). Consider refactoring. Open
abstract class Support extends Integration
{
/**
* @param $Id
Consider simplifying this complex logical expression. Open
if ($unAssignedCount == 2 && $assignedCount == 0
&& ($gender1 = $unAssigned[1]->getGenderName())
&& ($gender2 = $unAssigned[2]->getGenderName())
&& $gender1 != $gender2
) {
Filter
has 48 functions (exceeds 20 allowed). Consider refactoring. Open
class Filter extends Extension
{
const DESCRIPTION_GROUP = 'Personengruppe';
const DESCRIPTION_GENDER = 'Personendaten: Geschlecht';
Method frontendHeadmasterGradeBook
has 166 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendHeadmasterGradeBook($IsAllYears = false, $YearId = null)
{
$Stage = new Stage('Notenbuch', 'Auswahl');
$Stage->setMessage(
File ApiUserAccount.php
has 443 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Setting\UserAccount;
use SPHERE\Application\Api\ApiTrait;
use SPHERE\Application\Api\Dispatcher;
File Service.php
has 442 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\People\Group;
use SPHERE\Application\Education\Lesson\Division\Division;
use SPHERE\Application\Education\Lesson\Division\Service\Entity\TblDivision;
Method getGroupList
has 165 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getGroupList(){
return array(
// 'Änderung' => '',
'Ehemalige' => 'zu bereinigen',
'Ehemalige.Eltern' => 'zu bereinigen',
Method setupDatabaseContent
has 165 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function setupDatabaseContent()
{
$tblStudentAgreementCategory = $this->createStudentAgreementCategory(
'Foto des Schülers',
Method frontendPrintCertificate
has 165 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendPrintCertificate()
{
$Stage = new Stage('Zeugnis', 'Übersicht (nicht gedruckte Zeugnisse)');
$Stage->addButton(new Standard('Historie Personen', '/Education/Certificate/PrintCertificate/History', null, array(),
Function getRelationshipList
has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring. Open
private function getRelationshipList(TblPerson $tblPerson, $list, $isDeepSearch)
{
if (($tblRelationshipList = Relationship::useService()->getPersonRelationshipAllByPerson($tblPerson))) {
foreach ($tblRelationshipList as $tblToPerson) {
if (($tblType = $tblToPerson->getTblType())
- 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 frontendContact
has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring. Open
public function frontendContact($Id = null, $Person = null, $Group = null, $tblPerson = null, $tblType = null, $tblSalutation = null, $doCreate = false)
{
$Stage = new Stage('Institution', 'Ansprechpartner');
$Stage->addButton(new Standard('Zurück', '/Corporation/Company', new ChevronLeft(), array(
'Id' => $Id,
- 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 openOverViewModal
has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring. Open
public static function openOverViewModal($PersonId, $showPersonPanel = true)
{
$tblPerson = Person::useService()->getPersonById($PersonId);
if(!$tblPerson){
- 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 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"