CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method twentytwelve_widgets_init has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function twentytwelve_widgets_init() {
    register_sidebar( array(
        'name' => __( 'Main Sidebar', 'twentytwelve' ),
        'id' => 'sidebar-1',
        'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ),

    Method do_trackbacks has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function do_trackbacks($post_id) {
        global $wpdb;
    
        $post = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d", $post_id) );
        $to_ping = get_to_ping($post_id);
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/comment.php - About 1 hr to fix

      Method wp_deleteTerm has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function wp_deleteTerm( $args ) {
              if ( ! $this->minimum_args( $args, 5 ) )
                  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 _prepare_comment has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            protected function _prepare_comment( $comment ) {
                // Format page date.
                $comment_date = $this->_convert_date( $comment->comment_date );
                $comment_date_gmt = $this->_convert_date_gmt( $comment->comment_date_gmt, $comment->comment_date );
        
        
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

          Method blogger_newPost has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function blogger_newPost($args) {
          
                  $this->escape($args);
          
                  $blog_ID    = (int) $args[1]; /* though we don't use it yet */
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

            Method APICPictureTypeLookup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function APICPictureTypeLookup($index, $returnarray=false) {
                    static $APICPictureTypeLookup = array(
                        0x00 => 'Other',
                        0x01 => '32x32 pixels \'file icon\' (PNG only)',
                        0x02 => 'Other file icon',
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.id3v2.php - About 1 hr to fix

              Method wp_unique_term_slug has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function wp_unique_term_slug($slug, $term) {
                  global $wpdb;
              
                  // If the taxonomy supports hierarchy and the term has a parent, make the slug unique
                  // by incorporating parent slugs.
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 hr to fix

                Method HashPassword has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function HashPassword($password)
                    {
                        $random = '';
                
                        if (CRYPT_BLOWFISH == 1 && !$this->portable_hashes) {
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/class-phpass.php - About 1 hr to fix

                  Method multi_resize has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function multi_resize( $sizes ) {
                          $metadata = array();
                          $orig_size = $this->size;
                  
                          foreach ( $sizes as $size => $size_data ) {
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/class-wp-image-editor-gd.php - About 1 hr to fix

                    Method get has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function get ($msgNum) {
                            //  Retrieve the specified msg number. Returns an array
                            //  where each line of the msg is an array element.
                    
                            if(!isset($this->FP))
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/class-pop3.php - About 1 hr to fix

                      Method WP_SimplePie_File has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function WP_SimplePie_File($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false) {
                              $this->url = $url;
                              $this->timeout = $timeout;
                              $this->redirects = $redirects;
                              $this->headers = $headers;
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/class-feed.php - About 1 hr to fix

                        Method get_category_by_path has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function get_category_by_path( $category_path, $full_match = true, $output = OBJECT ) {
                            $category_path = rawurlencode( urldecode( $category_path ) );
                            $category_path = str_replace( '%2F', '/', $category_path );
                            $category_path = str_replace( '%20', ' ', $category_path );
                            $category_paths = '/' . trim( $category_path, '/' );
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/category.php - About 1 hr to fix

                          Method get_user_by has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function get_user_by($field, $value) {
                              global $wpdb;
                          
                              switch ($field) {
                                  case 'id':
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/pluggable.php - About 1 hr to fix

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

                                function set_host($host)
                                {
                                    if ($host === null || $host === '')
                                    {
                                        $this->host = null;
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

                              Method delete_option has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function delete_option( $option ) {
                                  global $wpdb;
                              
                                  $option = trim( $option );
                                  if ( empty( $option ) )
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/option.php - About 1 hr to fix

                                Method parse has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function parse() {
                                        // first remove the XML declaration
                                        // this method avoids the RAM usage of preg_replace on very large messages
                                        $header = preg_replace( '/<\?xml.*?\?'.'>/', '', substr( $this->message, 0, 100 ), 1 );
                                        $this->message = substr_replace($this->message, $header, 0, 100);
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/class-IXR.php - About 1 hr to fix

                                  Method calculateType has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function calculateType() {
                                          if ($this->data === true || $this->data === false) {
                                              return 'boolean';
                                          }
                                          if (is_integer($this->data)) {
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/class-IXR.php - About 1 hr to fix

                                    Method apply_filters has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function apply_filters($tag, $value) {
                                        global $wp_filter, $merged_filters, $wp_current_filter;
                                    
                                        $args = array();
                                        $wp_current_filter[] = $tag;
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/plugin.php - About 1 hr to fix

                                      Method graceful_fail has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function graceful_fail( $message ) {
                                          _deprecated_function( __FUNCTION__, '3.0', 'wp_die()' );
                                          $message = apply_filters( 'graceful_fail', $message );
                                          $message_template = apply_filters( 'graceful_fail_template',
                                      '<!DOCTYPE html>
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/ms-deprecated.php - About 1 hr to fix

                                        Method is_blog_installed has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function is_blog_installed() {
                                            global $wpdb;
                                        
                                            // Check cache first. If options table goes away and we have true cached, oh well.
                                            if ( wp_cache_get( 'is_blog_installed' ) )
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/functions.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language