Showing 5,014 of 7,620 total issues
Function frontendPrepare
has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring. Open
Open
public function frontendPrepare($DivisionId = null, $GroupId = null, $Route = 'Teacher')
{
$Stage = new Stage('Zeugnisvorbereitungen', 'Übersicht');
$Stage->addButton(new Standard(
- 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 __construct
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(
$DataList,
Title $TableTitle = null,
$ColumnDefinition = array(),
$Interactive = true,
Method setExamRows
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function setExamRows($personId, $isBellUsed)
{
$color = '#BBB';
$sectionList = array();
File EmergencyDocument.php
has 385 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 09.09.2016
Method setupDatabaseContent
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setupDatabaseContent()
{
/**
* CLOUD
Method createDonorsFromFile
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createDonorsFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
/**
Method createPersonsFromFile
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createPersonsFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
Method frontendPrepareDiplomaAbiturOtherInformation
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendPrepareDiplomaAbiturOtherInformation(
$PrepareId = null,
$GroupId = null,
$PersonId = null,
$Data = null
Method parseScript
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function parseScript($FrontendElement = null)
{
foreach ($this->Emitter as $Index => $Emitter) {
$Method = 'GET';
$Data = array();
Method getFilter
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getFilter($ViewType = TblWorkSpace::VIEW_TYPE_ALL)
{
$tblWorkSpaceList = Individual::useService()->getWorkSpaceAll($ViewType);
$LayoutColumnAll = array();
Method getContent
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
File RadebeulJahreszeugnis.php
has 382 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 01.11.2016
TblInvoiceItemDebtor
has 39 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class TblInvoiceItemDebtor extends Element
{
const ATTR_SERVICE_TBL_ITEM = 'serviceTblItem';
const ATTR_NAME = 'Name';
Data
has 39 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Data extends AbstractData
{
/**
* @return false|ViewYear[]
Method buildPages
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Method allocatePersonParentsContact
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function allocatePersonParentsContact(&$Data)
{
$Data['Person']['Contact']['All']['Mail'] = '';
$Data['Person']['Contact']['All']['Person']['Mail'] = '';
Method createNurseryExcel
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createNurseryExcel($PersonList, $PLZ = '')
{
if (!empty($PersonList)) {
Method setLeaveContentForSekTwo
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function setLeaveContentForSekTwo(
TblCertificate $tblCertificate = null,
TblLeaveStudent $tblLeaveStudent = null,
TblDivision $tblDivision = null,
TblPerson $tblPerson = null,
File BeSOFS.php
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository;
use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
use SPHERE\Application\Education\Certificate\Generator\Repository\Element;
Method saveAddBasket
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function saveAddBasket($Identifier = '', $Basket = array())
{
// Handle error's
if($form = $this->checkInputBasket($Identifier, '', $Basket)){