Showing 5,014 of 7,620 total issues
Function frontendWelcome
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function frontendWelcome()
{
$Stage = new Stage('Rechteverwaltung');
$this->menuButton($Stage);
- 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 updateDivisionBehaviorTaskAsBulk
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function updateDivisionBehaviorTaskAsBulk(
$behaviorTaskAddList,
$behaviorTaskRemoveTestList
) {
- 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 getResultForAbiturAverageGrade
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function getResultForAbiturAverageGrade(
$totalPoints
) {
// ist Formel korrekt?
- 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 frontendTeacherSelectDivision
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function frontendTeacherSelectDivision($IsAllYears = false, $IsGroup = false, $YearId = null)
{
$Stage = new Stage('Zeugnisvorbereitung', 'Klasse auswählen');
$this->setHeaderButtonList($Stage, View::TEACHER);
- 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 getStudentCardSubjectListByPerson
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function getStudentCardSubjectListByPerson(TblPerson $tblPerson, AbstractDocument $documentClass)
{
$resultList = array();
$list = 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"
Further reading
Function frontendFillSchoolContract
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function frontendFillSchoolContract($PersonId = null)
{
$Stage = new Stage('Schulvertrag', 'Erstellen');
$tblPerson = Person::useService()->getPersonById($PersonId);
- 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 setStudentLevels
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
private static function setStudentLevels(
&$Content,
$countArray,
$countMigrantsArray,
$countMigrantsNationalityArray
- 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 registerModule
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function registerModule()
{
$consumerAcronym = ( Consumer::useService()->getConsumerBySession() ? Consumer::useService()->getConsumerBySession()->getAcronym() : '' );
Method getSignPart
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getSignPart($personId, $isExtended = true, $MarginTop = '25px')
{
$SignSlice = (new Slice());
if ($isExtended) {
$SignSlice->addSection((new Section())
Method getESRLTeacher
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getESRLTeacher($personId, $isExtended = true, $MarginTop = '25px')
{
$SignSlice = (new Slice());
if ($isExtended) {
$SignSlice->addSection((new Section())
Method runConvert
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function runConvert($Row)
{
$Result = array();
foreach ($Row as $Part) {
$Result = array_merge($Result, $Part);
Method updateRemarkFromFile
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function updateRemarkFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
File ApiBankAccount.php
has 369 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Billing\Accounting;
use SPHERE\Application\Api\ApiTrait;
use SPHERE\Application\Api\Dispatcher;
File SignOutCertificate.php
has 369 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Document\Standard\SignOutCertificate;
use MOC\V\Core\FileSystem\FileSystem;
Method buildContent
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildContent()
{
$textSize = '11px';
$fontFamily = 'MetaPro';
$columnHeight = '27';
Method getContent
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Method frontendBalancePdf
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendBalancePdf($Balance = array())
{
$Stage = new Stage('Belegdruck', 'PDF');
if(!isset($Balance['Year'])){
File Data.php
has 367 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Billing\Inventory\Item\Service;
use SPHERE\Application\Billing\Accounting\Account\Service\Entity\TblAccount;
Method formDebtorSelection
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function formDebtorSelection($BasketVerificationId = '')
{
// choose between Add and Edit
$SaveButton = new Primary('Speichern', self::getEndpoint(), new Save());
Method getContent
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())