CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method display_start_page has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function display_start_page() {
        if ( isset( $_GET['action'] ) ) {
            if ( $_GET['action'] == 'delete-key' ) {
                if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], self::NONCE ) )
                    delete_option( 'wordpress_api_key' );

    Method get_featured_post_ids has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function get_featured_post_ids() {
            // Return array of cached results if they exist.
            $featured_ids = get_transient( 'featured_content_ids' );
            if ( ! empty( $featured_ids ) ) {
                return array_map( 'absint', (array) $featured_ids );

      Method blogger_newPost has 28 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/xmlrpc.php - About 1 hr to fix

        Method wp_delete_comment has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function wp_delete_comment($comment_id) {
            global $wpdb;
            if (!$comment = get_comment($comment_id))
                return false;
        
        
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/comment.php - About 1 hr to fix

          Method wp_getUsersBlogs has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function wp_getUsersBlogs( $args ) {
                  // If this isn't on WPMU then just use blogger_getUsersBlogs
                  if ( !is_multisite() ) {
                      array_unshift( $args, 1 );
                      return $this->blogger_getUsersBlogs( $args );
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

            Method get_term_link has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function get_term_link( $term, $taxonomy ) {
                global $wp_rewrite;
            
                if ( !is_object($term) ) {
                    if ( is_int($term) ) {
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 hr to fix

              Method RecursiveFrameScanning has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function RecursiveFrameScanning(&$offset, &$nextframetestoffset, $ScanAsCBR) {
                      $info = &$this->getid3->info;
                      $firstframetestarray = array('error'=>'', 'warning'=>'', 'avdataend'=>$info['avdataend'], 'avdataoffset'=>$info['avdataoffset']);
                      $this->decodeMPEGaudioHeader($offset, $firstframetestarray, false);
              
              
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.mp3.php - About 1 hr to fix

                Method GenerateID3v1Tag has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function GenerateID3v1Tag($title, $artist, $album, $year, $genreid, $comment, $track='') {
                        $ID3v1Tag  = 'TAG';
                        $ID3v1Tag .= str_pad(trim(substr($title,  0, 30)), 30, "\x00", STR_PAD_RIGHT);
                        $ID3v1Tag .= str_pad(trim(substr($artist, 0, 30)), 30, "\x00", STR_PAD_RIGHT);
                        $ID3v1Tag .= str_pad(trim(substr($album,  0, 30)), 30, "\x00", STR_PAD_RIGHT);
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.id3v1.php - About 1 hr to fix

                  Method blogger_editPost has 28 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/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

                    Method value has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        protected function value()
                        {
                            if ($this->is_linear_whitespace())
                            {
                                $this->linear_whitespace();
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/HTTP/Parser.php - About 1 hr to fix

                      Method test has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public static function test( $args = array() ) {
                      
                              // First, test Imagick's extension and classes.
                              if ( ! extension_loaded( 'imagick' ) || ! class_exists( 'Imagick' ) || ! class_exists( 'ImagickPixel' ) )
                                  return false;

                        Method wp_kses_split2 has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function wp_kses_split2($string, $allowed_html, $allowed_protocols) {
                            $string = wp_kses_stripslashes($string);
                        
                            if (substr($string, 0, 1) != '<')
                                return '&gt;';
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/kses.php - About 1 hr to fix

                          Method standalone_value has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function standalone_value()
                              {
                                  if ($standalone = $this->get_value())
                                  {
                                      switch ($standalone)

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

                                function __construct( $data ) {
                                    if ( is_string( $data ) ) {
                                        // Assume it's a header string direct from a previous request
                                        $pairs = explode( ';', $data );
                            
                            
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/http.php - About 1 hr to fix

                              Method get_results has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function get_results($query = null, $output = OBJECT) {
                                      $this->func_call = "\$db->get_results(\"$query\", $output)";
                              
                                      if ( $query )
                                          $this->query($query);
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/wp-db.php - About 1 hr to fix

                                Method _getTransport has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function &_getTransport( $args = array() ) {
                                        static $working_transport, $blocking_transport, $nonblocking_transport;
                                
                                        if ( is_null($working_transport) ) {
                                            if ( true === WP_Http_ExtHttp::test($args) ) {
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/http.php - About 1 hr to fix

                                  Method get_bookmark has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function get_bookmark($bookmark, $output = OBJECT, $filter = 'raw') {
                                      global $wpdb;
                                  
                                      if ( empty($bookmark) ) {
                                          if ( isset($GLOBALS['link']) )
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/bookmark.php - About 1 hr to fix

                                    Method connect has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function connect ($server, $port = 110)  {
                                            //  Opens a socket to the specified server. Unless overridden,
                                            //  port defaults to 110. Returns true on success, false on fail
                                    
                                            // If MAILSERVER is set, override $server with it's value
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/class-pop3.php - About 1 hr to fix

                                      Method start_el has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
                                              $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
                                      
                                              $class_names = '';
                                      
                                      
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/nav-menu-template.php - About 1 hr to fix

                                        Method ms_subdomain_constants has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function ms_subdomain_constants() {
                                            static $error = null;
                                            static $error_warn = false;
                                        
                                            if ( false === $error )
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/ms-default-constants.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language