CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method redirect_page has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function redirect_page($page_ID) {
    global $action;

    $referredby = '';
    if ( !empty($_POST['referredby']) ) {
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-admin/page.php - About 1 hr to fix

    Method do_item has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function do_item( $handle ) {
            if ( !parent::do_item($handle) )
                return false;
    
            $ver = $this->registered[$handle]->ver ? $this->registered[$handle]->ver : $this->default_version;
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/class.wp-styles.php - About 1 hr to fix

      Method get_term has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function &get_term($term, $taxonomy, $output = OBJECT, $filter = 'raw') {
          global $wpdb;
          $null = null;
      
          if ( empty($term) ) {
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 hr to fix

        Method ChannelsBitratePlaytimeCalculations has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function ChannelsBitratePlaytimeCalculations() {
        
                // set channelmode on audio
                if (!empty($this->info['audio']['channelmode']) || !isset($this->info['audio']['channels'])) {
                    // ignore
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.php - About 1 hr to fix

          Method ETCOEventLookup has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public static function ETCOEventLookup($index) {
                  if (($index >= 0x17) && ($index <= 0xDF)) {
                      return 'reserved for future use';
                  }
                  if (($index >= 0xE0) && ($index <= 0xEF)) {
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.id3v2.php - About 1 hr to fix

            Method set_host has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function set_host($ihost)
                {
                    if ($ihost === null)
                    {
                        $this->ihost = null;
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/IRI.php - About 1 hr to fix

              Method safecss_filter_attr has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function safecss_filter_attr( $css, $deprecated = '' ) {
                  $css = wp_kses_no_null($css);
                  $css = str_replace(array("\n","\r","\t"), '', $css);
              
                  if ( preg_match( '%[\\(&]|/\*%', $css ) ) // remove any inline css containing \ ( & or comments
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/kses.php - About 1 hr to fix

                Method get_the_content has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function get_the_content($more_link_text = null, $stripteaser = 0) {
                    global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow;
                
                    if ( null === $more_link_text )
                        $more_link_text = __( '(more...)' );
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/post-template.php - About 1 hr to fix

                  Method render_content has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function render_content() {
                          $src = $this->value();
                          if ( isset( $this->get_url ) )
                              $src = call_user_func( $this->get_url, $src );
                  
                  
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-control.php - About 1 hr to fix

                    Method array_unique has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function array_unique($array)
                        {
                            if (version_compare(PHP_VERSION, '5.2', '>='))
                            {
                                return array_unique($array);
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

                      Method switch_to_blog has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function switch_to_blog( $new_blog, $deprecated = null ) {
                          global $wpdb, $wp_roles;
                      
                          if ( empty( $new_blog ) )
                              $new_blog = $GLOBALS['blog_id'];
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/ms-blogs.php - About 1 hr to fix

                        Method restore_current_blog has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function restore_current_blog() {
                            global $wpdb, $wp_roles;
                        
                            if ( empty( $GLOBALS['_wp_switched_stack'] ) )
                                return false;
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/ms-blogs.php - About 1 hr to fix

                          Method _changed has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function _changed( $orig, $final ) {
                                  $r = '';
                          
                                  // Does the aforementioned additional processing
                                  // *_matches tell what rows are "the same" in orig and final.  Those pairs will be diffed to get word changes
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/wp-diff.php - About 1 hr to fix

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

                                    public void Handle(ParticipantGameCompleted e)
                                    {
                                        var divisionName = SimplifyDivision(e.Division);
                                        var year = "2014";
                                        if (MatchYearLookup.ContainsKey(e.Id))
                            Severity: Minor
                            Found in ReadModels/StatisticsQueries.cs - About 1 hr to fix

                              Function $get has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                this.$get = function() {
                                  var $log = {
                                    log: function() { $log.log.logs.push(concat([], arguments, 0)); },
                                    warn: function() { $log.warn.logs.push(concat([], arguments, 0)); },
                                    info: function() { $log.info.logs.push(concat([], arguments, 0)); },
                              Severity: Minor
                              Found in Web.Admin/z-scripts/angular-mocks.js - About 1 hr to fix

                                Function _readEntryAsFiles has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function _readEntryAsFiles(entry, callback){
                                        if( !entry ){
                                            // error
                                            callback('invalid entry');
                                        }
                                Severity: Minor
                                Found in Web.Admin/z-scripts/FileAPI.js - About 1 hr to fix

                                  Function AppInsights has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                              function AppInsights(config) {
                                                  var _this = this;
                                                  this.config = config || {};
                                                  var defaults = AppInsights.defaultConfig;
                                                  if (defaults !== undefined) {
                                  Severity: Minor
                                  Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 1 hr to fix

                                    Function _setupRemoveUI has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            _setupRemoveUI: function() {
                                                var self = this, $removeBtn, replaceDeleteWithRemove;
                                    
                                                // Configure remove button
                                                $removeBtn = this.container.find( 'a.widget-control-remove' );
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-admin/js/customize-widgets.js - About 1 hr to fix

                                      Function createStates has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              createStates: function() {
                                                  this.states.add([
                                                      new media.controller.VideoDetails({
                                                          media: this.media
                                                      }),
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/js/media-audiovideo.js - About 1 hr to fix

                                        Function getAnchorPosition has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function getAnchorPosition(anchorname) {
                                            // This function will return an Object with x and y properties
                                            var useWindow=false;
                                            var coordinates=new Object();
                                            var x=0,y=0;
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/js/colorpicker.dev.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language