CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method download_post_meta has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function download_post_meta() {
        $total           = (int) get_option( 'ljapi_total' );
        $count           = (int) get_option( 'ljapi_count' );
        $lastsync        = get_option( 'ljapi_lastsync' );
        if ( !$lastsync ) {
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-admin/import/livejournal.php - About 1 hr to fix

    Method list_theme_updates has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function list_theme_updates() {
        $themes = get_theme_updates();
        if ( empty($themes) )
            return;
    ?>
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/update-core.php - About 1 hr to fix

      Method process_conditionals has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function process_conditionals() {
      
              if(empty($this->params)) return;
              if($_SERVER['REQUEST_METHOD'] == 'DELETE') return;
      
      
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-app.php - About 1 hr to fix

        Method wp_newCategory has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Method twentyfourteen_the_attached_image has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function twentyfourteen_the_attached_image() {
              $post                = get_post();
              /**
               * Filter the default Twenty Fourteen attachment size.
               *

            Method akismet_auto_check_comment has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function akismet_auto_check_comment( $comment ) {
                global $akismet_api_host, $akismet_api_port;
            
                $comment['user_ip']    = preg_replace( '/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR'] );
                $comment['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-content/plugins/akismet/akismet.php - About 1 hr to fix

              Method get_page_of_comment has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Method sanitize_term_field has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) {
                    if ( 'parent' == $field  || 'term_id' == $field || 'count' == $field || 'term_group' == $field ) {
                        $value = (int) $value;
                        if ( $value < 0 )
                            $value = 0;
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 hr to fix

                  Method CodecIDtoCommonName has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static function CodecIDtoCommonName($codecid) {
                          // http://www.matroska.org/technical/specs/codecid/index.html
                          static $CodecIDlist = array();
                          if (empty($CodecIDlist)) {
                              $CodecIDlist['A_AAC']            = 'aac';

                    Method parseSTREAMINFO has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private function parseSTREAMINFO($BlockData) {
                            $info = &$this->getid3->info;
                    
                            $info['flac']['STREAMINFO'] = array();
                            $streaminfo = &$info['flac']['STREAMINFO'];
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.flac.php - About 1 hr to fix

                      Method wp_post_mime_type_where has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function wp_post_mime_type_where($post_mime_types) {
                          $where = '';
                          $wildcards = array('', '%', '%/%');
                          if ( is_string($post_mime_types) )
                              $post_mime_types = array_map('trim', explode(',', $post_mime_types));
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/post.php - About 1 hr to fix

                        Method image_downsize has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function image_downsize($id, $size = 'medium') {
                        
                            if ( !wp_attachment_is_image($id) )
                                return false;
                        
                        
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/media.php - About 1 hr to fix

                          Method sanitize_bookmark_field has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function sanitize_bookmark_field($field, $value, $bookmark_id, $context) {
                              $int_fields = array('link_id', 'link_rating');
                              if ( in_array($field, $int_fields) )
                                  $value = (int) $value;
                          
                          
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/bookmark.php - About 1 hr to fix

                            Method markup_header has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private function markup_header( $header, $value, $translate ) {
                                    switch ( $header ) {
                                        case 'Name' :
                                            if ( empty( $value ) )
                                                $value = $this->get_stylesheet();
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/class-wp-theme.php - About 1 hr to fix

                              Method all_deps has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function all_deps( $handles, $recursion = false, $group = false ) {
                                      if ( !$handles = (array) $handles )
                                          return false;
                              
                                      foreach ( $handles as $handle ) {
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/class.wp-dependencies.php - About 1 hr to fix

                                Method update_site_option has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function update_site_option( $option, $value ) {
                                    global $wpdb;
                                
                                    wp_protect_special_option( $option );
                                
                                
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/option.php - About 1 hr to fix

                                  Method utf8_uri_encode has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function utf8_uri_encode( $utf8_string, $length = 0 ) {
                                      $unicode = '';
                                      $values = array();
                                      $num_octets = 1;
                                      $unicode_length = 0;
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/formatting.php - About 1 hr to fix

                                    Method __get has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function __get( $offset ) {
                                            switch ( $offset ) {
                                                case 'name' :
                                                case 'title' :
                                                    return $this->get('Name');
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/class-wp-theme.php - About 1 hr to fix

                                      Method Execute has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              public static void Execute(ICommandQueries commandQueries, IContingentViewQueries contingentViewQueries, MessageDispatcher dispatcher)
                                              {
                                                  var commands = new List<ReorderParticipant>();
                                                  var provinces = new List<string> { "BC", "AB", "SK", "MB", "NO", "SO", "QC", "NL" };
                                      
                                      
                                      Severity: Minor
                                      Found in Aggregates/Admin/QualifyingPositionFixer.cs - About 1 hr to fix

                                        Method Handle has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                public void Handle(ParticipantGameCompleted e)
                                                {
                                                    var divisionName = SimplifyDivision(e.Division);
                                                    var year = "2014";
                                                    if (Matches.ContainsKey(e.Id))
                                        Severity: Minor
                                        Found in ReadModels/HighScoreQueries.cs - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language