DerDu/SPHERE-Framework

View on GitHub

Showing 5,014 of 7,620 total issues

Method updateDivisionBehaviorTaskAsBulk has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function updateDivisionBehaviorTaskAsBulk(
        $behaviorTaskAddList,
        $behaviorTaskRemoveTestList
    ) {

Severity: Major
Found in Application/Education/Graduation/Evaluation/Service/Data.php - About 2 hrs to fix

    Method countGradesAndStudentsByTest has 71 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function countGradesAndStudentsByTest(TblTest $tblTest, &$countGrades, &$countStudents)
        {
            $tblDivision = $tblTest->getServiceTblDivision();
            $tblSubject = $tblTest->getServiceTblSubject();
            $tblSubjectGroup = $tblTest->getServiceTblSubjectGroup();
    Severity: Major
    Found in Application/Education/Graduation/Evaluation/Frontend.php - About 2 hrs to fix

      Method updateAbiturLevelTenGrades has 71 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function updateAbiturLevelTenGrades(
              IFormInterface $form,
              TblPrepareCertificate $tblPrepare,
              TblPerson $tblPerson,
              $Data,
      Severity: Major
      Found in Application/Education/Certificate/Prepare/Service.php - About 2 hrs to fix

        Method createAbsence has 71 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function createAbsence(
                IFormInterface $Stage = null,
                TblPerson $tblPerson,
                TblDivision $tblDivision,
                $BasicRoute = '',
        Severity: Major
        Found in Application/Education/ClassRegister/Absence/Service.php - About 2 hrs to fix

          Method buildView has 71 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private function buildView()
              {
          
                  $TableList = $this->LinkList;
                  $QueryBuilder = $this->Structure->getQueryBuilder();
          Severity: Major
          Found in System/Database/Fitting/View.php - About 2 hrs to fix

            Method frontendSubjectGroupChange has 71 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function frontendSubjectGroupChange($Id = null, $SubjectId = null, $DivisionId = null, $DivisionSubjectId = null, $Group = null)
                {
            
                    if ($Id === null || $SubjectId === null || $DivisionId === null || $DivisionSubjectId === null) {
                        $Stage = new Stage('Fach-Gruppen', 'Bearbeiten');
            Severity: Major
            Found in Application/Education/Lesson/Division/Frontend.php - About 2 hrs to fix

              Service has 25 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Service extends AbstractService
              {
              
                  /**
                   * @param bool $doSimulation
              Severity: Minor
              Found in Application/Contact/Phone/Service.php - About 2 hrs to fix

                ApiDocument has 25 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class ApiDocument implements IApiInterface
                {
                    // registered method
                    use ApiTrait;
                
                
                Severity: Minor
                Found in Application/Api/Billing/Inventory/ApiDocument.php - About 2 hrs to fix

                  AbstractDocument has 25 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  abstract class AbstractDocument
                  {
                  
                      /** @var null|Frame $Document */
                      private $Document = null;
                  Severity: Minor
                  Found in Application/Api/Document/AbstractDocument.php - About 2 hrs to fix

                    Service has 25 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class Service extends Extension
                    {
                    
                        /**
                         * @param IFormInterface|null $Stage
                    Severity: Minor
                    Found in Application/Reporting/Standard/Person/Service.php - About 2 hrs to fix

                      Data has 25 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class Data extends AbstractData
                      {
                      
                          /**
                           * @return false|ViewPeopleGroupMember[]
                      Severity: Minor
                      Found in Application/People/Group/Service/Data.php - About 2 hrs to fix

                        Data has 25 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class Data extends AbstractData
                        {
                        
                            /**
                             * @return void
                        Severity: Minor
                        Found in Application/Document/Storage/Service/Data.php - About 2 hrs to fix

                          AbstractView has 25 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          abstract class AbstractView extends Element
                          {
                              const DISABLE_PATTERN = '!(_Id$|_service|_tbl|Locked|MetaTable|^Id$|^Entity)!s';
                          
                              /** @var array $NameDefinitionList */
                          Severity: Minor
                          Found in System/Database/Binding/AbstractView.php - About 2 hrs to fix

                            Method runPlatform has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function runPlatform()
                                {
                            
                                    /**
                                     * REST-API
                            Severity: Major
                            Found in Common/Main.php - About 2 hrs to fix

                              Function ModForm has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  $.fn.ModForm = function(options)
                                  {
                                      var thisForm = this;
                                      // This is the easiest way to have default options.
                                      var settings = $.extend({
                              Severity: Major
                              Found in Common/Script/ModForm.js - About 2 hrs to fix

                                Method clearPassword has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function clearPassword($GroupByTime, $Confirm = false)
                                    {
                                        $Stage = new Stage('Benutzer', 'Klartext Passwörter');
                                        if ($GroupByTime) {
                                            $GroupByTime = new \DateTime($GroupByTime);
                                Severity: Major
                                Found in Application/Setting/User/Account/Frontend.php - About 2 hrs to fix

                                  Method getLevelTen has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private function getLevelTen(TblPerson $tblPerson = null)
                                      {
                                  
                                          $slice = new Slice();
                                          $slice

                                    Method getSubjectLanesForGradeInformation has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        protected function getSubjectLanesForGradeInformation(TblPerson $tblPerson = null)
                                        {
                                    
                                            $personId = $tblPerson ? $tblPerson->getId() : 0;
                                    
                                    

                                      Method setHighlightedTestsOverview has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          private function setHighlightedTestsOverview($Data, $IsDivisionTeacher, $PersonId = null)
                                          {
                                              $stage = new Stage('Leistungsüberprüfung', 'Planungsübersicht');
                                              $stage->addButton(new Standard(
                                                  'Zurück',
                                      Severity: Major
                                      Found in Application/Education/Graduation/Evaluation/Frontend.php - About 2 hrs to fix

                                        Method __construct has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function __construct(
                                                TblDivision $tblDivision,
                                                TblPerson $tblPerson,
                                                TblPrepareCertificate $tblPrepareCertificate
                                            ) {
                                        Severity: Major
                                        Found in Application/Education/Certificate/Prepare/Abitur/LevelTen.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language