Showing 5,014 of 7,620 total issues
File StudentCourseGateway.php
has 292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Import Schüler-Kurse. Reihenfolge der Felder aus der CSV-Datei Schüler.csv
* wird Dynamisch ausgelesen (Erfolgt in Control)
*/
Method formAddressToCompany
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function formAddressToCompany($CompanyId, $ToCompanyId = null, $setPost = false)
{
if ($ToCompanyId && ($tblToCompany = Address::useService()->getAddressToCompanyById($ToCompanyId))) {
// beim Checken der Inputfeldern darf der Post nicht gesetzt werden
ApiSystemTest
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ApiSystemTest extends Extension implements IApiInterface
{
use ApiTrait;
Method loadTestPlanning
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function loadTestPlanning($Data = null, $IsDivisionTeacher = null, $PersonId = null)
{
$IsDivisionTeacher = $IsDivisionTeacher === 'true';
if ($Data === null) {
return '';
Method getAdditionalSubjectLanes
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getAdditionalSubjectLanes(
$personId,
$TextSize = '14px',
$IsGradeUnderlined = false
) {
Method getOwnSignPart
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getOwnSignPart($personId, $MarginTop = '25px')
{
$SignSlice = (new Slice());
$SignSlice->addSection((new Section())
Method createAddressPersonList
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createAddressPersonList(
$PersonListArray = array(),
$isCompany = false
) {
Method getProspectFilterResultListBySerialLetter
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getProspectFilterResultListBySerialLetter(
TblSerialLetter $tblSerialLetter = null,
$FilterGroupList = array(),
$FilterProspectList = array(),
&$IsTimeout = false
Method frontendUpload
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function frontendUpload(UploadedFile $File = null, $tblYear = null)
{
$Stage = new Stage('Untis', 'Daten importieren');
$Stage->setMessage('Lehraufträge importieren');
Service
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Service extends AbstractService
{
/**
* @param bool $doSimulation
Method createTicket
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createTicket(IFormInterface $Form = null, $Ticket, $Attachment)
{
/**
* Skip to Frontend
Method getEditStudentSubjectForm
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getEditStudentSubjectForm(TblPerson $tblPerson = null)
{
// Orientation
$tblSubjectOrientation = Subject::useService()->getSubjectOrientationAll();
Method getTestLinkPanel
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getTestLinkPanel(
TblYear $tblYear,
TblDivisionSubject $tblDivisionSubjectSelected
) {
$panel = false;
Method updateProposalBehaviorGrade
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateProposalBehaviorGrade(
IFormInterface $form,
TblDivision $tblDivision,
TblTask $tblTask,
TblGradeType $tblGradeType,
Frontend
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Frontend extends FrontendScoreRule
{
/**
* @param null $GradeType
Consider simplifying this complex logical expression. Open
Open
if (!$tblGroup || Group::useService()->existsGroupPerson($tblGroup, $tblPerson)) {
$isMuted = $isCourseMainDiploma;
$course = '';
if (($tblStudent = Student::useService()->getStudentByPerson($tblPerson))) {
$tblTransferType = Student::useService()->getStudentTransferTypeByIdentifier('PROCESS');
Method getTemplateInformationForPreview
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getTemplateInformationForPreview(
TblPrepareCertificate $tblPrepareCertificate,
TblPerson $tblPerson,
&$studentTable,
&$columnTable
File Setup.php
has 291 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace SPHERE\Application\Education\Graduation\Gradebook\Service;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\Table;
Method createAccount
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createAccount(/*IFormInterface $form, */
$PersonIdArray = array(),
$AccountType = 'S'
)
{
Method callMethod
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function callMethod($MethodName)
{
if( isset( $this->ApiMethod[$MethodName] ) ) {
$ApiMethod = $this->ApiMethod[$MethodName];