CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method numChannelsLookup has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function numChannelsLookup($index) {
        switch ($index) {
            case 0:
                return 1;
                break;
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.dts.php - About 1 hr to fix

    Method update_object_term_cache has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function update_object_term_cache($object_ids, $object_type) {
        if ( empty($object_ids) )
            return;
    
        if ( !is_array($object_ids) )
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 hr to fix

      Method bitrateLookup has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function bitrateLookup($index) {
              static $lookup = array(
                  0  => 32000,
                  1  => 56000,
                  2  => 64000,
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.dts.php - About 1 hr to fix

        Method MPEGaudioFrameLength has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public static function MPEGaudioFrameLength(&$bitrate, &$version, &$layer, $padding, &$samplerate) {
                static $AudioFrameLengthCache = array();
        
                if (!isset($AudioFrameLengthCache[$bitrate][$version][$layer][$padding][$samplerate])) {
                    $AudioFrameLengthCache[$bitrate][$version][$layer][$padding][$samplerate] = false;
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.mp3.php - About 1 hr to fix

          Method widget has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function widget($args, $instance) {
          
                  if ( isset($instance['error']) && $instance['error'] )
                      return;
          
          
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/default-widgets.php - About 1 hr to fix

            Method wp_default_styles has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function wp_default_styles( &$styles ) {
                // This checks to see if site_url() returns something and if it does not
                // then it assigns $guess_url to wp_guess_url(). Strange format, but it works.
                if ( ! $guessurl = site_url() )
                    $guessurl = wp_guess_url();
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/script-loader.php - About 1 hr to fix

              Method apop has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function apop ($login,$pass) {
                      //  Attempts an APOP login. If this fails, it'll
                      //  try a standard login. YOUR SERVER MUST SUPPORT
                      //  THE USE OF THE APOP COMMAND!
                      //  (apop is optional per rfc1939)
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/class-pop3.php - About 1 hr to fix

                Method wp_set_auth_cookie has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function wp_set_auth_cookie($user_id, $remember = false, $secure = '') {
                    if ( $remember ) {
                        $expiration = $expire = time() + apply_filters('auth_cookie_expiration', 1209600, $user_id, $remember);
                    } else {
                        $expiration = time() + apply_filters('auth_cookie_expiration', 172800, $user_id, $remember);
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/pluggable.php - About 1 hr to fix

                  Method auth_redirect has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function auth_redirect() {
                      // Checks if a user is logged in, if not redirects them to the login page
                  
                      if ( is_ssl() || force_ssl_admin() )
                          $secure = true;
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/pluggable.php - About 1 hr to fix

                    Method methodSignature has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function methodSignature($method) {
                            if (!$this->hasMethod($method)) {
                                return new IXR_Error(-32601, 'server error. requested method "'.$method.'" not specified.');
                            }
                            // We should be returning an array of types
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/class-IXR.php - About 1 hr to fix

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

                          function do_item( $handle, $group = false ) {
                              if ( !parent::do_item($handle) )
                                  return false;
                      
                              if ( 0 === $group && $this->groups[$handle] > 0 ) {
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/class.wp-scripts.php - About 1 hr to fix

                        Method get_links has 11 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name',
                                    $show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) {
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/deprecated.php - About 1 hr to fix

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

                            this.when = function (what, handler) {
                              var redirect, handlerIsString = isString(handler);
                              if (isString(what)) what = $urlMatcherFactory.compile(what);
                          
                              if (!handlerIsString && !isFunction(handler) && !isArray(handler))
                          Severity: Minor
                          Found in Web.Admin/z-scripts/angular-ui-router.js - About 1 hr to fix

                            Function MockXhr has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function MockXhr() {
                            
                              // hack for testing $http, $httpBackend
                              MockXhr.$$lastInstance = this;
                            
                            
                            Severity: Minor
                            Found in Web.Admin/z-scripts/angular-mocks.js - About 1 hr to fix

                              Function Video has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  Video = function( type, id ) {
                              
                                      for( var i=0; i<_video._inst.length; i++ ) {
                                          if ( _video._inst[i].id === id && _video._inst[i].type == type ) {
                                              return _video._inst[i];
                              Severity: Minor
                              Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 1 hr to fix

                                Function newsController has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

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

                                  Function _wp_Autop has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      _wp_Autop : function(pee) {
                                          var blocklist = 'table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6]|fieldset|legend';
                                  
                                          if ( pee.indexOf('<object') != -1 ) {
                                              pee = pee.replace(/<object[\s\S]+?<\/object>/g, function(a){
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-admin/js/editor.dev.js - About 1 hr to fix

                                    Function add has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        add: function( e, s ) {
                                            e = $(e);
                                    
                                            var list = $(this), old = false, _s = { pos: 0, id: 0, oldId: null }, ba, ref, color;
                                            if ( 'string' == typeof s ) { s = { what: s }; }
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/js/wp-lists.dev.js - About 1 hr to fix

                                      Function doResize has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function doResize() {
                                              if (abs(x2 - x1) < options.minWidth) {
                                                  x2 = x1 - options.minWidth * (x2 < x1 || -1);
                                      
                                                  if (x2 < left)

                                        Function initCrop has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            initCrop : function(postid, image, parent) {
                                                var t = this, selW = $('#imgedit-sel-width-' + postid),
                                                    selH = $('#imgedit-sel-height-' + postid);
                                        
                                                t.iasapi = $(image).imgAreaSelect({
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-admin/js/image-edit.dev.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language