CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method sanitize_post_field has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function sanitize_post_field($field, $value, $post_id, $context) {
    $int_fields = array('ID', 'post_parent', 'menu_order');
    if ( in_array($field, $int_fields) )
        $value = (int) $value;

Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/post.php - About 1 hr to fix

    Method wp_unique_post_slug has 45 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function wp_unique_post_slug($slug, $post_ID, $post_status, $post_type, $post_parent) {
        if ( in_array( $post_status, array( 'draft', 'pending' ) ) )
            return $slug;
    
        global $wpdb, $wp_rewrite;
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/post.php - About 1 hr to fix

      Method remove_dot_segments has 45 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function remove_dot_segments($input)
          {
              $output = '';
              while (strpos($input, './') !== false || strpos($input, '/.') !== false || $input === '.' || $input === '..')
              {
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

        Method remove_dot_segments has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function remove_dot_segments($input)
            {
                $output = '';
                while (strpos($input, './') !== false || strpos($input, '/.') !== false || $input === '.' || $input === '..')
                {
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

          Method get_option has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function get_option( $option, $default = false ) {
              global $wpdb;
          
              $option = trim( $option );
              if ( empty( $option ) )
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/option.php - About 1 hr to fix

            Method get_allowed_on_site has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function get_allowed_on_site( $blog_id = null ) {
                    static $allowed_themes = array();
            
                    if ( ! $blog_id || ! is_multisite() )
                        $blog_id = get_current_blog_id();
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/class-wp-theme.php - About 1 hr to fix

              Method remove_user_from_blog has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function remove_user_from_blog($user_id, $blog_id = '', $reassign = '') {
                  global $wpdb;
                  switch_to_blog($blog_id);
                  $user_id = (int) $user_id;
                  /**
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/ms-functions.php - About 1 hr to fix

                Method RegisterBundles has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        public static void RegisterBundles(BundleCollection bundles)
                        {
                            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                                "~/Scripts/jquery-{version}.js",
                                "~/Scripts/jquery-ui-{version}.js",
                Severity: Minor
                Found in Web.Admin/App_Start/BundleConfig.cs - About 1 hr to fix

                  Method fill_query_vars has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function fill_query_vars($array) {
                          $keys = array(
                              'error'
                              , 'm'
                              , 'p'
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/query.php - About 1 hr to fix

                    Method Handle has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            public IEnumerable Handle(Func<Guid, ParticipantAggregate> al, CreateParticipant command)
                            {
                                var agg = al(command.Id);
                    
                                if (agg.EventsLoaded > 0)
                    Severity: Minor
                    Found in Aggregates/Participant/ParticipantCommandHandlers.cs - About 1 hr to fix

                      Method BuildMatchTableHtml has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              public String BuildMatchTableHtml(Match match)
                              {
                                  var scoreRows = "";
                                  for (var i = 0; i < match.Home.Bowlers.Count; i++)
                                  {
                      Severity: Minor
                      Found in ReadModels/DivisionGameCompleteSaga.cs - About 1 hr to fix

                        Function dnd has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            api.event.dnd = function (el, onHover, onDrop){
                                var _id, _type;
                        
                                if( !onDrop ){
                                    onDrop = onHover;
                        Severity: Minor
                        Found in Web.Admin/z-scripts/FileAPI.js - About 1 hr to fix

                          Function traverseFileTree has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  function traverseFileTree(files, entry, path) {
                                      if (entry != null) {
                                          if (entry.isDirectory) {
                                              var filePath = (path || '') + entry.name;
                                              addFile({name: entry.name, type: 'directory', path: filePath});
                          Severity: Minor
                          Found in Web.Admin/z-scripts/ng-file-upload-all.js - About 1 hr to fix

                            Function traverseFileTree has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function traverseFileTree(files, entry, path) {
                                        if (entry != null) {
                                            if (entry.isDirectory) {
                                                var filePath = (path || '') + entry.name;
                                                addFile({name: entry.name, type: 'directory', path: filePath});
                            Severity: Minor
                            Found in Web.Admin/z-scripts/ng-file-upload.js - About 1 hr to fix

                              Function rebuildController has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  var rebuildController = function ($http, $q) {
                                      var vm = this;
                              
                                      vm.readmodels = [
                                          { Name: 'All' },
                              Severity: Minor
                              Found in Web.Admin/AdminApp/Controllers/controller.rebuild.js - About 1 hr to fix

                                Function updateScoreInfo has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        function updateScoreInfo(position) {
                                            var homeBowler = ($.grep($scope.model.Home.Bowlers, function (o) { return o.Position == position; }) || [])[0];
                                            var awayBowler = ($.grep($scope.model.Away.Bowlers, function (o) { return o.Position == position; }) || [])[0];
                                
                                            if ($scope.model.IsTeam) {
                                Severity: Minor
                                Found in Web.Admin/AdminApp/Controllers/controller.scoreentry.js - About 1 hr to fix

                                  Function stepladderController has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      var stepladderController = function ($http, $location, dataService) {
                                          var url = $location.absUrl();
                                          var lastSlash = url.lastIndexOf('/');
                                          var year = url.slice(lastSlash + 1) || new Date().getFullYear();
                                  
                                  
                                  Severity: Minor
                                  Found in Web.Admin/AdminApp/Controllers/controller.stepladder.js - About 1 hr to fix

                                    Function _slide has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            var _slide = function(params, complete, fade, door) {
                                    
                                                var easing = this.getOptions('easing'),
                                                    distance = this.getStageWidth(),
                                                    from = { left: distance * ( params.rewind ? -1 : 1 ) },
                                    Severity: Minor
                                    Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 1 hr to fix

                                      Function inspector has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              var inspector = function(event) {
                                                  event = jQuery.event.fix(event); // jQuery event normalization.
                                                  var element = event.target;
                                                  // @ TextNode -> nodeType == 3
                                                  element = (element.nodeType==3) ? element.parentNode : element;

                                        Function toggleForm has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                toggleForm: function( showOrHide ) {
                                                    var self = this, $widget, $inside, complete;
                                        
                                                    $widget = this.container.find( 'div.widget:first' );
                                                    $inside = $widget.find( '.widget-inside:first' );
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-admin/js/customize-widgets.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language