Showing 5,014 of 7,620 total issues
Function getCallingFunctionName
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
Open
private static function getCallingFunctionName($completeTrace = false)
{
if (function_exists('debug_backtrace')) {
$BackTrace = debug_backtrace();
if ($completeTrace) {
- 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 Frontend.php
has 288 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 11.03.2019
Method updatePassword
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updatePassword(
IFormInterface $Form,
TblAccount $tblAccount,
$CredentialLock,
$CredentialLockSafety
Method getStudentTableContent
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getStudentTableContent($Result, $MaxResult = 800)
{
$SearchResult = array();
if (!empty($Result)) {
Method getEZSHDateSignCustom
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getEZSHDateSignCustom($personId)
{
$SectionList = array();
$Section = new Section();
Method buildPageOne
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function buildPageOne($AccountId)
{
return (new Page())
->addSlice((new Slice())
Method loadDocumentOverviewContent
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function loadDocumentOverviewContent()
{
if (($tblDocumentList = Document::useService()->getDocumentAll())) {
$contentTable = array();
foreach ($tblDocumentList as $tblDocument) {
Method getProspectContent
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getProspectContent($PersonId = null)
{
if (($tblPerson = Person::useService()->getPersonById($PersonId))
&& ($tblGroup = Group::useService()->getGroupByMetaTable('PROSPECT'))
&& Group::useService()->existsGroupPerson($tblGroup, $tblPerson)
Method updateTest
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateTest(IFormInterface $Stage = null, $Id, $Test, $BasicRoute)
{
/**
* Skip to Frontend
Method formTest
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function formTest(
TblDivision $tblDivision,
TblYear $tblYear,
TblScoreRule $tblScoreRule = null,
TblDivisionSubject $tblDivisionSubjectSelected = null
Method updateAbsence
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateAbsence(IFormInterface $Stage = null, TblAbsence $tblAbsence, $BasicRoute = '', $Data)
{
/**
* Skip to Frontend
File B02.php
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Created by PhpStorm.
* User: lehmann
* Date: 23.06.2017
Method frontendGroup
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendGroup($Group)
{
$Stage = new Stage('Gruppen', 'Übersicht');
$Stage->addButton(new Standard('Zurück', '/Corporation', new ChevronLeft()));
Method buildPages
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Method frontendNursery
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendNursery()
{
$Stage = new Stage('Individuelle Auswertung', 'Stichtagsmeldung Hort');
// mark persons without this city code
Method getStudentFilterResult
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getStudentFilterResult($Person, $Year, $Division, $PersonGroup)
{
$Pile = new Pile(Pile::JOIN_TYPE_INNER);
$Pile->addPile((new ViewPerson())->getViewService(), new ViewPerson(),
Method createGroupList
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createGroupList(TblGroup $tblGroup)
{
$tblCompanyList = Group::useService()->getCompanyAllByGroup($tblGroup);
$count = 0;
Method migrateReporting
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function migrateReporting()
{
// All available Consumer
try {
$ConsumerList = $this->getConsumerList();
Method setTableTblIndiwareStudentSubjectOrder
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function setTableTblIndiwareStudentSubjectOrder(Schema &$Schema)
{
$Table = $this->getConnection()->createTable($Schema, 'tblIndiwareStudentSubjectOrder');
if (!$this->getConnection()->hasColumn('tblIndiwareStudentSubjectOrder', 'serviceTblTask')) {
File TblBasket.php
has 285 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace SPHERE\Application\Billing\Bookkeeping\Basket\Service\Entity;
use Doctrine\ORM\Mapping\Cache;