Showing 5,014 of 7,620 total issues
File ClassRegister.php
has 471 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Education\ClassRegister;
use SPHERE\Application\Api\People\Meta\Agreement\ApiAgreementReadOnly;
use SPHERE\Application\Api\People\Meta\MedicalRecord\MedicalRecordReadOnly;
Method frontendHeadmasterTaskDivision
has 182 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendHeadmasterTaskDivision($Id = null, $Data = null)
{
$Stage = new Stage('Notenauftrag', 'Klassen zuordnen');
$Stage->setMessage(new Bold(new Exclamation() . ' Hinweis: ') . 'Bei der Auswahl vieler Klassen kann das Speichern einige Zeit dauern.');
Function setError
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
public function setError($Name, $Message, IIconInterface $Icon = null)
{
/** @var FormGroup $GridGroup */
foreach ((array)$this->GridGroupList as $GridGroup) {
- 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 setSuccess
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
public function setSuccess($Name, $Message = '', IIconInterface $Icon = null)
{
/** @var FormGroup $GridGroup */
foreach ((array)$this->GridGroupList as $GridGroup) {
- 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 setupDatabaseContent
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
public function setupDatabaseContent()
{
if (($tblSetting = $this->createSetting('People', 'Meta', 'Student', 'Automatic_StudentNumber',
TblSetting::TYPE_BOOLEAN, '0'))) {
- 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 downloadZip
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
public function downloadZip($PrepareId = null, $Name = 'Zeugnis')
{
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 getObjectList
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
public function getObjectList($tblListObjectListByList, $objectList)
{
if ($tblListObjectListByList) {
/** @var TblListObjectElementList $tblListObjectList */
foreach ($tblListObjectListByList as $tblListObjectList) {
- 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 createBalanceListExcel
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
public function createBalanceListExcel($PriceList, $tblItemList = array())
{
$PersonList = array();
if(!empty($PriceList)){
- 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 frontendBalancePdf
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
public function frontendBalancePdf($Balance = array())
{
$Stage = new Stage('Belegdruck', 'PDF');
if(!isset($Balance['Year'])){
- 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 getFilterForm
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
public function getFilterForm($Balance, IMessageInterface $message = null, $IsMultiItem = '0')
{
$filterOptions = array(
self::FILTER_CLASS => 'Klasse',
- 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 frontendDivisionTeacherTaskGrades
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
public function frontendDivisionTeacherTaskGrades($Id = null, $DivisionId = null)
{
$Stage = new Stage('Notenauftrag', 'Zensurenübersicht');
- 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 frontendScore
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
public function frontendScore(
$ScoreRule = null
) {
$Stage = new Stage('Berechnungsvorschrift', 'Übersicht');
- 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 getMinDivisionByLevelType
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
public
function getMinDivisionByLevelType(
TblType $tblType
) {
- 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 466 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Billing\Accounting\Causer;
use SPHERE\Application\Api\Billing\Accounting\ApiBankReference;
use SPHERE\Application\Api\Billing\Accounting\ApiCauser;
File StudentTransfer.php
has 466 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Document\Standard\StudentTransfer;
Data
has 51 functions (exceeds 20 allowed). Consider refactoring. Open
class Data extends AbstractData
{
public function setupDatabaseContent()
{
Service
has 51 functions (exceeds 20 allowed). Consider refactoring. Open
class Service extends AbstractService
{
/** @var TblAccount[] $AccountByIdCache */
private static $AccountByIdCache = array();
Method frontendScoreConditionGradeTypeSelect
has 179 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendScoreConditionGradeTypeSelect(
$Id = null,
$Period = null
) {
Method setExamsSetting
has 179 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function setExamsSetting(
TblPrepareCertificate $tblPrepare,
TblDivision $tblDivision,
TblGroup $tblGroup = null,
$tblTestList,
Method frontendCreateLevelDivision
has 179 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendCreateLevelDivision($Level = null, $Division = null, $Year = null)
{
$Stage = new Stage('Klassen', 'Aktuelle Übersicht');