CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

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 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 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 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 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 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 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 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 __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 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 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 Quit has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function Quit($close_on_error=true) {
                              $this->error = null; # so there is no confusion
                          
                              if(!$this->connected()) {
                                $this->error = array(
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/class-smtp.php - About 1 hr to fix

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

                                public static void SendChangeNotification(DateTime cutoff, List<String> recipients, string title, string message)
                                {
                                    Syslog.Initialize("logs2.papertrailapp.com", 10236);
                                    Syslog.Info("SendChangeNotification");
                                    Syslog.Info($"apikey: {apiKey}");
                            Severity: Minor
                            Found in Aggregates/Emailer.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

                                Function toPlainData has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        toPlainData: function (fn){
                                            this._to({}, fn, function (file, data, queue){
                                                if( file.file ){
                                                    data.type = file.file;
                                                }
                                Severity: Minor
                                Found in Web.Admin/z-scripts/FileAPI.js - About 1 hr to fix

                                  Function _readAs has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function _readAs(file, fn, as, encoding){
                                          if( api.isBlob(file) && _hasSupportReadAs(as) ){
                                              var Reader = new FileReader;
                                  
                                              // Add event listener
                                  Severity: Minor
                                  Found in Web.Admin/z-scripts/FileAPI.js - About 1 hr to fix

                                    Function bindControls has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            bindControls: function() {
                                    
                                                var i;
                                    
                                                carousel.next.on( 'click:fast', function(e) {
                                    Severity: Minor
                                    Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 1 hr to fix

                                      Function editTeam has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              function editTeam(team) {
                                                  var dfd = $q.defer();
                                                  
                                                  team.Bowlers = team.Bowlers || [];
                                      
                                      
                                      Severity: Minor
                                      Found in Web.Admin/AdminApp/Controllers/controller.contingent.js - About 1 hr to fix

                                        Function _StackFrame has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                    var _StackFrame = (function (_super) {
                                                        __extends(_StackFrame, _super);
                                                        function _StackFrame(frame, level) {
                                                            _super.call(this);
                                                            this.sizeInBytes = 0;
                                        Severity: Minor
                                        Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language