VSVverkeerskunde/gvq-api

View on GitHub

Showing 428 of 1,426 total issues

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

        Year $year,
        StatisticsService $statisticsService,
        SerializerInterface $serializer,
        ResponseFactory $responseFactory,
        TeamRepository $teamRepository,
Severity: Major
Found in src/Statistics/Controllers/StatisticsViewController.php - About 1 hr to fix

    Function parseHTML has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    jQuery.parseHTML = function( data, context, keepScripts ) {
        if ( typeof data !== "string" ) {
            return [];
        }
        if ( typeof context === "boolean" ) {
    Severity: Minor
    Found in public/js/jquery.js - About 1 hr to fix

      Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          finish: function( type ) {
              if ( type !== false ) {
                  type = type || "fx";
              }
              return this.each( function() {
      Severity: Minor
      Found in public/js/jquery.js - About 1 hr to fix

        Function getWidthOrHeight has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function getWidthOrHeight( elem, dimension, extra ) {
        
            // Start with computed style
            var styles = getStyles( elem ),
                val = curCSS( elem, dimension, styles ),
        Severity: Minor
        Found in public/js/jquery.js - About 1 hr to fix

          Function _fnGetCellData has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function _fnGetCellData( settings, rowIdx, colIdx, type )
              {
                  var draw           = settings.iDraw;
                  var col            = settings.aoColumns[colIdx];
                  var rowData        = settings.aoData[rowIdx]._aData;
          Severity: Minor
          Found in public/js/jquery.dataTables.js - About 1 hr to fix

            Function off has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                off: function( types, selector, fn ) {
                    var handleObj, type;
                    if ( types && types.preventDefault && types.handleObj ) {
            
                        // ( event )  dispatched jQuery.Event
            Severity: Minor
            Found in public/js/jquery.js - About 1 hr to fix

              Function _setListeners has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    _proto._setListeners = function _setListeners() {
                      var _this3 = this;
              
                      var triggers = this.config.trigger.split(' ');
                      triggers.forEach(function (trigger) {
              Severity: Minor
              Found in public/js/bootstrap.js - About 1 hr to fix

                Function __details_add has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var __details_add = function ( ctx, row, data, klass )
                    {
                        // Convert to array of TR elements
                        var rows = [];
                        var addRow = function ( r, k ) {
                Severity: Minor
                Found in public/js/jquery.dataTables.js - About 1 hr to fix

                  Function getRowByUniqueId has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      BootstrapTable.prototype.getRowByUniqueId = function (id) {
                          var uniqueId = this.options.uniqueId,
                              len = this.options.data.length,
                              dataRow = null,
                              i, row, rowUniqueId;
                  Severity: Minor
                  Found in public/js/bootstrap-table.js - About 1 hr to fix

                    Function _getPopperConfig has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          _proto._getPopperConfig = function _getPopperConfig() {
                            var _this2 = this;
                    
                            var offsetConf = {};
                    
                    
                    Severity: Minor
                    Found in public/js/bootstrap.js - About 1 hr to fix

                      Function __setColumnVis has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          var __setColumnVis = function ( settings, column, vis ) {
                              var
                                  cols = settings.aoColumns,
                                  col  = cols[ column ],
                                  data = settings.aoData,
                      Severity: Minor
                      Found in public/js/jquery.dataTables.js - About 1 hr to fix

                        Method normalize has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function normalize($question, $format = null, array $context = []): array
                            {
                                $category = $this->categoryNormalizer->normalize(
                                    $question->getCategory(),
                                    $format
                        Severity: Minor
                        Found in src/Question/Serializers/QuestionNormalizer.php - About 1 hr to fix

                          Method handle has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function handle(DomainMessage $domainMessage)
                              {
                                  $payload = $domainMessage->getPayload();
                                  if (!($payload instanceof AnsweredCorrect || $payload instanceof AnsweredInCorrect)) {
                                      return;
                          Severity: Minor
                          Found in src/Statistics/Projectors/CompanyQuestionDifficultyProjector.php - About 1 hr to fix

                            Function when has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                when: function( singleValue ) {
                                    var
                            
                                        // count of uncompleted subordinates
                                        remaining = arguments.length,
                            Severity: Minor
                            Found in public/js/jquery.js - About 1 hr to fix

                              Function clone has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                      var i, l, srcElements, destElements,
                                          clone = elem.cloneNode( true ),
                                          inPage = jQuery.contains( elem.ownerDocument, elem );
                              
                              
                              Severity: Minor
                              Found in public/js/jquery.js - About 1 hr to fix

                                Function position has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    position: function() {
                                        if ( !this[ 0 ] ) {
                                            return;
                                        }
                                
                                
                                Severity: Minor
                                Found in public/js/jquery.js - About 1 hr to fix

                                  Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function propFilter( props, specialEasing ) {
                                      var index, name, easing, value, hooks;
                                  
                                      // camelCase, specialEasing and expand cssHook pass
                                      for ( index in props ) {
                                  Severity: Minor
                                  Found in public/js/jquery.js - About 1 hr to fix

                                    Function addClass has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        addClass: 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 _numbers has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function _numbers ( page, pages ) {
                                              var
                                                  numbers = [],
                                                  buttons = extPagination.numbers_length,
                                                  half = Math.floor( buttons / 2 ),
                                      Severity: Minor
                                      Found in public/js/jquery.dataTables.js - About 1 hr to fix

                                        Function _fnAjaxUpdateDraw has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function _fnAjaxUpdateDraw ( settings, json )
                                            {
                                                // v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.
                                                // Support both
                                                var compat = function ( old, modern ) {
                                        Severity: Minor
                                        Found in public/js/jquery.dataTables.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language