Showing 5,014 of 7,620 total issues
Method getContent
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Data
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
class Data extends AbstractData
{
public function setupDatabaseContent()
{
Service
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
class Service extends AbstractService
{
/**
* @param bool $doSimulation
Method frontendPersonReadOnly
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendPersonReadOnly($Id = null, $Group = null)
{
$stage = new Stage('Person', 'Datenblatt ' . ($Id ? 'bearbeiten' : 'anlegen'));
$stage->addButton(
Method frontendMinimumGradeCount
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendMinimumGradeCount($MinimumGradeCount = null)
{
$Stage = new Stage('Mindestnotenanzahl', 'Übersicht');
$Stage->setMessage(
Method frontendScoreGroupGradeTypeSelect
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendScoreGroupGradeTypeSelect(
$Id = null
) {
$Stage = new Stage('Zensuren-Gruppe', 'Zensuren-Typen auswählen');
Method frontendStudentCardSubjects
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendStudentCardSubjects($Id = null, $Data = null)
{
$Stage = new Stage('Schülerkartei Einstellungen', 'Fächer zuweisen');
$Stage->addButton(new Standard(
Method frontendScore
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendScore(
$ScoreRule = null
) {
$Stage = new Stage('Berechnungsvorschrift', 'Übersicht');
File StudentGroupSelect.php
has 373 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Education\Division;
use SPHERE\Application\Api\ApiTrait;
use SPHERE\Application\Api\Dispatcher;
File E01.php
has 373 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: lehmann
* Date: 23.06.2017
File ItemCalculation.php
has 372 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Billing\Inventory;
use SPHERE\Application\Billing\Inventory\Item\Item;
use SPHERE\Common\Frontend\Ajax\Emitter\ServerEmitter;
Method frontendLayoutPersonNew
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendLayoutPersonNew(TblPerson $tblPerson)
{
$addressList = array();
if (($tblAddressList = Address::useService()->getAddressAllByPerson($tblPerson))){
Method createElectiveClassList
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createElectiveClassList(TblDivision $tblDivision)
{
$tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
$TableContent = array();
Function isChecked
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function isChecked($RequestKey, $Value)
{
if (preg_match('!^(.*?)\[(.*?)\]$!is', $RequestKey, $Match)) {
if (false === strpos($Match[2], '[')) {
- 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 __construct
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function __construct(
$DataList,
Title $TableTitle = null,
$ColumnDefinition = array(),
$Interactive = true,
- 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 callMethod
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function callMethod($MethodName)
{
if( isset( $this->ApiMethod[$MethodName] ) ) {
$ApiMethod = $this->ApiMethod[$MethodName];
- 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 previewZip
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function previewZip($PrepareId = null, $Name = 'Zeugnis Muster')
{
if (($tblPrepare = Prepare::useService()->getPrepareById($PrepareId))
&& ($tblDivision = $tblPrepare->getServiceTblDivision())
- 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 createPdf
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function createPdf($PrepareId = null, $PersonId = null)
{
if (($tblPrepare = Prepare::useService()->getPrepareById($PrepareId))
&& ($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 createClassListExcel
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function createClassListExcel($PersonList, $tblPersonList)
{
if (!empty( $PersonList )) {
- 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 frontendListObjectElementEdit
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function frontendListObjectElementEdit(
$ObjectId = null,
$ListId = null,
$ObjectTypeId = null,
$Data = null,
- 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"