CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

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

        public void Handle(TeamGameCompleted e)
        {
            var teamId = e.TeamId;

            //HACK: Old TeamGameCompleted events used teamid instead of bowlerid for POA singles 8'(
Severity: Minor
Found in ReadModels/TeamScoreQueries.cs - About 1 hr to fix

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

            public void Handle(ParticipantGameCompleted e)
            {
                var participant = Participants.Single(x => x.Id == e.ParticipantId);
                var game = participant.Scores.SingleOrDefault(x => x.MatchId == e.Id);
    
    
    Severity: Minor
    Found in ReadModels/ParticipantScoreQueries.cs - About 1 hr to fix

      Function $asArray has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      Type.prototype.$asArray = function(mode, isSearch) {
        if (!mode) return this;
        if (mode === "auto" && !isSearch) throw new Error("'auto' array mode is for query parameters only");
      
        function ArrayType(type, mode) {
      Severity: Minor
      Found in Web.Admin/z-scripts/angular-ui-router.js - About 1 hr to fix

        Function readAsImage has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    readAsImage: function (file, fn, progress){
                        if( api.isFile(file) ){
                            if( apiURL ){
                                /** @namespace apiURL.createObjectURL */
                                var data = apiURL.createObjectURL(file);
        Severity: Minor
        Found in Web.Admin/z-scripts/FileAPI.js - About 1 hr to fix

          Function image has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  image: function( props, attachment ) {
                      var img = {},
                          options, classes, shortcode, html;
          
                      props = wp.media.string.props( props, attachment );
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/js/media-editor.js - About 1 hr to fix

            Function on has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                api.on = function() {
                    var id, $dfwWrap, titleId;
            
                    if ( s.visible ) {
                        return;
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/js/wp-fullscreen.js - About 1 hr to fix

              Method upgrade_all has 46 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function upgrade_all() {
                  global $wp_current_db_version, $wp_db_version, $wp_rewrite;
                  $wp_current_db_version = __get_option('db_version');
              
                  // We are up-to-date.  Nothing to do.
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 1 hr to fix

                Method page_rows has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function page_rows($pages, $pagenum = 1, $per_page = 20) {
                    global $wpdb;
                
                    $level = 0;
                
                
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

                  Method inline_edit_term_row has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function inline_edit_term_row($type) {
                  
                      if ( ! current_user_can( 'manage_categories' ) )
                          return;
                  
                  
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

                    Method retrieve_widgets has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function retrieve_widgets() {
                        global $wp_registered_widget_updates, $wp_registered_sidebars, $sidebars_widgets, $wp_registered_widgets;
                    
                        $_sidebars_widgets = array();
                        $sidebars = array_keys($wp_registered_sidebars);
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-admin/widgets.php - About 1 hr to fix

                      Method wp_ajax_find_posts has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function wp_ajax_find_posts() {
                          global $wpdb;
                      
                          check_ajax_referer( 'find-posts' );
                      
                      
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                        Method get_plugins has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function get_plugins($plugin_folder = '') {
                        
                            if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') )
                                $cache_plugins = array();
                        
                        
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-admin/includes/plugin.php - About 1 hr to fix

                          Method links2wp has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function links2wp($links='')
                              {
                                  // General Housekeeping
                                  global $wpdb;
                                  $count = 0;
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/import/dotclear.php - About 1 hr to fix

                            Method retrieve_password has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function retrieve_password() {
                                global $wpdb;
                            
                                $errors = new WP_Error();
                            
                            
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-login.php - About 1 hr to fix

                              Method _prepare_page has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  protected function _prepare_page( $page ) {
                                      // Get all of the page content and link.
                                      $full_page = get_extended( $page->post_content );
                                      $link = post_permalink( $page->ID );
                              
                              
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

                                Method CopyTagsToComments has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public static function CopyTagsToComments(&$ThisFileInfo) {
                                
                                        // Copy all entries from ['tags'] into common ['comments']
                                        if (!empty($ThisFileInfo['tags'])) {
                                            foreach ($ThisFileInfo['tags'] as $tagtype => $tagarray) {
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.lib.php - About 1 hr to fix

                                  Method uncompress has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public static function uncompress($ip)
                                      {
                                          $c1 = -1;
                                          $c2 = -1;
                                          if (substr_count($ip, '::') === 1)
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Net/IPv6.php - About 1 hr to fix

                                    Method remove_rfc2822_comments has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function remove_rfc2822_comments($string)
                                        {
                                            $string = (string) $string;
                                            $position = 0;
                                            $length = strlen($string);
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Parse/Date.php - About 1 hr to fix

                                      Method uncomment_rfc822 has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public static function uncomment_rfc822($string)
                                          {
                                              $string = (string) $string;
                                              $position = 0;
                                              $length = strlen($string);
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php - About 1 hr to fix

                                        Method get_favicon has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function get_favicon()
                                            {
                                                if ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'icon'))
                                                {
                                                    return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($return[0]));
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language