Showing 5,014 of 7,620 total issues
File Frontend.php
has 493 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Billing\Inventory\Setting;
use SPHERE\Application\Api\Billing\Inventory\ApiSetting;
use SPHERE\Application\Billing\Inventory\Setting\Service\Entity\TblSetting;
Method loadNameDefinition
has 195 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function loadNameDefinition()
{
// S1
$this->setNameDefinition(self::TBL_SALUTATION_SALUTATION_S1, 'S1: Anrede');
Method loadNameDefinition
has 195 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function loadNameDefinition()
{
// S1
$this->setNameDefinition(self::TBL_SALUTATION_SALUTATION_S1, 'S1: Anrede');
File Frontend.php
has 490 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Contact\Address;
use SPHERE\Application\Api\Contact\ApiAddressToCompany;
use SPHERE\Application\Api\Contact\ApiAddressToPerson;
Function loadTestPlanning
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
public function loadTestPlanning($Data = null, $IsDivisionTeacher = null, $PersonId = null)
{
$IsDivisionTeacher = $IsDivisionTeacher === 'true';
if ($Data === null) {
return '';
- 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 setAutoDroppedSubjects
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
public function setAutoDroppedSubjects(TblPrepareCertificate $tblPrepare, TblPerson $tblPerson)
{
$gradeString = '';
$tblLastDivision = 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
Function getAutoDroppedSubjects
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
public function getAutoDroppedSubjects(TblPerson $tblPerson, TblDivision $tblCurrentDivision)
{
$subjectList = array();
$tblLastDivision = 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
Function getPersonMessageTable
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
public static function getPersonMessageTable(TblPerson $tblPerson)
{
if (($tblStudent = $tblPerson->getStudent())
&& ($tblDivisionList = $tblStudent->getCurrentDivisionList())
) {
- 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 getSubjectLanesCustomForChemnitz
has 193 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getSubjectLanesCustomForChemnitz(
$personId,
$isSlice = true,
$languagesWithStartLevel = array(),
$TextSize = '14px',
Method createStaffsFromFile
has 193 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createStaffsFromFile(IFormInterface $Form = null, UploadedFile $File = null)
{
/**
* Skip to Frontend
File StudentCard.php
has 488 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Document\Custom\Radebeul\Repository;
use SPHERE\Application\Api\Document\AbstractDocument;
File EsrlStyle.php
has 487 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository\ESRL;
use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
use SPHERE\Application\Education\Certificate\Generator\Generator;
File RadebeulBildungsempfehlung.php
has 486 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 02.11.2016
File Data.php
has 485 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Reporting\CheckList\Service;
Method frontendScoreTypeSelect
has 191 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendScoreTypeSelect(
$Id = null,
$YearId = null,
$Data = null
) {
File Data.php
has 485 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Education\Lesson\Subject\Service;
use SPHERE\Application\Education\Lesson\Subject\Service\Entity\TblCategory;
use SPHERE\Application\Education\Lesson\Subject\Service\Entity\TblCategorySubject;
Function createMedicalInsuranceClassListExcel
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
public function createMedicalInsuranceClassListExcel($PersonList, $tblPersonList)
{
if (!empty($PersonList)) {
- 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 getPersonGuardianAllByToPersonList
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
public function getPersonGuardianAllByToPersonList($tblToPersonList)
{
$GuardianList = array();
if ($tblToPersonList && !empty($tblToPersonList)) {
- 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 482 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Setting\Consumer\Service;
use SPHERE\Application\Contact\Address\Service\Entity\TblAddress;
File BeMi.php
has 482 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Education\Certificate\Generator\Repository;
use SPHERE\Application\Api\Education\Certificate\Generator\Certificate;
use SPHERE\Application\Education\Certificate\Generator\Repository\Element;