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() ) {
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) {
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 ) {
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 ) {}
Method add
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function add( $handle, $src, $deps = array(), $ver = false, $args = null ) {
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) {
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' ) {
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 ) {
Method AddEmbeddedImage
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function AddEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = 'application/octet-stream') {
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)
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)
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 = '') {
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 ) {
Method start_el
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function start_el(&$output, $page, $depth, $args, $current_page) {
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 ) {
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) {
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) {
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"),
- Read upRead up
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
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),
- Read upRead up
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
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"),
- Read upRead up
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76