CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method wpmu_welcome_notification has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function wpmu_welcome_notification( $blog_id, $user_id, $password, $title, $meta = array() ) {
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/ms-functions.php - About 35 mins to fix

    Method links_popup_script has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/deprecated.php - About 35 mins to fix

      Method comments_popup_link has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) {
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/comment-template.php - About 35 mins to fix

        Method start_el has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {}
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/class-wp-walker.php - About 35 mins to fix

          Method add has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              function add( $handle, $src, $deps = array(), $ver = false, $args = null ) {
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/class.wp-dependencies.php - About 35 mins to fix

            Method adjacent_post_link has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function adjacent_post_link($format, $link, $in_same_cat = false, $excluded_categories = '', $previous = true) {
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/link-template.php - About 35 mins to fix

              Method wp_register_style has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) {
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/functions.wp-styles.php - About 35 mins to fix

                Method wp_enqueue_style has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = false ) {
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/functions.wp-styles.php - About 35 mins to fix

                  Method AddEmbeddedImage has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                    function AddEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = 'application/octet-stream') {
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/class-phpmailer.php - About 35 mins to fix

                    Method Services_JSON_Error has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            function Services_JSON_Error($message = 'unknown error', $code = null,
                                                        $mode = null, $options = null, $userinfo = null)
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/class-json.php - About 35 mins to fix

                      Method Services_JSON_Error has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              function Services_JSON_Error($message = 'unknown error', $code = null,
                                                          $mode = null, $options = null, $userinfo = null)
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/class-json.php - About 35 mins to fix

                        Method update_metadata has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        function update_metadata($meta_type, $object_id, $meta_key, $meta_value, $prev_value = '') {
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/meta.php - About 35 mins to fix

                          Method wp_enqueue_script has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function wp_enqueue_script( $handle, $src = false, $deps = array(), $ver = false, $in_footer = false ) {
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/functions.wp-scripts.php - About 35 mins to fix

                            Method start_el has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                function start_el(&$output, $page, $depth, $args, $current_page) {
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/classes.php - About 35 mins to fix

                              Method wp_register_script has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_footer = false ) {
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/functions.wp-scripts.php - About 35 mins to fix

                                Method add_metadata has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                function add_metadata($meta_type, $object_id, $meta_key, $meta_value, $unique = false) {
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/meta.php - About 35 mins to fix

                                  Method delete_metadata has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  function delete_metadata($meta_type, $object_id, $meta_key, $meta_value = '', $delete_all = false) {
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/meta.php - About 35 mins to fix

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

                                                    WinLossTie = e.IsPOA 
                                                        ? (e.POA > e.OpponentPOA ? "W" : e.POA < e.OpponentPOA ? "L" : "T")
                                                        : (e.Score > e.OpponentScore ? "W" : e.Score < e.OpponentScore ? "L" : "T"),
                                    Severity: Minor
                                    Found in ReadModels/ParticipantScoreQueries.cs and 2 other locations - About 35 mins to fix
                                    ReadModels/StandingQueries.cs on lines 197..199
                                    ReadModels/StatisticsQueries.cs on lines 135..137

                                    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 67.

                                    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

                                                participant.Scores.Add(new Score { MatchId = e.Id, Scratch = e.Score, Wins = e.IsPOA
                                                        ? (e.POA > e.OpponentPOA ? 1M : e.POA < e.OpponentPOA ? 0M : .5M)
                                                        : (e.Score > e.OpponentScore ? 1M : e.Score < e.OpponentScore ? 0M : .5M),
                                    Severity: Minor
                                    Found in ReadModels/StatisticsQueries.cs and 2 other locations - About 35 mins to fix
                                    ReadModels/ParticipantScoreQueries.cs on lines 156..158
                                    ReadModels/StandingQueries.cs on lines 197..199

                                    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 67.

                                    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

                                                    WinLossTie = e.IsPOA
                                                        ? (e.POA > e.OpponentPOA ? "W" : e.POA < e.OpponentPOA ? "L" : "T")
                                                        : (e.Score > e.OpponentScore ? "W" : e.Score < e.OpponentScore ? "L" : "T"),
                                    Severity: Minor
                                    Found in ReadModels/StandingQueries.cs and 2 other locations - About 35 mins to fix
                                    ReadModels/ParticipantScoreQueries.cs on lines 156..158
                                    ReadModels/StatisticsQueries.cs on lines 135..137

                                    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 67.

                                    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