Showing 5,014 of 7,620 total issues
Method frontendPrepareSetting
has 673 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendPrepareSetting(
$PrepareId = null,
$GroupId = null,
$Route = 'Teacher',
$GradeTypeId = null,
Function createSerialLetter
has a Cognitive Complexity of 163 (exceeds 5 allowed). Consider refactoring. Open
public function createSerialLetter(
IFormInterface $Stage = null,
$SerialLetter,
$FilterGroup = null,
$FilterPerson = 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
Method createStudentsFromFile
has 661 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createStudentsFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
Method setContent
has 660 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function setContent(
TblDivision $tblDivision,
TblSubject $tblSubject,
TblSubjectGroup $tblSubjectGroup = null,
TblPeriod $tblPeriod,
Method frontendSerialLetterPersonSelected
has 658 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendSerialLetterPersonSelected(
$Id = null,
$FilterGroup = null,
$FilterStudent = null,
$FilterPerson = null,
Function getTemplateInformation
has a Cognitive Complexity of 159 (exceeds 5 allowed). Consider refactoring. Open
private function getTemplateInformation(
TblPrepareCertificate $tblPrepareCertificate,
TblPerson $tblPerson,
&$studentTable,
&$columnTable,
- 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 EzshStyle.php
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\EZSH;
use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
Method getContent
has 637 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Function frontendPersonAddressEdit
has a Cognitive Complexity of 156 (exceeds 5 allowed). Consider refactoring. Open
public function frontendPersonAddressEdit($Id = null, $PersonId = null, $Route = '/Reporting/SerialLetter/Address', $Check = null)
{
$Stage = new Stage('Adresse(n)', 'Auswählen');
$tblSerialLetter = ( $Id === null ? false : SerialLetter::useService()->getSerialLetterById($Id) );
- 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 createStaffsFromFile
has a Cognitive Complexity of 154 (exceeds 5 allowed). Consider refactoring. Open
public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
{
/**
* Skip to Frontend
- 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 contentEditTestGrade
has 615 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function contentEditTestGrade(Stage $Stage, TblTest $tblTest, $Grade, $BasicRoute, $IsEdit = false)
{
if (!$tblTest->getServiceTblDivision()) {
return new Danger(new Ban() . ' Klasse nicht gefunden')
Function frontendScoreTypeSelect
has a Cognitive Complexity of 150 (exceeds 5 allowed). Consider refactoring. Open
public function frontendScoreTypeSelect(
$Id = null,
$YearId = 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 createStaffsFromFile
has a Cognitive Complexity of 149 (exceeds 5 allowed). Consider refactoring. Open
public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
{
/**
* Skip to Frontend
- 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 createSepaContent
has a Cognitive Complexity of 149 (exceeds 5 allowed). Consider refactoring. Open
public function createSepaContent(TblBasket $tblBasket, $CheckboxList = array(), $FeeList = array())
{
$tblInvoiceList = Invoice::useService()->getInvoiceByBasket($tblBasket);
if(!$tblInvoiceList){
- 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 1165 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Transfer\Import\Tharandt;
use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
use MOC\V\Component\Document\Document;
Function frontendScoreSubjectGroup
has a Cognitive Complexity of 147 (exceeds 5 allowed). Consider refactoring. Open
public function frontendScoreSubjectGroup(
$Id = null,
$YearId = 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
File Data.php
has 1157 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 12.07.2016
Function frontendEditAbsenceMonth
has a Cognitive Complexity of 146 (exceeds 5 allowed). Consider refactoring. Open
public function frontendEditAbsenceMonth(
$DivisionId = null,
$Month = null,
$Year = null,
$BasicRoute = '',
- 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 checkCertificateSubjectsForStudents
has a Cognitive Complexity of 145 (exceeds 5 allowed). Consider refactoring. Open
public function checkCertificateSubjectsForStudents(TblPrepareCertificate $tblPrepare)
{
$subjectList = array();
$resultList = 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 outerJoin
has a Cognitive Complexity of 145 (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"