Showing 5,014 of 7,620 total issues
File finediff.php
has 506 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* FINE granularity DIFF
*
* Computes a set of instructions to convert the content of
File Service.php
has 505 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Contact\Address;
use SPHERE\Application\Contact\Address\Service\Data;
use SPHERE\Application\Contact\Address\Service\Entity\TblAddress;
Method frontendAbsenceMonth
has 203 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendAbsenceMonth($DivisionId = null, $Month = null, $Year = null, $BasicRoute = '')
{
$Stage = new Stage('Fehlzeiten', 'Monatsübersicht');
$tblDivision = Division::useService()->getDivisionById($DivisionId);
File E03.php
has 504 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: lehmann
* Date: 23.06.2017
Function formDebtorSelection
has a Cognitive Complexity of 52 (exceeds 5 allowed). Consider refactoring. Open
public function formDebtorSelection($Identifier = '', $PersonId = '', $ItemId = '', $DebtorSelectionId = '')
{
// choose between Add and Edit
$SaveButton = new Primary('Speichern', self::getEndpoint(), new Save());
- 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 getESSSubjectLanes
has a Cognitive Complexity of 52 (exceeds 5 allowed). Consider refactoring. Open
protected function getESSSubjectLanes(
$personId,
$marginTop = '10px',
$isSlice = true,
$TextSize = self::TEXT_SIZE
- 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 frontendConfirmPrintCertificate
has a Cognitive Complexity of 52 (exceeds 5 allowed). Consider refactoring. Open
public function frontendConfirmPrintCertificate(
$PrepareId = null,
$DivisionId = null,
$IsLeave = false,
$Route = 'All'
- 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 setDivisionStudentsForSecondarySchool
has a Cognitive Complexity of 52 (exceeds 5 allowed). Consider refactoring. Open
private static function setDivisionStudentsForSecondarySchool(
&$Content,
$countDivisionStudents
) {
- 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 frontendTestTeacher
has 201 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendTestTeacher($IsAllYears = false, $YearId = null)
{
$Stage = new Stage('Leistungsüberprüfung', 'Auswahl');
$Stage->setMessage(
File E02_1.php
has 501 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: lehmann
* Date: 23.06.2017
Data
has 56 functions (exceeds 20 allowed). Consider refactoring. Open
abstract class Data extends \SPHERE\Application\Education\Graduation\Gradebook\MinimumGradeCount\Data
{
/**
* @param $Name
File E02.php
has 499 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Document\Standard\Repository\KamenzReport;
use SPHERE\Application\Document\Generator\Repository\Element;
File Roadmap.php
has 498 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Platform\Roadmap;
use SPHERE\Application\IApplicationInterface;
use SPHERE\Application\IModuleInterface;
Function setGradeMirror
has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring. Open
private function setGradeMirror(TblScoreType $tblScoreType = null, $gradeList, $Grade)
{
$minRange = null;
$maxRange = null;
if ($tblScoreType) {
- 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 frontendLeaveStudentTemplate
has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring. 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()));
- 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 Service.php
has 495 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Platform\Gatekeeper\Authorization\Account;
use SPHERE\Application\People\Person\Service\Entity\TblPerson;
use SPHERE\Application\Platform\Gatekeeper\Authorization\Access\Service\Entity\TblRole;
Method createStaffsFromFile
has 197 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
{
/**
* Skip to Frontend
Method createInstitutionFromFile
has 197 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createInstitutionFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
File Service.php
has 494 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Transfer\Indiware\Import;
use SPHERE\Application\Education\Lesson\Division\Division;
Method frontendGroupPersonAdd
has 196 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendGroupPersonAdd(
$Id = null,
$DataAddPerson = null,
$DataRemovePerson = null,
$Filter = null,