Showing 5,014 of 7,620 total issues
Method buildPages
has 283 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Function getEZSHObligation
has a Cognitive Complexity of 71 (exceeds 5 allowed). Consider refactoring. Open
public function getEZSHObligation($personId, $TextSize = '14px', $isProfile = false)
{
$tblPerson = Person::useService()->getPersonById($personId);
- 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 getContent
has 278 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Method frontendLectureshipShow
has 278 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendLectureshipShow($Visible = false)
{
$Stage = new Stage('Lehraufträge', 'Übersicht');
$Stage->addButton(new Standard('Zurück', '/Transfer/Indiware/Import', new ChevronLeft()));
$tblIndiwareImportLectureshipList = Import::useService()->getIndiwareImportLectureshipAll(true);
File Support.php
has 630 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\People\Meta\Student\Service\Service;
use SPHERE\Application\People\Meta\Student\Service\Data;
use SPHERE\Application\People\Meta\Student\Service\Entity\TblHandyCap;
Method createPrintClassList
has 276 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createPrintClassList(TblDivision $tblDivision)
{
$tblPersonList = Division::useService()->getStudentAllByDivision($tblDivision);
$TableContent = array();
Method setChapterGrades
has 275 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function setChapterGrades($Search)
{
$Chapter = $this->Book->createChapter('Zensuren', '', true);
if ($Chapter->getHash() == $this->Book->getCurrentChapter()) {
File MsAbsRs.php
has 625 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\Generate\Generate;
Method getContent
has 275 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Function countGradesAndStudentsByTest
has a Cognitive Complexity of 69 (exceeds 5 allowed). Consider refactoring. Open
private function countGradesAndStudentsByTest(TblTest $tblTest, &$countGrades, &$countStudents)
{
$tblDivision = $tblTest->getServiceTblDivision();
$tblSubject = $tblTest->getServiceTblSubject();
$tblSubjectGroup = $tblTest->getServiceTblSubjectGroup();
- 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 Service.php
has 621 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Created by PhpStorm.
* User: Kauschke
* Date: 01.06.2016
Method getContent
has 272 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Method setupDatabaseContent
has 269 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function setupDatabaseContent()
{
if (($tblSetting = $this->createSetting('People', 'Meta', 'Student', 'Automatic_StudentNumber',
TblSetting::TYPE_BOOLEAN, '0'))) {
Method updateGroupFromFile
has 268 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function updateGroupFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
Method getStudentFilterResult
has 267 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getStudentFilterResult($Year = null, $Division = null, AbstractField $Field)
{
/** @var SelectBox|TextField $Field */
$Label = $Field->getLabel();
Method buildPages
has 266 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildPages(TblPerson $tblPerson = null)
{
$personId = $tblPerson ? $tblPerson->getId() : 0;
Method createInterestedPersonsFromFile
has 266 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createInterestedPersonsFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
Method getCMSOrientationStandard
has 265 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getCMSOrientationStandard($personId, $TextSize = '14px', $IsGradeUnderlined = false)
{
$tblPerson = Person::useService()->getPersonById($personId);
File DataMaintenance.php
has 608 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Platform\System\DataMaintenance;
use SPHERE\Application\Contact\Address\Address;
Function createMinimumGradeCountFromFile
has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring. Open
public function createMinimumGradeCountFromFile(
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"