CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method wp_editComment has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function wp_editComment($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 wp_newTerm has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function wp_newTerm( $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 CalculateCompressionRatioVideo has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function CalculateCompressionRatioVideo() {
              if (empty($this->info['video'])) {
                  return false;
              }
              if (empty($this->info['video']['resolution_x']) || empty($this->info['video']['resolution_y'])) {
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.php - About 1 hr to fix

        Method ParseOggPageHeader has 41 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function ParseOggPageHeader() {
                // http://xiph.org/ogg/vorbis/doc/framing.html
                $oggheader['page_start_offset'] = $this->ftell(); // where we started from in the file
        
                $filedata = $this->fread($this->getid3->fread_buffer_size());
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.ogg.php - About 1 hr to fix

          Method readData has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function readData() {
                  $value = null;
          
                  $type = $this->stream->readByte();
                  switch ($type) {
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio-video.flv.php - About 1 hr to fix

            Method wp_admin_bar_new_content_menu has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function wp_admin_bar_new_content_menu( $wp_admin_bar ) {
                $actions = array();
            
                $cpts = (array) get_post_types( array( 'show_in_admin_bar' => true ), 'objects' );
            
            
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/admin-bar.php - About 1 hr to fix

              Method image_resize has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) {
              
                  $image = wp_load_image( $file );
                  if ( !is_resource( $image ) )
                      return new WP_Error('error_loading_image', $image);
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/media.php - About 1 hr to fix

                Method sanitize_user_field has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Method wp_upload_dir has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function wp_upload_dir( $time = null ) {
                      $siteurl = get_option( 'siteurl' );
                      $upload_path = get_option( 'upload_path' );
                      $upload_path = trim($upload_path);
                      if ( empty($upload_path) ) {
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/functions.php - About 1 hr to fix

                    Method convert_chars has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function convert_chars($content, $deprecated = '') {
                        // Translation of invalid Unicode references range to valid range
                        $wp_htmltranswinuni = array(
                        '€' => '€', // the Euro sign
                        '' => '',
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/formatting.php - About 1 hr to fix

                      Method _wp_upgrade_revisions_of_post has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function _wp_upgrade_revisions_of_post( $post, $revisions ) {
                          global $wpdb;
                      
                          // Add post option exclusively
                          $lock = "revision-upgrade-{$post->ID}";
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/revision.php - About 1 hr to fix

                        Method GetGuestPackages has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                public List<GuestPackage> GetGuestPackages(string year)
                                {
                                    var tournament = Tournaments.Single(x => x.Year == year);
                                    var guestPackages = GuestPackages.Where(x => x.TournamentId == tournament.Id).ToList();
                        
                        Severity: Minor
                        Found in ReadModels/TournamentQueries.cs - About 1 hr to fix

                          Method Then has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  protected Action<object> Then(params object[] expectedEvents)
                                  {
                                      return got =>
                                      {
                                          var gotEvents = got as object[];
                          Severity: Minor
                          Found in Edument.CQRS/BDDTest.cs - About 1 hr to fix

                            Function _apply has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                                    _apply: function (file, fn){
                                                        api.log('FlashAPI.Image._apply:', file);
                            
                                                        if( _isHtmlFile(file) ){
                                                            this.parent.apply(this, arguments);
                            Severity: Minor
                            Found in Web.Admin/z-scripts/FileAPI.js - About 1 hr to fix

                              Function _call has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _call: function( type, url, params, callback ) {
                              
                                      url = 'https://picasaweb.google.com/data/feed/api/' + url + '?';
                              
                                      if (typeof params == 'function') {
                              Severity: Minor
                              Found in Web.Admin/2015/js/galleria/plugins/picasa/galleria.picasa.js - About 1 hr to fix

                                Function open has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    this.open = function( args, params ) {
                                        var $element,
                                            self = this,
                                            wp = this.wp;
                                
                                

                                  Function getAttrib has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      getAttrib : function(e, at) {
                                          var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2;
                                  
                                          if (ed.settings.inline_styles) {
                                              switch (at) {

                                    Function _call has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        _call: function( type, url, params, callback ) {
                                    
                                            url = 'https://picasaweb.google.com/data/feed/api/' + url + '?';
                                    
                                            if (typeof params == 'function') {
                                    Severity: Minor
                                    Found in Web.Admin/Content/galleria/plugins/picasa/galleria.picasa.js - About 1 hr to fix

                                      Function createToolbar has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              createToolbar: function() {
                                                  var filters, FiltersConstructor;
                                      
                                                  /**
                                                   * @member {wp.media.view.Toolbar}
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js - About 1 hr to fix

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

                                        function wp_dashboard() {
                                            global $screen_layout_columns;
                                        
                                            $hide2 = $hide3 = $hide4 = '';
                                            switch ( $screen_layout_columns ) {
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-admin/includes/dashboard.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language