Showing 5,014 of 7,620 total issues
Function countCourses
has a Cognitive Complexity of 106 (exceeds 5 allowed). Consider refactoring. Open
private static function countCourses(
TblLevel $tblLevel,
TblDivision $tblDivision,
&$countAdvancedCourseArray,
&$countBasicCourseArray,
- 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 frontendListObjectSelect
has 427 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendListObjectSelect(
$ListId = null,
$ObjectTypeId = null,
$ObjectTypeSelect = null
) {
Method frontendDivisionShow
has 424 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendDivisionShow($Id = null)
{
$Stage = new Stage('Klassenansicht', 'Übersicht');
$Stage->addButton(new Standard('Zurück', '/Education/Lesson/Division', new ChevronLeft()));
Function createStudentMetasFromFile
has a Cognitive Complexity of 105 (exceeds 5 allowed). Consider refactoring. Open
public function createStudentMetasFromFile(
IFormInterface $Form = null,
UploadedFile $File = 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 setCurrentTaskList
has a Cognitive Complexity of 105 (exceeds 5 allowed). Consider refactoring. Open
private function setCurrentTaskList(
TblDivision $tblDivision,
TblSubject $tblSubject,
TblSubjectGroup $tblSubjectGroup = null,
TblTestType $tblTestType,
- 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 105 (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
File ApiPersonEdit.php
has 868 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\People\Person;
use SPHERE\Application\Api\ApiTrait;
Function createStaffsFromFile
has a Cognitive Complexity of 104 (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 createAddressPersonGuardian
has a Cognitive Complexity of 103 (exceeds 5 allowed). Consider refactoring. Open
public function createAddressPersonGuardian(TblSerialLetter $tblSerialLetter)
{
$tblSerialPersonList = SerialLetter::useService()->getSerialPersonBySerialLetter($tblSerialLetter);
if ($tblSerialPersonList) {
$CreateArray = 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 frontendDivision
has a Cognitive Complexity of 103 (exceeds 5 allowed). Consider refactoring. Open
public function frontendDivision(
$PrepareId = null,
$DivisionId = null,
$IsLeave = false,
$IsAllYears = 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 414 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
File Service.php
has 855 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Reporting\Custom\Herrnhut\Person;
use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
File PrimarySchool.php
has 849 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 08.03.2017
File Service.php
has 846 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Transfer\Import\FuxMedia;
Function createStaffsFromFile
has a Cognitive Complexity of 101 (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 frontendPrepareDiplomaSetting
has a Cognitive Complexity of 101 (exceeds 5 allowed). Consider refactoring. Open
public function frontendPrepareDiplomaSetting(
$PrepareId = null,
$GroupId = null,
$SubjectId = null,
$Route = 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 outerJoin
has a Cognitive Complexity of 101 (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 License.php
has 842 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Document;
use SPHERE\Application\IApplicationInterface;
use SPHERE\Application\IClusterInterface;
Method setLeaveContentForSekOne
has 405 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function setLeaveContentForSekOne(
TblCertificate $tblCertificate = null,
TblLeaveStudent $tblLeaveStudent = null,
TblDivision $tblDivision = null,
TblPerson $tblPerson = null,
File Frontend.php
has 839 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 08.07.2016