Showing 5,014 of 7,620 total issues
Method frontendListObjectElementShow
has 403 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendListObjectElementShow
(
$Id = null,
$Filter = null,
// $Data = null,
File Service.php
has 836 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Reporting\DeclarationBasis;
use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
Method getEZSHObligation
has 399 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getEZSHObligation($personId, $TextSize = '14px', $isProfile = false)
{
$tblPerson = Person::useService()->getPersonById($personId);
Function parseScript
has a Cognitive Complexity of 99 (exceeds 5 allowed). Consider refactoring. Open
public function parseScript($FrontendElement = null)
{
foreach ($this->Emitter as $Index => $Emitter) {
$Method = 'GET';
$Data = 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
Function checkInputCalculation
has a Cognitive Complexity of 99 (exceeds 5 allowed). Consider refactoring. Open
private function checkInputCalculation($Identifier, $VariantId, $CalculationId, $Calculation = array())
{
$Error = false;
$form = $this->formCalculation($Identifier, $VariantId, $CalculationId);
- 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 ApiSupport.php
has 826 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\People\Meta\Support;
Function getRestoreDetailList
has a Cognitive Complexity of 98 (exceeds 5 allowed). Consider refactoring. Open
public function getRestoreDetailList(TblPerson $tblPerson, $isRestore)
{
$count = 1;
$result[] = 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
Function countForeignLanguages
has a Cognitive Complexity of 98 (exceeds 5 allowed). Consider refactoring. Open
private static function countForeignLanguages(
TblStudent $tblStudent,
TblLevel $tblLevel,
TblType $tblType,
&$Content,
- 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 setKamenzReportGymContent
has a Cognitive Complexity of 98 (exceeds 5 allowed). Consider refactoring. Open
public static function setKamenzReportGymContent(
$Content
) {
$tblCurrentYearList = 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
Method buildPages
has 392 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
File Service.php
has 819 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 12.09.2016
Method buildContentPage
has 390 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function buildContentPage(
$personId,
$isSample,
$title = 'Halbjahresinformation der Schule (Sekundarstufe)',
$term,
Method getEditStudentTransferForm
has 389 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getEditStudentTransferForm(TblPerson $tblPerson = null)
{
FrontendStudent::setYearAndDivisionForMassReplace($tblPerson, $Year, $Division);
File Filter.php
has 813 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 08.06.2018
File Gradebook.php
has 811 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Document\Standard\Repository\Gradebook;
use SPHERE\Application\Document\Generator\Repository\Document;
use SPHERE\Application\Document\Generator\Repository\Element;
File Frontend.php
has 811 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Reporting\Custom\Herrnhut\Person;
use SPHERE\Application\Education\Lesson\Division\Division;
Function __construct
has a Cognitive Complexity of 96 (exceeds 5 allowed). Consider refactoring. Open
public function __construct(
$Name,
$Label = '',
$Data = array(),
IIconInterface $Icon = 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
File ApiDebtorSelection.php
has 803 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Billing\Accounting;
use SPHERE\Application\Api\ApiTrait;
File Service.php
has 803 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\People\Meta\Student;
use SPHERE\Application\Corporation\Company\Company;
use SPHERE\Application\Corporation\Company\Service\Entity\TblCompany;
Function getLayoutRowsForTestPlanning
has a Cognitive Complexity of 95 (exceeds 5 allowed). Consider refactoring. Open
public function getLayoutRowsForTestPlanning($testArray)
{
$preview = array();
if (!empty($testArray)) {
$trans = 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"