Showing 5,014 of 7,620 total issues
Method countOrientation
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function countOrientation(
TblStudent $tblStudent,
TblLevel $tblLevel,
$gender,
$countOrientationArray
Method countDivisionStudentsForSecondarySchool
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function countDivisionStudentsForSecondarySchool(
&$countDivisionStudents,
TblDivision $tblDivision,
TblLevel $tblLevel,
TblCourse $tblCourse = null,
Method performQueryAnalysis
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function performQueryAnalysis($query) {
if (preg_match('/^\\s*SELECT\\s\\*/i', $query)) {
$this->hints[] = 'Use <code>SELECT *</code> only if you need all columns from table';
}
if (preg_match('/ORDER BY RAND()/i', $query)) {
Method performQueryAnalysis
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function performQueryAnalysis($query) {
if (preg_match('/^\\s*SELECT\\s*`?[a-zA-Z0-9]*`?\\.?\\*/i', $query)) {
$this->hints[] = 'Use <code>SELECT *</code> only if you need all columns from table';
}
if (preg_match('/ORDER BY RAND()/i', $query)) {
Method saveCreateAddressToPersonModal
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function saveCreateAddressToPersonModal($PersonId, $Street, $City, $State, $Type, $County, $Nation, $Relationship)
Method saveEditAddressToCompanyModal
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function saveEditAddressToCompanyModal($CompanyId, $ToCompanyId, $Street, $City, $State, $Type, $County, $Nation)
Consider simplifying this complex logical expression. Open
Open
if ($Additional
&& $Reorder
&& isset($Additional['PrepareId'])
&& isset($Additional['PersonId'])
&& ($tblPrepare = \SPHERE\Application\Education\Certificate\Prepare\Prepare::useService()->getPrepareById($Additional['PrepareId']))
Consider simplifying this complex logical expression. Open
Open
if (isset($languagesWithStartLevel['Lane']) && isset($languagesWithStartLevel['Rank'])
&& $languagesWithStartLevel['Lane'] == $Lane && $languagesWithStartLevel['Rank'] == $count
) {
$hasAdditionalLine['Lane'] = $Lane;
$hasAdditionalLine['Ranking'] = 2;
Consider simplifying this complex logical expression. Open
Open
if (($tblConsumer = \SPHERE\Application\Platform\Gatekeeper\Authorization\Consumer\Consumer::useService()->getConsumerBySession())
&& $tblConsumer->getAcronym() == 'ESZC'
) {
if (strpos(strtolower($tblSubject->getName()), 'naturwissen') !== false
&& $this->getTblDivision()
Method getGradeLanesForRadebeul
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$personId,
$TextColor = 'black',
$TextSize = '13px',
$GradeFieldBackgroundColor = 'rgb(224,226,231)',
$IsGradeUnderlined = false,
Method setCourseSubject
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
TblSubject $tblSubject = null,
Section $section,
$isSubjectUnderlined,
$isGradeUnderlined,
$personId,
Method frontendSerialLetterPersonSelected
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$Id = null,
$FilterGroup = null,
$FilterStudent = null,
$FilterPerson = null,
$FilterYear = null,
Method updateListObjectElementList
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
IFormInterface $Stage = null,
$Id = null,
$Data = null,
$HasData = null,
$objectList = null,
Method frontendListObjectElementEdit
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$ObjectId = null,
$ListId = null,
$ObjectTypeId = null,
$Data = null,
$YearPersonId = null,
Method createTestPicture
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function createTestPicture($Name, $FileName, $Extension, $File, $Type, $Size, $Width, $Height)
Method createInvoice
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$IntegerNumber,
$Month,
$Year,
$TargetTime,
$BillTime,
Method importSupport
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function importSupport(TblPerson $tblPerson,
TblSupportType $tblSupportType,
$Date = '',
$Company = '',
$PersonSupport = '',
Method insertStudentTransfer
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
TblStudent $tblStudent,
TblStudentTransferType $tblStudentTransferType,
TblCompany $tblCompany = null,
TblType $tblType = null,
TblCourse $tblCourse = null,
Method createSupport
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function createSupport(TblPerson $serviceTblPerson,
TblSupportType $tblSupportType,
$Date,
$PersonEditor = '',
$Company = '',
Method createStudentIntegration
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
TblPerson $tblPerson = null,
TblCompany $tblCompany = null,
$CoachingRequestDate,
$CoachingCounselDate,
$CoachingDecisionDate,