Showing 5,014 of 7,620 total issues
Method buildPages
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
return (new Page())
Method buildPages
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Method tablePerson
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function tablePerson($DivisionId = null)
{
// get Content
$tblDivision = DivisionApplication::useService()->getDivisionById($DivisionId);
Method frontendKindergartenList
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendKindergartenList($GroupId = null)
{
$Stage = new Stage('Individuelle Auswertung', 'Kinderhausliste');
if (null !== $GroupId) {
Method frontendMetaDataComparison
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendMetaDataComparison($Person = null, $Year = null, $Division = null, $Option = null, $PersonGroup = null) {
$Stage = new Stage('Auswertung', 'Stammdatenabfrage');
$FilterForm = $this->getStudentFilterForm();
Method contentDestroyTest
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function contentDestroyTest(Stage $Stage, $Id, $Confirm, $BasicRoute)
{
$tblTest = Evaluation::useService()->getTestById($Id);
if ($tblTest) {
Method frontendSelectCertificate
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendSelectCertificate($Division = null, $Person = null)
{
$Stage = new Stage('Zeugnisvorlage', 'wählen');
// Zurück button bei bedarf einbauen
Method frontendFillSchoolContract
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendFillSchoolContract($PersonId = null)
{
$Stage = new Stage('Schulvertrag', 'Erstellen');
$tblPerson = Person::useService()->getPersonById($PersonId);
Method frontendDashboard
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendDashboard()
{
$Stage = new Stage('Schuljahr', 'Dashboard');
Method countForeignLanguages
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function countForeignLanguages(
TblStudent $tblStudent,
TblLevel $tblLevel,
TblType $tblType,
&$Content,
File ApiDocument.php
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 12.03.2019
Method frontendResetAccount
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendResetAccount($Id = null, $Confirm = false, $Path = '/Setting/User')
{
$Stage = new Stage('Account Passwort', 'zurücksetzen');
if ($Id) {
Method getESRLSubjectLanes
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getESRLSubjectLanes($personId, $Height = '175px')
{
$SubjectSlice = (new Slice());
Method frontendRegularSchoolList
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendRegularSchoolList($GroupId = null)
{
$Stage = new Stage('Individuelle Auswertung', 'Stammschulenliste');
if (null !== $GroupId) {
Method importIndiwareStudentCourse
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function importIndiwareStudentCourse()
{
// $InfoList = array();
$tblIndiwareImportStudentList = $this->getIndiwareImportStudentAll(true);
Method createInvoiceDebtorListExcel
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createInvoiceDebtorListExcel(
$Year,
$Month,
$BasketName
) {
Method frontendSearch
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendSearch($Filter = null)
{
$Stage = new Stage('Suche', 'nach Eigenschaften');
$Stage->addButton(new Standard('Zurück', '/People', new ChevronLeft()));
Method setAutoDroppedSubjects
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setAutoDroppedSubjects(TblPrepareCertificate $tblPrepare, TblPerson $tblPerson)
{
$gradeString = '';
$tblLastDivision = false;
Method frontendLeaveStudentTemplate
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendLeaveStudentTemplate($PersonId = null, $DivisionId = null, $Data = null, $ChangeCertificate = null)
{
if (($tblPerson = Person::useService()->getPersonById($PersonId))) {
$stage = new Stage('Zeugnisvorbereitung', 'Abgangszeugnis - Schüler');
$stage->addButton(new Standard('Zurück', '/Education/Certificate/Prepare/Leave', new ChevronLeft()));
Function runPlatform
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
Open
public function runPlatform()
{
/**
* REST-API
- 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"