Showing 5,014 of 7,620 total issues
File SerialLetterFilter.php
has 607 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Reporting\SerialLetter;
use SPHERE\Application\Contact\Address\Address;
File Frontend.php
has 607 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Platform\Gatekeeper\Authorization\Access;
use SPHERE\Application\Platform\Gatekeeper\Authorization\Access\Frontend\Summary;
use SPHERE\Application\Platform\Gatekeeper\Authorization\Access\Service\Entity\TblLevel;
Method getOrientationStandard
has 264 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getOrientationStandard($personId, $TextSize = '14px', $IsGradeUnderlined = false)
{
$tblPerson = Person::useService()->getPersonById($personId);
Method getContent
has 262 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Function setPersonAddressSelection
has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring. Open
public function setPersonAddressSelection(
IFormInterface $Form,
TblSerialLetter $tblSerialLetter,
TblPerson $tblPerson,
$Check,
- 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 panelSubjectList
has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring. Open
private function panelSubjectList(
$Identifier,
$Title,
$Label,
$SubjectList,
- 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 frontendSubjectPersonAdd
has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring. Open
public function frontendSubjectPersonAdd(
$Id = null,
$SubjectId = null,
$Group = null,
$DataAddPerson = 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"
Further reading
ApiPersonEdit
has 70 functions (exceeds 20 allowed). Consider refactoring. Open
class ApiPersonEdit extends Extension implements IApiInterface
{
use ApiTrait;
Method buildPages
has 258 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Method createCheckListExcel
has 258 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createCheckListExcel(
TblList $tblList,
$YearPersonId = null,
$LevelPersonId = null,
$SchoolOption1Id = null,
Method getEZSHSubjectLanes
has 257 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getEZSHSubjectLanes(
$personId,
$isSlice = true,
$languagesWithStartLevel = array(),
$isTitle = true,
Method frontendPrintClassList
has 257 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendPrintClassList($DivisionId = null)
{
$Stage = new Stage('ESZC Auswertung', 'Klassenliste zum Ausdrucken');
if (null !== $DivisionId) {
Function getTestLinkPanel
has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring. Open
public function getTestLinkPanel(
TblYear $tblYear,
TblDivisionSubject $tblDivisionSubjectSelected
) {
$panel = false;
- 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 outerJoin
has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring. Open
protected function outerJoin($List, $ProbeList = array(), $SearchList = array())
{
$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
File Service.php
has 591 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 08.03.2017
Method buildDocument
has 254 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildDocument($pageList = array())
{
return (new Frame())->addDocument((new Document())
->addPage((new Page())
->addSlice((new Slice())
File B01_1.php
has 587 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: lehmann
* Date: 27.06.2017
Function previewMultiPdf
has a Cognitive Complexity of 64 (exceeds 5 allowed). Consider refactoring. Open
public static function previewMultiPdf($PrepareId = null, $GroupId = null, $Name = 'Zeugnis', $Redirect = true)
{
if ($Redirect) {
return self::displayWaitingPage('/Api/Education/Certificate/Generator/PreviewMultiPdf', array(
- 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 buildPages
has 252 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Method buildPages
has 252 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;