CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method openfile has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function openfile($filename) {
        try {
            if (!empty($this->startup_error)) {
                throw new getid3_exception($this->startup_error);
            }
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.php - About 2 hrs to fix

    Method MPEGaudioHeaderValid has 58 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function MPEGaudioHeaderValid($rawarray, $echoerrors=false, $allowBitrate15=false) {
            if (($rawarray['synch'] & 0x0FFE) != 0x0FFE) {
                return false;
            }
    
    
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.mp3.php - About 2 hrs to fix

      Method date_rfc2822 has 58 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function date_rfc2822($date)
          {
              static $pcre;
              if (!$pcre)
              {
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Parse/Date.php - About 2 hrs to fix

        Method wp_update_themes has 58 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function wp_update_themes( ) {
            global $wp_version;
        
            if( defined( 'WP_INSTALLING' ) )
                return false;
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/update.php - About 2 hrs to fix

          Method enqueue_scripts has 58 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function enqueue_scripts() {
                  wp_enqueue_style( 'customize-widgets' );
                  wp_enqueue_script( 'customize-widgets' );
          
                  /** This action is documented in wp-admin/admin-header.php */
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-widgets.php - About 2 hrs to fix

            Method wp_notify_postauthor has 58 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function wp_notify_postauthor($comment_id, $comment_type='') {
                $comment = get_comment($comment_id);
                $post    = get_post($comment->comment_post_ID);
                $user    = get_userdata( $post->post_author );
                $current_user = wp_get_current_user();
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/pluggable.php - About 2 hrs to fix

              Method wp_salt has 58 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function wp_salt($scheme = 'auth') {
                  global $wp_default_secret_key;
                  $secret_key = '';
                  if ( defined('SECRET_KEY') && ('' != SECRET_KEY) && ( $wp_default_secret_key != SECRET_KEY) )
                      $secret_key = SECRET_KEY;
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/pluggable.php - About 2 hrs to fix

                Method date_rfc2822 has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function date_rfc2822($date)
                    {
                        static $pcre;
                        if (!$pcre)
                        {
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

                  Method wpmu_validate_user_signup has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function wpmu_validate_user_signup($user_name, $user_email) {
                      global $wpdb;
                  
                      $errors = new WP_Error();
                  
                  
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/ms-functions.php - About 2 hrs to fix

                    Method wp_link_dialog has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public static function wp_link_dialog() {
                            $search_panel_visible = '1' == get_user_setting( 'wplink', '0' ) ? ' search-panel-visible' : '';
                    
                            // display: none is required here, see #WP27605
                            ?>
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/class-wp-editor.php - About 2 hrs to fix

                      Method get_links has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name',
                                  $show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) {
                          _deprecated_function(__FUNCTION__, '0.0', 'get_bookmarks()');
                      
                          $order = 'ASC';
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/deprecated.php - About 2 hrs to fix

                        Method wpmu_validate_blog_signup has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function wpmu_validate_blog_signup( $blogname, $blog_title, $user = '' ) {
                            global $wpdb, $domain;
                        
                            $current_site = get_current_site();
                            $base = $current_site->path;
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/ms-functions.php - About 2 hrs to fix

                          File class-wp-image-editor-imagick.php has 263 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          /**
                           * WordPress Imagick Image Editor
                           *
                           * @package WordPress

                            Function $StateRefDirective has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function $StateRefDirective($state, $timeout) {
                              var allowedOptions = ['location', 'inherit', 'reload', 'absolute'];
                            
                              return {
                                restrict: 'A',
                            Severity: Major
                            Found in Web.Admin/z-scripts/angular-ui-router.js - About 2 hrs to fix

                              Function edit has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  edit : function(id) {
                                      var t = this, fields, editRow, rowData, cats, status, pageOpt, f, pageLevel, nextPage, pageLoop = true, nextLevel, tax;
                                      t.revert();
                              
                                      if ( typeof(id) == 'object' )
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-admin/js/inline-edit-post.dev.js - About 2 hrs to fix

                                Method wpmu_delete_blog has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function wpmu_delete_blog( $blog_id, $drop = false ) {
                                    global $wpdb;
                                
                                    $switch = false;
                                    if ( get_current_blog_id() != $blog_id ) {
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/ms.php - About 2 hrs to fix

                                  Method parselisting has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function parselisting($line) {
                                          $is_windows = ($this->OS_remote == FTP_OS_Windows);
                                          if ($is_windows && preg_match("/([0-9]{2})-([0-9]{2})-([0-9]{2}) +([0-9]{2}):([0-9]{2})(AM|PM) +([0-9]+|<DIR>) +(.+)/",$line,$lucifer)) {
                                              $b = array();
                                              if ($lucifer[3]<70) { $lucifer[3]+=2000; } else { $lucifer[3]+=1900; } // 4digit year fix
                                  Severity: Major
                                  Found in Web.Admin/2014/wordpress/wp-admin/includes/class-ftp.php - About 2 hrs to fix

                                    Method pagination has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function pagination( $which ) {
                                            if ( empty( $this->_pagination_args ) )
                                                return;
                                    
                                            extract( $this->_pagination_args, EXTR_SKIP );
                                    Severity: Major
                                    Found in Web.Admin/2014/wordpress/wp-admin/includes/class-wp-list-table.php - About 2 hrs to fix

                                      Method get_attachment_fields_to_edit has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function get_attachment_fields_to_edit($post, $errors = null) {
                                          if ( is_int($post) )
                                              $post =& get_post($post);
                                          if ( is_array($post) )
                                              $post = (object) $post;
                                      Severity: Major
                                      Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 2 hrs to fix

                                        Method wp_dashboard_incoming_links_output has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function wp_dashboard_incoming_links_output() {
                                            $widgets = get_option( 'dashboard_widget_options' );
                                            @extract( @$widgets['dashboard_incoming_links'], EXTR_SKIP );
                                            $rss = fetch_feed( $url );
                                        
                                        
                                        Severity: Major
                                        Found in Web.Admin/2014/wordpress/wp-admin/includes/dashboard.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language