Showing 5,014 of 7,620 total issues
Method createInvoiceCreditorList
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createInvoiceCreditorList($InvoiceCreditor = array())
{
$Manager = $this->getConnection()->getEntityManager();
/** @var TblCreditor $tblCreditor */
Method formFilter
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function formFilter()
{
$tblGroupAll = Group::useService()->getGroupAllSorted();
$tblDivisionList = array();
Method insertStudentTransfer
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function insertStudentTransfer(
TblStudent $tblStudent,
TblStudentTransferType $tblStudentTransferType,
TblCompany $tblCompany = null,
TblType $tblType = null,
Method addStudentSubject
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function addStudentSubject(
TblStudent $tblStudent,
TblStudentSubjectType $tblStudentSubjectType,
TblStudentSubjectRanking $tblStudentSubjectRanking,
TblSubject $tblSubject,
Method setupDatabaseSchema
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function setupDatabaseSchema($Simulate = true, $UTF8 = false)
{
/**
* Table
Method getGradesFromAnotherDivisionByStudent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getGradesFromAnotherDivisionByStudent(
TblDivision $tblDivision,
TblSubject $tblSubject,
TblYear $tblYear,
TblPerson $tblPerson,
Method getCertificateMultiContent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getCertificateMultiContent(TblPrepareCertificate $tblPrepare, TblGroup $tblGroup = null)
{
$Content = array();
Method setAvailableSubjects
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function setAvailableSubjects()
{
$this->setCourses();
$list = array();
foreach ($this->subjectList as $acronym => $name) {
Method updateGradeInformation
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function updateGradeInformation(
IFormInterface $Stage = null,
TblPrepareCertificate $tblPrepare,
$Route = 'Teacher',
$Data
Method frontendSortDivision
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendSortDivision($DivisionId = null)
{
$Stage = new Stage('Klassenbuch', 'Schüler sortieren');
Method getSubjectTeacherNameList
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public
function getSubjectTeacherNameList(
TblDivision $tblDivision,
TblSubject $tblSubject,
TblSubjectGroup $tblSubjectGroup = null
Method innerJoin
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function innerJoin($List)
{
$Result = array();
/** @var AbstractView $Node0 */
foreach ($List[0] as $Node0) {
Method __toView
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __toView()
{
if (method_exists($this, 'getNameDefinition')) {
$Object = new \ReflectionObject($this);
Function setTableUserAccount
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
private function setTableUserAccount(Schema &$Schema)
{
$Table = $this->getConnection()->createTable($Schema, 'tblUserAccount');
if (!$this->getConnection()->hasColumn('tblUserAccount', 'serviceTblAccount')) {
- 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 createResponsibility
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function createResponsibility(
IFormInterface $Form,
$Responsibility
) {
- 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 createToken
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function createToken(IFormInterface $Form, $CredentialKey, TblConsumer $tblConsumer = null)
{
try {
if (null !== $CredentialKey && !empty( $CredentialKey )) {
- 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 createSponsorAssociation
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function createSponsorAssociation(
IFormInterface $Form,
$SponsorAssociation
) {
- 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 createGroup
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function createGroup(IFormInterface $Form = null, $Group)
{
/**
* 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 downloadAccountList
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function downloadAccountList($GroupByTime = null)
{
if ($GroupByTime) {
$tblUserAccountList = Account::useService()->getUserAccountByTime((new \DateTime($GroupByTime)));
- 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 updateCityAnonymousBulk
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function updateCityAnonymousBulk($ProcessList, $CityName = '')
{
$Manager = $this->getConnection()->getEntityManager();
if(!empty($ProcessList)){
- 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"