spotweb/spotweb

View on GitHub

Showing 850 of 850 total issues

Avoid too many return statements within this method.
Open

                return $this->nzb;
Severity: Major
Found in lib/services/Providers/Services_Providers_HttpNzb.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return true;
    Severity: Major
    Found in lib/services/Image/Services_Image_BmpConverter.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return null;
      Severity: Major
      Found in lib/services/Providers/Services_Providers_HttpNzb.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        case 'long':  return $this->long_date($stamp);
        Severity: Major
        Found in lib/SpotTemplateHelper.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                                      return true;
          Severity: Major
          Found in lib/services/Providers/Services_Providers_HttpNzb.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        case UPLOAD_ERR_NO_FILE: return 'No file was uploaded';
            Severity: Major
            Found in lib/services/Providers/Services_Providers_FileUpload.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              default: return 'df format err';
              Severity: Major
              Found in lib/SpotTemplateHelper.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return Logger::CRITICAL;
                Severity: Major
                Found in lib/SpotDebug.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return false;
                  Severity: Major
                  Found in lib/services/Providers/Services_Providers_HttpNzb.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return true;
                    Severity: Major
                    Found in lib/dbstruct/SpotStruct_abs.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return Logger::NOTICE;
                      Severity: Major
                      Found in lib/SpotDebug.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    case UPLOAD_ERR_EXTENSION: return 'Some PHP extension interfered with uploaded, please check your server config';
                        Severity: Major
                        Found in lib/services/Providers/Services_Providers_FileUpload.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return $spot;
                          Severity: Major
                          Found in lib/services/Format/Services_Format_Parsing.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        default: return 'unk: '.$_FILES[$this->_formName]['error'][$this->_fieldName];
                            Severity: Major
                            Found in lib/services/Providers/Services_Providers_FileUpload.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          case UPLOAD_ERR_CANT_WRITE: return 'Failed to write uploaded file to disk, please check your server config';
                              Severity: Major
                              Found in lib/services/Providers/Services_Providers_FileUpload.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return $spot;
                                Severity: Major
                                Found in lib/services/Format/Services_Format_Parsing.php - About 30 mins to fix

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                          } else if ( btn ) {
                                              btn.removeClass( "ui-btn-left ui-btn-right" ).addClass( "ui-btn-" + location );
                                              if ( text ) {
                                                  btn.text( text );
                                              }
                                  Severity: Minor
                                  Found in js/jquery.mobile-1.4.5/jquery.mobile-1.4.5.js and 1 other location - About 30 mins to fix
                                  js/jquery.mobile-1.4.5/jquery.mobile-1.4.5.js on lines 6786..6801

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 45.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 3 locations. Consider refactoring.
                                  Open

                                          _setTrackTheme: function( value ) {
                                              this._inputFirst.slider( "option", "trackTheme", value );
                                              this._inputLast.slider( "option", "trackTheme", value );
                                          },
                                  Severity: Minor
                                  Found in js/jquery.mobile-1.4.5/jquery.mobile-1.4.5.js and 2 other locations - About 30 mins to fix
                                  js/jquery.mobile-1.4.5/jquery.mobile-1.4.5.js on lines 9635..9638
                                  js/jquery.mobile-1.4.5/jquery.mobile-1.4.5.js on lines 9651..9654

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 45.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 3 locations. Consider refactoring.
                                  Open

                                          _setTheme: function( value ) {
                                              this._inputFirst.slider( "option", "theme", value );
                                              this._inputLast.slider( "option", "theme", value );
                                          },
                                  Severity: Minor
                                  Found in js/jquery.mobile-1.4.5/jquery.mobile-1.4.5.js and 2 other locations - About 30 mins to fix
                                  js/jquery.mobile-1.4.5/jquery.mobile-1.4.5.js on lines 9640..9643
                                  js/jquery.mobile-1.4.5/jquery.mobile-1.4.5.js on lines 9651..9654

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 45.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 3 locations. Consider refactoring.
                                  Open

                                          _setHighlight: function( value ) {
                                              this._inputFirst.slider( "option", "highlight", value );
                                              this._inputLast.slider( "option", "highlight", value );
                                          },
                                  Severity: Minor
                                  Found in js/jquery.mobile-1.4.5/jquery.mobile-1.4.5.js and 2 other locations - About 30 mins to fix
                                  js/jquery.mobile-1.4.5/jquery.mobile-1.4.5.js on lines 9635..9638
                                  js/jquery.mobile-1.4.5/jquery.mobile-1.4.5.js on lines 9640..9643

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 45.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language