Showing 5,014 of 7,620 total issues
File Data.php
has 527 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Contact\Address\Service;
use SPHERE\Application\Contact\Address\Service\Entity\TblAddress;
use SPHERE\Application\Contact\Address\Service\Entity\TblCity;
File Service.php
has 527 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 07.06.2018
Method buildPages
has 216 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
$Header = $this->getHead($this->isSample(), true, 'auto', '50px');
Method setGradeOverviewForTask
has 216 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function setGradeOverviewForTask(
TblTask $tblTask,
$divisionList,
$tableHeaderList,
$studentList,
Method frontendPrepareDiplomaAbiturPreview
has 215 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendPrepareDiplomaAbiturPreview($PrepareId = null, $GroupId = null)
{
$stage = new Stage('Zeugnisvorbereitungen', 'Übersicht');
Function getIsFulfilledButNotInGroupByPerson
has a Cognitive Complexity of 55 (exceeds 5 allowed). Consider refactoring. Open
public function getIsFulfilledButNotInGroupByPerson(
TblPerson $tblPerson,
TblSubject $tblSubject,
TblSubjectGroup $tblSubjectGroup,
TblDivisionSubject $tblDivisionSubject,
- 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 innerJoin
has a Cognitive Complexity of 55 (exceeds 5 allowed). Consider refactoring. Open
protected function innerJoin($List)
{
$Result = array();
/** @var AbstractView $Node0 */
foreach ($List[0] as $Node0) {
- 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 setCoursesMatrix
has a Cognitive Complexity of 55 (exceeds 5 allowed). Consider refactoring. Open
private static function setCoursesMatrix(
&$Content,
$personAdvancedCourseList
) {
- 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 createStaffsFromFile
has 214 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
{
/**
* Skip to Frontend
Method getBasketVerificationLayout
has 214 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getBasketVerificationLayout($BasketId = null)
{
$tblBasket = Basket::useService()->getBasketById($BasketId);
if(!$tblBasket){
Method registerModule
has 214 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function registerModule()
{
/**
* Navigation
File Service.php
has 523 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 04.01.2017
File Service.php
has 521 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 25.11.2016
Method buildPages
has 212 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Method frontendDashboard
has 212 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendDashboard()
{
$Stage = new Stage('Datenschutzerklärung Schulsoftware');
Method formFilterPdf
has 211 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function formFilterPdf($GroupByTime, $IsParent = false, $Data = null)
{
$SelectBoxContent = array();
Method getSubjectLanesCoswig
has 211 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getSubjectLanesCoswig(
$personId,
$isSlice = true,
$languagesWithStartLevel = array(),
$TextSize = '14px',
Method getDivisionSelectedStage
has 211 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getDivisionSelectedStage(Stage $Stage, $DivisionId, $isTeacher = false)
{
$tblDivision = Division::useService()->getDivisionById($DivisionId);
if ($tblDivision) {
Function getStudentsWithoutDivision
has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring. Open
public static function getStudentsWithoutDivision(&$count = 0)
{
$personList = array();
if (($tblGroup = Group::useService()->getGroupByMetaTable('STUDENT'))
- 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 frontendSetupFilter
has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSetupFilter($DynamicFilter = 0, $DynamicFilterMask = null, $FilterFieldName = null)
{
$Stage = new Stage('Flexible Auswertung', 'Filter definieren');
$Stage->setMessage('');
- 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"