CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method wp_ajax_save_attachment_compat has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function wp_ajax_save_attachment_compat() {
    if ( ! isset( $_REQUEST['id'] ) )
        wp_send_json_error();

    if ( ! $id = absint( $_REQUEST['id'] ) )
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

    Method _post_states has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function _post_states($post) {
        $post_states = array();
        if ( isset($_GET['post_status']) )
            $post_status = $_GET['post_status'];
        else
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

      Method upgrade has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method post_categories_meta_box has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function post_categories_meta_box($post) {
        ?>
        <ul id="category-tabs">
            <li class="tabs"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li>
            <li class="hide-if-no-js"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/includes/meta-boxes.php - About 1 hr to fix

          Method extra_tablenav has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function extra_tablenav( $which ) {
                  global $cat;
          ?>
                  <div class="alignleft actions">
          <?php

            Method dispatch has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function dispatch () {
                    if ( empty( $_GET['step'] ) ) {
                        $step = 0;
                    } else {
                        $step = (int) $_GET['step'];
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/import/utw.php - About 1 hr to fix

              Method display_setup_form has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function display_setup_form( $error = null ) {
                  // Ensure that Blogs appear in search engines by default
                  $blog_public = 1;
                  if ( isset($_POST) && !empty($_POST) ) {
                      $blog_public = isset($_POST['blog_public']);
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/install.php - About 1 hr to fix

                Method wp_getPages has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function wp_getPages($args) {
                        $this->escape($args);
                
                        $blog_id    = (int) $args[0];
                        $username    = $args[1];
                Severity: Minor
                Found in Web.Admin/2014/wordpress/xmlrpc.php - About 1 hr to fix

                  Method get_file has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function get_file($postID) {
                  
                          // check for not found
                          global $entry;
                          $this->set_current_entry($postID);
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-app.php - About 1 hr to fix

                    Method wp_insert_comment has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function wp_insert_comment($commentdata) {
                        global $wpdb;
                        extract(stripslashes_deep($commentdata), EXTR_SKIP);
                    
                        if ( ! isset($comment_author_IP) )
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/comment.php - About 1 hr to fix

                      Method get_the_taxonomies has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function get_the_taxonomies($post = 0) {
                          if ( is_int($post) )
                              $post =& get_post($post);
                          elseif ( !is_object($post) )
                              $post =& $GLOBALS['post'];
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 hr to fix

                        Method APEtagItemIsUTF8Lookup has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function APEtagItemIsUTF8Lookup($itemkey) {
                                static $APEtagItemIsUTF8Lookup = array(
                                    'title',
                                    'subtitle',
                                    'artist',
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.apetag.php - About 1 hr to fix

                          Method applicationIDLookup has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public static function applicationIDLookup($applicationid) {
                                  // http://flac.sourceforge.net/id.html
                                  static $lookup = array(
                                      0x41544348 => 'FlacFile',                                                                           // "ATCH"
                                      0x42534F4C => 'beSolo',                                                                             // "BSOL"
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.flac.php - About 1 hr to fix

                            Method QuicktimeStoreFrontCodeLookup has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function QuicktimeStoreFrontCodeLookup($sfid) {
                                    static $QuicktimeStoreFrontCodeLookup = array();
                                    if (empty($QuicktimeStoreFrontCodeLookup)) {
                                        $QuicktimeStoreFrontCodeLookup[143460] = 'Australia';
                                        $QuicktimeStoreFrontCodeLookup[143445] = 'Austria';

                              Method output_javascript has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public static function output_javascript()
                                  {
                                      if (function_exists('ob_gzhandler'))
                                      {
                                          ob_start('ob_gzhandler');
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php - About 1 hr to fix

                                Method fix_protocol has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public static function fix_protocol($url, $http = 1)
                                    {
                                        $url = SimplePie_Misc::normalize_url($url);
                                        $parsed = SimplePie_Misc::parse_url($url);
                                        if ($parsed['scheme'] !== '' && $parsed['scheme'] !== 'http' && $parsed['scheme'] !== 'https')
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php - About 1 hr to fix

                                  Method _wp_auto_add_pages_to_menu has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function _wp_auto_add_pages_to_menu( $new_status, $old_status, $post ) {
                                      if ( 'publish' != $new_status || 'publish' == $old_status || 'page' != $post->post_type )
                                          return;
                                      if ( ! empty( $post->post_parent ) )
                                          return;
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/nav-menu.php - About 1 hr to fix

                                    Method form has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function form( $instance ) {
                                    
                                            //Defaults
                                            $instance = wp_parse_args( (array) $instance, array( 'images' => true, 'name' => true, 'description' => false, 'rating' => false, 'category' => false ) );
                                            $link_cats = get_terms( 'link_category');
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/default-widgets.php - About 1 hr to fix

                                      Method MagpieRSS has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function MagpieRSS ($source) {
                                      
                                              # if PHP xml isn't compiled in, die
                                              #
                                              if ( !function_exists('xml_parser_create') )
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/rss.php - About 1 hr to fix

                                        Method wp_ajax_update_widget has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function wp_ajax_update_widget() {
                                        
                                                if ( ! is_user_logged_in() ) {
                                                    wp_die( 0 );
                                                }
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-widgets.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language