Showing 5,014 of 7,620 total issues
Method outerJoin
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function outerJoin($List, $ProbeList = array(), $SearchList = array())
{
$Result = array();
/** @var AbstractView $Node0 */
foreach ($List[0] as $Node0) {
File EssGsJOne.php
has 283 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\ESS;
use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
File E12.php
has 283 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Created by PhpStorm.
* User: lehmann
* Date: 23.06.2017
File C01.php
has 282 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 07.09.2018
File DocumentWarning.php
has 282 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace SPHERE\Application\Api\Document\Standard\Repository\Billing;
use SPHERE\Application\Billing\Inventory\Item\Service\Entity\TblItem;
use SPHERE\Application\Contact\Address\Address;
Method checkInputDebtorSelection
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkInputDebtorSelection(
$BasketVerificationId = '',
$DebtorSelection = array()
){
Method saveEditDebtorSelection
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function saveEditDebtorSelection(
$Identifier = '',
$PersonId = '',
$ItemId = '',
$DebtorSelectionId = '',
Method getGradeLanesCustomForChemnitz
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getGradeLanesCustomForChemnitz(
$personId,
$TextSize = '14px',
$IsGradeUnderlined = false,
$MarginTop = '15px'
Method getGradeLanesForRadebeul
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getGradeLanesForRadebeul(
$personId,
$TextColor = 'black',
$TextSize = '13px',
$GradeFieldBackgroundColor = 'rgb(224,226,231)',
Method frontendSandbox
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendSandbox()
{
// $this->getCache(new TwigHandler())->clearCache();
$Stage = new Stage('SandBox');
Method frontendAppointmentGradePrepare
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendAppointmentGradePrepare()
{
$Stage = new Stage('Indiware', 'Datentransfer');
$Stage->addButton(new Standard('Zurück', '/Transfer/Indiware/Export', new ChevronLeft()));
$Stage->setMessage('Exportvorbereitung / Daten exportieren');
Method getCommonContent
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getCommonContent($PersonId = null)
{
if (($tblPerson = Person::useService()->getPersonById($PersonId))) {
if (($tblCommon = $tblPerson->getCommon())
&& ($tblCommonBirthDates = $tblCommon->getTblCommonBirthDates())
Method setStudentList
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function setStudentList(
TblDivisionSubject $tblDivisionSubject,
TblTest $tblTest,
$studentList,
&$studentTestList,
Method frontendProposalTestSelected
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendProposalTestSelected($DivisionId = null)
{
$stage = new Stage('Kopfnotenvorschlag des Klassenlehrers', 'Übersicht');
if (($tblDivision = Division::useService()->getDivisionById($DivisionId))) {
Method registerModule
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function registerModule()
{
/*
* Navigation
Method createExamsButtonList
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createExamsButtonList(
TblPrepareCertificate $tblPrepare,
&$tblCurrentSubject,
&$tblNextSubject,
$tblTestList,
Method setSubjectRow
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function setSubjectRow($array, $subjectName)
{
$course = '';
$grades = array();
Method addSubjectWithGroups
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function addSubjectWithGroups(
TblDivision $tblDivision,
TblDivision $tblDivisionCopy
) {
Method setStudentLevels
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function setStudentLevels(
&$Content,
$countArray,
$countMigrantsArray,
$countMigrantsNationalityArray
Function saveEditAddressToPersonModal
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
Open
public function saveEditAddressToPersonModal($PersonId, $ToPersonId, $Street, $City, $State, $Type, $County, $Nation, $Relationship)
{
if (!($tblPerson = Person::useService()->getPersonById($PersonId))) {
return new Danger('Die Person wurde nicht gefunden', new Exclamation());
- 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"