CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method months_dropdown has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function months_dropdown( $post_type ) {
        global $wpdb, $wp_locale;

        $months = $wpdb->get_results( $wpdb->prepare( "
            SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-admin/includes/class-wp-list-table.php - About 1 hr to fix

    Method link_categories_meta_box has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      Method start_element has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function start_element($parser, $name, $attrs) {
      
              $tag = array_pop(split(":", $name));
      
              array_unshift($this->ns_contexts, $this->ns_decls);
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-admin/import/blogger.php - About 1 hr to fix

        Method check_column has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function check_column($table_name, $col_name, $col_type, $is_null = null, $key = null, $default = null, $extra = null) {
            global $wpdb, $debug;
            $diffs = 0;
            $results = $wpdb->get_results("DESC $table_name");
        
        
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/install-helper.php - About 1 hr to fix

          Method press_it has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function press_it() {
              // define some basic variables
              $quick['post_status'] = 'draft'; // set as draft first
              $quick['post_category'] = isset($_POST['post_category']) ? $_POST['post_category'] : null;
              $quick['tax_input'] = isset($_POST['tax_input']) ? $_POST['tax_input'] : null;
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/press-this.php - About 1 hr to fix

            Method blogger_editPost has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Method handle_upload has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function handle_upload() {
              
                      if ( empty($_FILES) )
                          return;
              
              
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/custom-background.php - About 1 hr to fix

                Method twentythirteen_the_attached_image has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function twentythirteen_the_attached_image() {
                    /**
                     * Filter the image attachment size to use.
                     *
                     * @since Twenty thirteen 1.0

                  Method display_configuration_page has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static function display_configuration_page() {
                          $api_key      = Akismet::get_api_key();
                          $akismet_user = self::get_akismet_user( $api_key );
                          $stat_totals  = self::get_stats( $api_key );
                          

                    Method hello_dolly_get_lyric has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function hello_dolly_get_lyric() {
                        /** These are the lyrics to Hello Dolly */
                        $lyrics = "Hello, Dolly
                    Well, hello, Dolly
                    It's so nice to have you back where you belong
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-content/plugins/hello.php - About 1 hr to fix

                      Method twentytwelve_admin_header_style has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function twentytwelve_admin_header_style() {
                      ?>
                          <style type="text/css" id="twentytwelve-admin-header-css">
                          .appearance_page_custom-header #headimg {
                              border: none;

                        Method customize_register has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public static function customize_register( $wp_customize ) {
                                $wp_customize->add_section( 'featured_content', array(
                                    'title'          => __( 'Featured Content', 'twentyfourteen' ),
                                    'description'    => sprintf( __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
                                        esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),

                          Method submit_nonspam_comment has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public static function submit_nonspam_comment( $comment_id ) {
                                  global $wpdb, $current_user, $current_site;
                          
                                  $comment_id = (int) $comment_id;
                          
                          

                            Method wp_editPost has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function wp_editPost( $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 wp_getPageList has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function wp_getPageList($args) {
                                      global $wpdb;
                              
                                      $this->escape($args);
                              
                              
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

                                Method frameSizeLookup has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public static function frameSizeLookup($frmsizecod, $fscod) {
                                        $padding     = (bool) ($frmsizecod % 2);
                                        $framesizeid =   floor($frmsizecod / 2);
                                
                                        static $frameSizeLookup = array();
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.ac3.php - About 1 hr to fix

                                  Method get_iri has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function get_iri()
                                      {
                                          if (!$this->is_valid())
                                          {
                                              return false;
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/IRI.php - About 1 hr to fix

                                    Method change_encoding has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public static function change_encoding($data, $input, $output)
                                        {
                                            $input = SimplePie_Misc::encoding($input);
                                            $output = SimplePie_Misc::encoding($output);
                                    
                                    
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php - About 1 hr to fix

                                      Method processHeaders has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function processHeaders($headers) {
                                              // split headers, one per array element
                                              if ( is_string($headers) ) {
                                                  // tolerate line terminator: CRLF = LF (RFC 2616 19.3)
                                                  $headers = str_replace("\r\n", "\n", $headers);
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/http.php - About 1 hr to fix

                                        Method _save has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            protected function _save( $image, $filename = null, $mime_type = null ) {
                                                list( $filename, $extension, $mime_type ) = $this->get_output_format( $filename, $mime_type );
                                        
                                                if ( ! $filename )
                                                    $filename = $this->generate_filename( null, null, $extension );
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/class-wp-image-editor-gd.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language