Showing 5,014 of 7,620 total issues
File Frontend.php
has 482 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 20.09.2016
Method setSubjectRow
has 189 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function setSubjectRow($personId, $subjectName = ' ', $hasAdvancedCourse = true, $isLastRow = false)
{
$color = '#BBB';
$isAdvancedSubject = false;
Method createContactsFromFile
has 189 lines of code (exceeds 25 allowed). Consider refactoring. Open
public
function createContactsFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
Method frontendSearch
has 189 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendSearch($Id = false)
{
$Stage = new Stage('Suche', 'nach Gruppe');
$Stage->addButton(new Standard('Zurück', '/People', new ChevronLeft()));
Method frontendFillStudentTransfer
has 189 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendFillStudentTransfer($Id = null)
{
$Stage = new Stage('Schülerüberweisung', 'Erstellen');
$Stage->addButton(new Standard('Zurück', '/Document/Standard/StudentTransfer', new ChevronLeft()));
File Data.php
has 481 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\People\Meta\Student\Service;
use SPHERE\Application\People\Meta\Student\Service\Data\Support;
use SPHERE\Application\People\Meta\Student\Service\Entity\TblStudent;
File E07.php
has 480 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: lehmann
* Date: 23.06.2017
File Frontend.php
has 480 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Platform\System\Test;
use MOC\V\Core\FileSystem\FileSystem;
use SPHERE\Application\Api\Platform\Test\ApiSystemTest;
Method getObligationToVotePartCustomForCoswig
has 187 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getObligationToVotePartCustomForCoswig($personId, $TextSize = '14px', $IsGradeUnderlined = false)
{
$tblPerson = Person::useService()->getPersonById($personId);
Method buildPage
has 187 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPage()
{
$SmallTextSize = '7px';
$InputText = '12px';
Method frontendTransferOltIntegration
has 186 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendTransferOltIntegration()
{
$Stage = new Stage('Integartion', 'Übernehmen');
$Stage->addButton(new Standard('Zurück', __NAMESPACE__, new ChevronLeft()));
Function getPdfForm
has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring. Open
private function getPdfForm(TblPerson $tblPerson, TblUserAccount $tblUserAccount, $IsParent = false)
{
// $tblStudentCompanyId = false;
$tblSchoolAll = School::useService()->getSchoolAll();
- 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 downloadMultiLeavePdf
has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring. Open
public static function downloadMultiLeavePdf($DivisionId = null, $Name = 'Abgangszeugnis', $Redirect = true)
{
if ($Redirect) {
return self::displayWaitingPage('/Api/Education/Certificate/Generator/DownLoadMultiLeavePdf', 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 setFieldValue
has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring. Open
private function setFieldValue($DataPost)
{
$tblAccount = false;
// Common
- 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 getItemContent
has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring. Open
public function getItemContent($PersonId = '', $ItemId = '', $IsOpen = false)
{
$PanelContent = array();
$Accordion = '';
- 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 updatePrepareInformationList
has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring. Open
public function updatePrepareInformationList(
IFormInterface $Stage = null,
TblPrepareCertificate $tblPrepare,
TblGroup $tblGroup = null,
$Route,
- 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 createStaffsFromFile
has 185 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
{
/**
* Skip to Frontend
Data
has 52 functions (exceeds 20 allowed). Consider refactoring. Open
class Data extends AbstractData
{
public function setupDatabaseContent()
{
Method frontendRunFilter
has 183 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendRunFilter($DynamicFilter = 0, $SearchFieldName = array())
{
// BlackFire.io
// $DynamicFilter = 2;
Method createStaffsFromFile
has 183 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
{
/**
* Skip to Frontend