CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method list_meta has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function list_meta( $meta ) {
    // Exit if no meta
    if ( ! $meta ) {
        echo '
<table id="list-table" style="display: none;">
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

    Method _list_meta_row has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function _list_meta_row( $entry, &$count ) {
        static $update_nonce = false;
        if ( !$update_nonce )
            $update_nonce = wp_create_nonce( 'add-meta' );
    
    
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

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

          function after() {
              $this->decrement_update_count( 'theme' );
      
              $update_actions = array();
              if ( ! empty( $this->upgrader->result['destination_name'] ) && $theme_info = $this->upgrader->theme_info() ) {

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

            function get($remotefile, $localfile=NULL, $rest=0) {
                if(is_null($localfile)) $localfile=$remotefile;
                if (@file_exists($localfile)) $this->SendMSG("Warning : local file will be overwritten");
                $fp = @fopen($localfile, "w");
                if (!$fp) {
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/includes/class-ftp.php - About 1 hr to fix

          Method wp_get_nav_menu_to_edit has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function wp_get_nav_menu_to_edit( $menu_id = 0 ) {
              $menu = wp_get_nav_menu_object( $menu_id );
          
              // If the menu exists, get its items.
              if ( is_nav_menu( $menu ) ) {
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/includes/nav-menu.php - About 1 hr to fix

            Method wp_ajax_get_comments has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function wp_ajax_get_comments( $action ) {
                global $wp_list_table, $post_id;
                if ( empty( $action ) )
                    $action = 'get-comments';
            
            
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

              Method _page_rows has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_page ) {
              
                      if ( ! isset( $children_pages[$parent] ) )
                          return;
              
              

                Method wp_ajax_menu_get_metabox has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function wp_ajax_menu_get_metabox() {
                    if ( ! current_user_can( 'edit_theme_options' ) )
                        wp_die( -1 );
                
                    require_once ABSPATH . 'wp-admin/includes/nav-menu.php';
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                  Method load_image_to_edit has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function load_image_to_edit($post_id, $mime_type, $size = 'full') {
                      $filepath = get_attached_file($post_id);
                  
                      if ( $filepath && file_exists($filepath) ) {
                          if ( 'full' != $size && ( $data = image_get_intermediate_size($post_id, $size) ) )
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/includes/image-edit.php - About 1 hr to fix

                    Method put_post has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function put_post($postID) {
                            // checked for valid content-types (atom+xml)
                            // quick check and exit
                            $this->get_accepted_content_type($this->atom_content_types);
                    
                    
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-app.php - About 1 hr to fix

                      Method submit_spam_comment has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Method get_comment has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function &get_comment(&$comment, $output = OBJECT) {
                            global $wpdb;
                            $null = null;
                        
                            if ( empty($comment) ) {
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/comment.php - About 1 hr to fix

                          Method CleanUp has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private function CleanUp() {
                          
                                  // remove possible empty keys
                                  $AVpossibleEmptyKeys = array('dataformat', 'bits_per_sample', 'encoder_options', 'streams', 'bitrate');
                                  foreach ($AVpossibleEmptyKeys as $dummy => $key) {
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.php - About 1 hr to fix

                            Method ParseRIFFdata has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function ParseRIFFdata(&$RIFFdata) {
                                    $info = &$this->getid3->info;
                                    if ($RIFFdata) {
                                        $tempfile = tempnam(GETID3_TEMP_DIR, 'getID3');
                                        $fp_temp  = fopen($tempfile, 'wb');

                              Method crypt_private has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function crypt_private($password, $setting)
                                  {
                                      $output = '*0';
                                      if (substr($setting, 0, 2) == $output)
                                          $output = '*1';
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/class-phpass.php - About 1 hr to fix

                                Method split_ns has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function split_ns($string)
                                    {
                                        static $cache = array();
                                        if (!isset($cache[$string]))
                                        {
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Parser.php - About 1 hr to fix

                                  Method chunked has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      protected function chunked()
                                      {
                                          if (!preg_match('/^([0-9a-f]+)[^\r\n]*\r\n/i', trim($this->body)))
                                          {
                                              $this->state = 'emit';
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/HTTP/Parser.php - About 1 hr to fix

                                    Method __construct has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function __construct($link = null, $type = null, $length = null, $javascript = null, $bitrate = null, $captions = null, $categories = null, $channels = null, $copyright = null, $credits = null, $description = null, $duration = null, $expression = null, $framerate = null, $hashes = null, $height = null, $keywords = null, $lang = null, $medium = null, $player = null, $ratings = null, $restrictions = null, $samplingrate = null, $thumbnails = null, $title = null, $width = null)
                                        {
                                            $this->bitrate = $bitrate;
                                            $this->captions = $captions;
                                            $this->categories = $categories;
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Enclosure.php - About 1 hr to fix

                                      Method get_title has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function get_title()
                                          {
                                              if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'title'))
                                              {
                                                  return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Source.php - About 1 hr to fix

                                        Method widget has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function widget($args, $instance) {
                                                $cache = wp_cache_get('widget_recent_posts', 'widget');
                                        
                                                if ( !is_array($cache) )
                                                    $cache = array();
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/default-widgets.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language