VSVverkeerskunde/gvq-api

View on GitHub

Showing 428 of 1,426 total issues

Function keys has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            Object.keys = (function() {
                var hasOwnProperty = Object.prototype.hasOwnProperty,
                    hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString'),
                    dontEnums = [
                        'toString',
Severity: Minor
Found in public/js/bootstrap-table.js - About 1 hr to fix

    Function hide has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          _proto.hide = function hide(event) {
            var _this2 = this;
    
            if (event) {
              event.preventDefault();
    Severity: Minor
    Found in public/js/bootstrap.js - About 1 hr to fix

      Function _showElement has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            _proto._showElement = function _showElement(relatedTarget) {
              var _this3 = this;
      
              var transition = $$$1(this._element).hasClass(ClassName.FADE);
      
      
      Severity: Minor
      Found in public/js/bootstrap.js - About 1 hr to fix

        Method statistics has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function statistics(): Response
            {
                $startedCounts = $this->statisticsService->getStartedQuizCounts();
                $finishedCounts = $this->statisticsService->getFinishedQuizCounts();
                $passedCounts = $this->statisticsService->getPassedQuizCounts();
        Severity: Minor
        Found in src/Statistics/Controllers/StatisticsViewController.php - About 1 hr to fix

          Method edit has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function edit(Request $request, string $id): Response
              {
                  $companies = $this->getCompaniesForUser();
          
                  $company = $this->getActiveCompany($companies, $id);
          Severity: Minor
          Found in src/Company/Controllers/CompanyViewController.php - About 1 hr to fix

            Function speed has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            jQuery.speed = function( speed, easing, fn ) {
                var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
                    complete: fn || !fn && easing ||
                        isFunction( speed ) && speed,
                    duration: speed,
            Severity: Minor
            Found in public/js/jquery.js - About 1 hr to fix

              Function removeClass has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  removeClass: function( value ) {
                      var classes, elem, cur, curValue, clazz, j, finalValue,
                          i = 0;
              
                      if ( isFunction( value ) ) {
              Severity: Minor
              Found in public/js/jquery.js - About 1 hr to fix

                Function _fnSortAria has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function _fnSortAria ( settings )
                    {
                        var label;
                        var nextSort;
                        var columns = settings.aoColumns;
                Severity: Minor
                Found in public/js/jquery.dataTables.js - About 1 hr to fix

                  Function _toSettings has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      var _toSettings = function ( mixed )
                      {
                          var idx, jq;
                          var settings = DataTable.settings;
                          var tables = $.map( settings, function (el, i) {
                  Severity: Minor
                  Found in public/js/jquery.dataTables.js - About 1 hr to fix

                    Function renderQuestion has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                              function renderQuestion (data) {
                                let imageLocation = quizConfig.imageDirectory + data.question.imageFileName;
                                let questionImage = new Image();
                                setViewValue('questionText', data.question.text);
                    
                    
                    Severity: Minor
                    Found in public/js/quiz.js - About 1 hr to fix

                      Function attr has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          attr: function( elem, name, value ) {
                              var ret, hooks,
                                  nType = elem.nodeType;
                      
                              // Don't get/set attributes on text, comment and attribute nodes
                      Severity: Minor
                      Found in public/js/jquery.js - About 1 hr to fix

                        Function _fnFilterComplete has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function _fnFilterComplete ( oSettings, oInput, iForce )
                            {
                                var oPrevSearch = oSettings.oPreviousSearch;
                                var aoPrevSearch = oSettings.aoPreSearchCols;
                                var fnSaveFilter = function ( oFilter ) {
                        Severity: Minor
                        Found in public/js/jquery.dataTables.js - About 1 hr to fix

                          Function _fnFilter has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function _fnFilter( settings, input, force, regex, smart, caseInsensitive )
                              {
                                  var rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive );
                                  var prevSearch = settings.oPreviousSearch.sSearch;
                                  var displayMaster = settings.aiDisplayMaster;
                          Severity: Minor
                          Found in public/js/jquery.dataTables.js - About 1 hr to fix

                            Function refresh has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                  _proto.refresh = function refresh() {
                                    var _this2 = this;
                            
                                    var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION;
                                    var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
                            Severity: Minor
                            Found in public/js/bootstrap.js - About 1 hr to fix

                              Method guardChannel has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  private function guardChannel(QuizChannel $channel, ?Company $company, ?Partner $partner, ?Team $team): void
                                  {
                                      switch ($channel->toNative()) {
                                          case QuizChannel::INDIVIDUAL:
                                          case QuizChannel::LEAGUE:
                              Severity: Minor
                              Found in src/Quiz/Models/Quiz.php - About 1 hr to fix

                                Method buildForm has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function buildForm(FormBuilderInterface $builder, array $options)
                                    {
                                        /** @var TranslatorInterface $translator */
                                        $translator = $options['translator'];
                                
                                
                                Severity: Minor
                                Found in src/Account/Forms/RequestPasswordFormType.php - About 1 hr to fix

                                  Method rankTeamScores has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private function rankTeamScores(Teams $teams): TeamScores
                                      {
                                          /** @var WeightedTeam[] $weightedTeams */
                                          $weightedTeams = [];
                                  
                                  
                                  Severity: Minor
                                  Found in src/Team/Service/TeamService.php - About 1 hr to fix

                                    Method login has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function login(Request $request): Response
                                        {
                                            $form = $this->createLoginForm();
                                            $form->handleRequest($request);
                                    
                                    
                                    Severity: Minor
                                    Found in src/Account/Controllers/AccountViewController.php - About 1 hr to fix

                                      Method __construct has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              UuidInterface $id,
                                              Language $language,
                                              Year $year,
                                              Category $category,
                                              NotEmptyString $text,
                                      Severity: Major
                                      Found in src/Question/Models/Question.php - About 1 hr to fix

                                        Method __construct has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                                UuidInterface $id,
                                                QuizChannel $channel,
                                                ?Company $company,
                                                ?Partner $partner,
                                                ?Team $team,
                                        Severity: Major
                                        Found in src/Quiz/Models/Quiz.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language