CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method get_sample_permalink_html has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) {
    $post = &get_post($id);
    list($permalink, $post_name) = get_sample_permalink($post->ID, $new_title, $new_slug);

    if ( 'publish' == $post->post_status ) {
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-admin/includes/post.php - About 1 hr to fix

    Method wp_generate_attachment_metadata has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function wp_generate_attachment_metadata( $attachment_id, $file ) {
        $attachment = get_post( $attachment_id );
    
        $metadata = array();
        if ( preg_match('!^image/!', get_post_mime_type( $attachment )) && file_is_displayable_image($file) ) {
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/includes/image.php - About 1 hr to fix

      Method send_confirmation_on_profile_email has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function send_confirmation_on_profile_email() {
          global $errors, $wpdb;
          $current_user = wp_get_current_user();
          if ( ! is_object($errors) )
              $errors = new WP_Error();
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-admin/includes/ms.php - About 1 hr to fix

        Method wp_ajax_add_tag has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function wp_ajax_add_tag() {
            global $wp_list_table;
        
            check_ajax_referer( 'add-tag', '_wpnonce_add-tag' );
            $post_type = !empty($_POST['post_type']) ? $_POST['post_type'] : 'post';
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

          Method step2 has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function step2() {
                  set_time_limit( 0 );
                  update_option( 'ljapi_step', 2 );
                  $this->username = get_option( 'ljapi_username' );
                  $this->password = get_option( 'ljapi_password' );
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/import/livejournal.php - About 1 hr to fix

            Method greet has 40 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function greet() {
                    $this->header();
            ?>
            <p><?php _e('This is a basic GreyMatter to WordPress import script.') ?></p>
            <p><?php _e('What it does:') ?></p>
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/import/greymatter.php - About 1 hr to fix

              Method signup_another_blog has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) {
                  $current_user = wp_get_current_user();
              
                  if ( ! is_wp_error($errors) ) {
                      $errors = new WP_Error();
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-signup.php - About 1 hr to fix

                Method wp_getTerms has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function wp_getTerms( $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 wp_getUsers has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function wp_getUsers( $args ) {
                          if ( ! $this->minimum_args( $args, 3 ) )
                              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 saveAttachment has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function saveAttachment($name, $offset, $length, $image_mime=null) {
                            try {
                    
                                // do not extract at all
                                if ($this->getid3->option_save_attachments === getID3::ATTACHMENTS_NONE) {
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.php - About 1 hr to fix

                      Method query has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function query() {
                              $args = func_get_args();
                              $method = array_shift($args);
                              $request = new IXR_Request($method, $args);
                              $xml = $request->getXml();
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/class-wp-http-ixr-client.php - About 1 hr to fix

                        Method update_callback has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function update_callback( $widget_args = 1 ) {
                                global $wp_registered_widgets;
                        
                                if ( is_numeric($widget_args) )
                                    $widget_args = array( 'number' => $widget_args );
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/widgets.php - About 1 hr to fix

                          Method wp_convert_widget_settings has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function wp_convert_widget_settings($base_name, $option_name, $settings) {
                              // This test may need expanding.
                              $single = $changed = false;
                              if ( empty($settings) ) {
                                  $single = true;
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/widgets.php - About 1 hr to fix

                            Method find has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function find($type = SIMPLEPIE_LOCATOR_ALL, &$working)
                                {
                                    if ($this->is_feed($this->file))
                                    {
                                        return $this->file;
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Locator.php - About 1 hr to fix

                              Method wp_admin_bar_wp_menu has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function wp_admin_bar_wp_menu( $wp_admin_bar ) {
                                  $wp_admin_bar->add_menu( array(
                                      'id'    => 'wp-logo',
                                      'title' => '<span class="ab-icon"></span>',
                                      'href'  => self_admin_url( 'about.php' ),
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/admin-bar.php - About 1 hr to fix

                                Method dynamic_sidebar has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function dynamic_sidebar($index = 1) {
                                    global $wp_registered_sidebars, $wp_registered_widgets;
                                
                                    if ( is_int($index) ) {
                                        $index = "sidebar-$index";
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/widgets.php - About 1 hr to fix

                                  Method get_description has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function get_description()
                                      {
                                          if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'subtitle'))
                                          {
                                              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 query has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function query($query) {
                                            if ( ! $this->ready )
                                                return false;
                                    
                                            // filter the query, if filters are available
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/wp-db.php - About 1 hr to fix

                                      Method unknown has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function unknown()
                                          {
                                              $ws = strspn($this->file->body, "\x09\x0A\x0B\x0C\x0D\x20");
                                              if (strtolower(substr($this->file->body, $ws, 14)) === '<!doctype html'
                                                  || strtolower(substr($this->file->body, $ws, 5)) === '<html'

                                        Method append has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function append($el, $text) {
                                                if (!$el) {
                                                    return;
                                                }
                                                if ( $this->current_namespace )
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/rss.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language