CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

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

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

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

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

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

      function global_terms( $term_id, $deprecated = '' ) {
          global $wpdb;
          static $global_terms_recurse = null;
      
          if ( !global_terms_enabled() )
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/ms-functions.php - About 1 hr to fix

        Function getFiles has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    getFiles: function (input, filter, callback){
                        var files = [];
        
                        if( callback ){
                            api.filterFiles(api.getFiles(input), filter, callback);
        Severity: Minor
        Found in Web.Admin/z-scripts/FileAPI.js - About 1 hr to fix

          Function animate has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            .config(['$provide', function($provide) {
          
              var reflowQueue = [];
              $provide.value('$$animateReflow', function(fn) {
                var index = reflowQueue.length;
          Severity: Minor
          Found in Web.Admin/z-scripts/angular-mocks.js - About 1 hr to fix

            Function dump has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            angular.mock.dump = function(object) {
              return serialize(object);
            
              function serialize(object) {
                var out;
            Severity: Minor
            Found in Web.Admin/z-scripts/angular-mocks.js - About 1 hr to fix

              Function load has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              Galleria.prototype.load = function() {
              
                  // pass if no data is provided or facebook option not found
                  if ( arguments.length || typeof this._options.facebook !== 'string' ) {
                      load.apply( this, Galleria.utils.array( arguments ) );
              Severity: Minor
              Found in Web.Admin/2015/js/galleria/plugins/facebook/galleria.facebook.js - About 1 hr to fix

                Function PopupWindow has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function PopupWindow() {
                    if (!window.popupWindowIndex) { window.popupWindowIndex = 0; }
                    if (!window.popupWindowObjects) { window.popupWindowObjects = new Array(); }
                    if (!window.listenerAttached) {
                        window.listenerAttached = true;
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/js/colorpicker.dev.js - About 1 hr to fix

                  Function prepareMediaItemInit has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function prepareMediaItemInit(fileObj) {
                      var item = jQuery('#media-item-' + fileObj.id);
                      // Clone the thumbnail as a "pinkynail" -- a tiny image to the left of the filename
                      jQuery('.thumbnail', item).clone().attr('class', 'pinkynail toggle').prependTo(item);
                  
                  
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/js/plupload/handlers.js - About 1 hr to fix

                    Function update has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        update : function() {
                            var f = document.forms[0], ed = tinyMCEPopup.editor, e, b;
                    
                            tinyMCEPopup.restoreSelection();
                            e = ed.dom.getParent(ed.selection.getNode(), 'A');

                      Function Coords has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      opt.keySupport=$.browser.msie?false:true;var defaults={trackDocument:false,baseClass:'jcrop',addClass:null,bgColor:'black',bgOpacity:.6,borderOpacity:.4,handleOpacity:.5,handlePad:5,handleSize:9,handleOffset:5,edgeMargin:14,aspectRatio:0,keySupport:true,cornerHandles:true,sideHandles:true,drawBorders:true,dragEdges:true,boxWidth:0,boxHeight:0,boundary:8,animationDelay:20,swingSpeed:3,allowSelect:true,allowMove:true,allowResize:true,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){}};var options=defaults;setOptions(opt);var $origimg=$(obj);var $img=$origimg.clone().removeAttr('id').css({position:'absolute'});$img.width($origimg.width());$img.height($origimg.height());$origimg.after($img).hide();presize($img,options.boxWidth,options.boxHeight);var boundx=$img.width(),boundy=$img.height(),$div=$('<div />').width(boundx).height(boundy).addClass(cssClass('holder')).css({position:'relative',backgroundColor:options.bgColor}).insertAfter($origimg).append($img);;if(options.addClass)$div.addClass(options.addClass);var $img2=$('<img />').attr('src',$img.attr('src')).css('position','absolute').width(boundx).height(boundy);var $img_holder=$('<div />').width(pct(100)).height(pct(100)).css({zIndex:310,position:'absolute',overflow:'hidden'}).append($img2);var $hdl_holder=$('<div />').width(pct(100)).height(pct(100)).css('zIndex',320);var $sel=$('<div />').css({position:'absolute',zIndex:300}).insertBefore($img).append($img_holder,$hdl_holder);var bound=options.boundary;var $trk=newTracker().width(boundx+(bound*2)).height(boundy+(bound*2)).css({position:'absolute',top:px(-bound),left:px(-bound),zIndex:290}).mousedown(newSelection);var xlimit,ylimit,xmin,ymin;var xscale,yscale,enabled=true;var docOffset=getPos($img),btndown,lastcurs,dimmed,animating,shift_down;var Coords=function()
                      {var x1=0,y1=0,x2=0,y2=0,ox,oy;function setPressed(pos)
                      {var pos=rebound(pos);x2=x1=pos[0];y2=y1=pos[1];};function setCurrent(pos)
                      {var pos=rebound(pos);ox=pos[0]-x2;oy=pos[1]-y2;x2=pos[0];y2=pos[1];};function getOffset()
                      {return[ox,oy];};function moveOffset(offset)
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js - About 1 hr to fix

                        Function onLoad has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        },onLoad:function(){
                        var _f="imgCrop_";
                        var _10=this.img.parentNode;
                        var _11="";
                        if(this.isOpera8){
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/js/crop/cropper.js - About 1 hr to fix

                          Function load has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          Galleria.prototype.load = function() {
                          
                              // pass if no data is provided or facebook option not found
                              if ( arguments.length || typeof this._options.facebook !== 'string' ) {
                                  load.apply( this, Galleria.utils.array( arguments ) );
                          Severity: Minor
                          Found in Web.Admin/Content/galleria/plugins/facebook/galleria.facebook.js - About 1 hr to fix

                            Function initialize has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function initialize() {
                                        if ( typeof window.pagenow === 'string' ) {
                                            settings.screenId = window.pagenow;
                                        }
                            
                            
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/js/heartbeat.js - About 1 hr to fix

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

                              function install_themes_dashboard() {
                                  install_theme_search_form();
                              ?>
                              <h4><?php _e('Feature Filter') ?></h4>
                              <form method="post" action="<?php echo admin_url( 'theme-install.php?tab=search' ); ?>">
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/theme-install.php - About 1 hr to fix

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

                                    function print_column_headers( $with_id = true ) {
                                        list( $columns, $hidden, $sortable ) = $this->get_column_info();
                                
                                        $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
                                        $current_url = remove_query_arg( 'paged', $current_url );
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/class-wp-list-table.php - About 1 hr to fix

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

                                  function choose_primary_blog() {
                                      ?>
                                      <table class="form-table">
                                      <tr>
                                      <?php /* translators: My sites label */ ?>
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-admin/includes/ms.php - About 1 hr to fix

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

                                        function bulk_upgrade($plugins) {
                                    
                                            $this->init();
                                            $this->bulk = true;
                                            $this->upgrade_strings();
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-admin/includes/class-wp-upgrader.php - About 1 hr to fix

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

                                          function create_post() {
                                              global $blog_id, $user_ID;
                                              $this->get_accepted_content_type($this->atom_content_types);
                                      
                                              $parser = new AtomParser();
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-app.php - About 1 hr to fix

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

                                            protected 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/SimplePie/IRI.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language