Showing 5,014 of 7,620 total issues
Method frontendSerialLetter
has 178 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendSerialLetter(
$SerialLetter = null,
$TabActive = 'STATIC',
$FilterGroup = null,
$FilterPerson = null,
Method frontendLeaveStudentAbiturInformation
has 178 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendLeaveStudentAbiturInformation($Id = null, $Data = null)
{
if (($tblLeaveStudent = Prepare::useService()->getLeaveStudentById($Id))
&& ($tblPerson = $tblLeaveStudent->getServiceTblPerson())
Function filterPersonListByGroupAndDivision
has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring. Open
public function filterPersonListByGroupAndDivision(
$tblPersonList,
TblGroup $tblGroup = null,
TblDivision $tblDivision = 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 getCurrentMainDivisionByPerson
has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring. Open
public function getCurrentMainDivisionByPerson(TblPerson $tblPerson)
{
if (Group::useService()->existsGroupPerson(Group::useService()->getGroupByMetaTable('STUDENT'),
$tblPerson)
- 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 getDivisionSubjectAllByPersonAndYear
has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring. Open
public
function getDivisionSubjectAllByPersonAndYear(
TblPerson $tblPerson,
TblYear $tblYear
) {
- 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 getProfileStandardNew
has 177 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getProfileStandardNew($personId, $TextSize = '14px', $IsGradeUnderlined = false)
{
$tblPerson = Person::useService()->getPersonById($personId);
Method createClubMembersFromFile
has 177 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createClubMembersFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
Method setSubjectRow
has 176 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function setSubjectRow($personId, $subjectName = ' ', $isForeignLanguage = false, $isLastRow = false)
{
$textSize = '13px';
$colorPoints = '#BBB';
Method getContent
has 176 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Method getContent
has 176 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Method frontendListObjectAdd
has 175 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendListObjectAdd($ListId = null, $ObjectId = null, $ObjectTypeId = null, $Option = null)
{
$Stage = new Stage('Check-Listen', 'Ein Object einer Check-Liste hinzufügen');
Service
has 50 functions (exceeds 20 allowed). Consider refactoring. Open
class Service extends AbstractService
{
/**
* @param bool $doSimulation
File ApiItem.php
has 458 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Billing\Inventory;
use SPHERE\Application\Api\ApiTrait;
use SPHERE\Application\Api\Dispatcher;
Method getContent
has 174 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
File GrammarSchool.php
has 456 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 10.03.2017
Function formDebtorSelection
has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring. Open
public function formDebtorSelection($BasketVerificationId = '')
{
// choose between Add and Edit
$SaveButton = new Primary('Speichern', self::getEndpoint(), new Save());
- 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 setPhoneNumbersByTypeName
has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring. Open
private function setPhoneNumbersByTypeName(TblPerson $tblPerson, $TypeName = 'Privat')
{
$IsRemark = false;
if($TypeName == 'Notfall'){
- 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 getCompanyTableByResult
has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring. Open
public function getCompanyTableByResult($Result)
{
$TableSearch = array();
if (!empty($Result)) {
- 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 doCharDiff
has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring. Open
private static function doCharDiff($from_text, $to_text)
{
$result = array();
$jobs = array(array(0, strlen($from_text), 0, strlen($to_text)));
- 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 frontendDivisionTeacherTask
has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring. Open
public function frontendDivisionTeacherTask($IsAllYears = false, $YearId = null)
{
$Stage = new Stage('Notenaufträge', 'Übersicht');
$Stage->setMessage(
- 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"