CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

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 toggleToolbars has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function toggleToolbars( state ) {
            var iframe, initial, toolbars,
                pixels = 0;
    
            initial = ( state === 'hide' );

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

          SWFUpload.speed.formatUnits = function (baseNumber, unitDivisors, unitLabels, singleFractional) {
              var i, unit, unitDivisor, unitLabel;
      
              if (baseNumber === 0) {
                  return "0 " + unitLabels[unitLabels.length - 1];

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

          initialize: function(testcases) {
            this.options = Object.extend({
              testLog: 'testlog'
            }, arguments[1] || {});
            this.options.resultsURL = this.parseResultsURLQueryParameter();
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/unittest.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/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

            Method errorName has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function errorName($p_with_code=false)
              {
                $v_name = array ( PCLZIP_ERR_NO_ERROR => 'PCLZIP_ERR_NO_ERROR',
                                  PCLZIP_ERR_WRITE_OPEN_FAIL => 'PCLZIP_ERR_WRITE_OPEN_FAIL',
                                  PCLZIP_ERR_READ_OPEN_FAIL => 'PCLZIP_ERR_READ_OPEN_FAIL',
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 hr to fix

              Method upgrade_110 has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function upgrade_110() {
                  global $wpdb;
              
                  // Set user_nicename.
                  $users = $wpdb->get_results("SELECT ID, user_nickname, user_nicename FROM $wpdb->users");
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 1 hr to fix

                Method _rows has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function _rows( $taxonomy, $terms, &$children, $start, $per_page, &$count, $parent = 0, $level = 0 ) {
                
                        $end = $start + $per_page;
                
                        foreach ( $terms as $key => $term ) {

                  Method after has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function after() {
                          if ( empty($this->upgrader->result['destination_name']) )
                              return;
                  
                          $theme_info = $this->upgrader->theme_info();

                    Method post_preview has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function post_preview() {
                    
                        $post_ID = (int) $_POST['post_ID'];
                        if ( $post_ID < 1 )
                            wp_die( __('Preview not available. Please save as a draft first.') );
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-admin/includes/post.php - About 1 hr to fix

                      Method display_rows_or_placeholder has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function display_rows_or_placeholder() {
                              $taxonomy = $this->screen->taxonomy;
                      
                              $args = wp_parse_args( $this->callback_args, array(
                                  'page' => 1,

                        Method _cat_rows has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function _cat_rows( $parent = 0, $level = 0, $categories, &$children, $page = 1, $per_page = 20, &$count ) {
                        
                            $start = ($page - 1) * $per_page;
                            $end = $start + $per_page;
                            ob_start();
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

                          Method tags_form has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function tags_form() { ?>
                          
                          <script type="text/javascript">
                          /* <![CDATA[ */
                          var checktags = "false";
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/import/wp-cat2tag.php - About 1 hr to fix

                            Method handle_request has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function handle_request() {
                                    global $always_authenticate;
                            
                                    if( !empty( $_SERVER['ORIG_PATH_INFO'] ) )
                                        $path = $_SERVER['ORIG_PATH_INFO'];
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-app.php - About 1 hr to fix

                              Method twentyfourteen_paging_nav has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function twentyfourteen_paging_nav() {
                                  // Don't print empty markup if there's only one page.
                                  if ( $GLOBALS['wp_query']->max_num_pages < 2 ) {
                                      return;
                                  }

                                Method discover_pingback_server_uri has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function discover_pingback_server_uri($url, $deprecated = 2048) {
                                
                                    $pingback_str_dquote = 'rel="pingback"';
                                    $pingback_str_squote = 'rel=\'pingback\'';
                                
                                
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/comment.php - About 1 hr to fix

                                  Method wp_editProfile has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function wp_editProfile( $args ) {
                                          if ( ! $this->minimum_args( $args, 4 ) )
                                              return $this->error;
                                  
                                          $this->escape( $args );
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

                                    Method feed_links_extra has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function feed_links_extra( $args ) {
                                        $defaults = array(
                                            /* translators: Separator between blog name and feed type in feed links */
                                            'separator'   => _x('&raquo;', 'feed link'),
                                            /* translators: 1: blog name, 2: separator(raquo), 3: post title */
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/general-template.php - About 1 hr to fix

                                      Method pingback has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function pingback($content, $post_ID) {
                                          global $wp_version;
                                          include_once(ABSPATH . WPINC . '/class-IXR.php');
                                      
                                          // original code by Mort (http://mort.mine.nu:8080)
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/comment.php - About 1 hr to fix

                                        Method iconv_fallback_utf8_utf16be has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public static function iconv_fallback_utf8_utf16be($string, $bom=false) {
                                                $newcharstring = '';
                                                if ($bom) {
                                                    $newcharstring .= "\xFE\xFF";
                                                }
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.lib.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language