Showing 5,014 of 7,620 total issues
Method setStudentOverviewStage
has 138 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function setStudentOverviewStage(
$DivisionId,
$GroupId,
$PersonId,
Stage $Stage,
Service
has 41 functions (exceeds 20 allowed). Consider refactoring. Open
class Service extends AbstractService
{
/**
* @return false|ViewAddressToPerson[]
Data
has 41 functions (exceeds 20 allowed). Consider refactoring. Open
class Data extends AbstractData
{
public function setupDatabaseContent()
{
Frontend
has 41 functions (exceeds 20 allowed). Consider refactoring. Open
class Frontend extends Extension implements IFrontendInterface
{
/**
* @return Stage
File CosHjPri.php
has 395 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\EVSC;
use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
Method getContent
has 137 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Method copySubjectGradesByPrepare
has 136 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function copySubjectGradesByPrepare(TblPrepareCertificate $tblPrepare, $isDiploma = false)
{
$Manager = $this->getConnection()->getEntityManager();
Function getFilter
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
public function getFilter($ViewType = TblWorkSpace::VIEW_TYPE_ALL)
{
$tblWorkSpaceList = Individual::useService()->getWorkSpaceAll($ViewType);
$LayoutColumnAll = 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 saveEditDebtorSelection
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
public function saveEditDebtorSelection(
$Identifier = '',
$PersonId = '',
$ItemId = '',
$DebtorSelectionId = '',
- 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 setGradeLayoutBody
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
protected function setGradeLayoutBody(
$subjectPosition = array(),
$typeId = 0,
$countSubjectColumns = 18,
$countRows = 12,
- 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 createExtendedClassListExcel
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
public function createExtendedClassListExcel($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 updateDynamicSerialCompany
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
public function updateDynamicSerialCompany(TblSerialLetter $tblSerialLetter, $tblCompanySearchList)
{
if (!empty($tblCompanySearchList)) {
- 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 isCredentialValid
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
private function isCredentialValid($Username, $Password, $TokenString, TblIdentification $tblIdentification)
{
if (false === ($tblAccount = $this->getAccountByCredential($Username, $Password, $tblIdentification))) {
return 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 updatePersonService
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
public function updatePersonService(TblPerson $tblPerson, $Person)
{
// SSw-699 Bearbeitung Stammdaten (Anrede -> automatisches Geschlecht)
$updateGender = false;
$salutationId = ($tblSalutationOld = $tblPerson->getTblSalutation()) ? $tblSalutationOld->getId() : 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 updateScoreRuleSubjectGroup
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
public function updateScoreRuleSubjectGroup(
IFormInterface $Stage = null,
TblScoreRule $tblScoreRule,
TblYear $tblYear = 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"
Further reading
Function updateProposalBehaviorGrade
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
public function updateProposalBehaviorGrade(
IFormInterface $form,
TblDivision $tblDivision,
TblTask $tblTask,
TblGradeType $tblGradeType,
- 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 frontendPrepareDiplomaAbiturOtherInformation
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
public function frontendPrepareDiplomaAbiturOtherInformation(
$PrepareId = null,
$GroupId = null,
$PersonId = 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"
Further reading
Function getYearAllSinceYears
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
public function getYearAllSinceYears($Year)
{
$Now = (new \DateTime('now'))->sub(new \DateInterval('P' . $Year . 'Y'));
- 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 36 (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 getYearAllFutureYears
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
public function getYearAllFutureYears($Year)
{
$Now = (new \DateTime('now'))->add(new \DateInterval('P' . $Year . 'Y'));
- 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"