robinp7720/Blue-Stats-Minecraft

View on GitHub

Showing 90 of 90 total issues

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

            "times_kicked"    => [
                "database"        => "times_kicked",
                "name"            => "Kicks",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "items_crafted"   => [
                "database"        => "items_crafted",
                "name"            => "Items crafted",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/lolmewnStats/lolmewnStats.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "teleports"       => [
                "database"        => "teleports",
                "name"            => "Teleports",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "blocks_placed"   => [
                "database"        => "blocks_placed",
                "name"            => "Blocks placed",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/lolmewnStats/lolmewnStats.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "move"       => [
                "database"        => "move",
                "name"            => "Distance traversed",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/lolmewnStats/lolmewnStats.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "villager_trades" => [
                "database"        => "villager_trades",
                "name"            => "Villager trades",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "worlds_changed"  => [
                "database"        => "worlds_changed",
                "name"            => "Worlds changed",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "items_caught"    => [
                "database"        => "items_caught",
                "name"            => "Items caught",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "items_dropped"   => [
                "database"        => "items_dropped",
                "name"            => "Items dropped",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "damage_taken"    => [
                "database"        => "damage_taken",
                "name"            => "Damage taken",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/lolmewnStats/lolmewnStats.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "items_dropped"   => [
                "database"        => "items_dropped",
                "name"            => "Items dropped",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/lolmewnStats/lolmewnStats.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "kills_players"   => [
                "database"        => "kills_players",
                "name"            => "Players killed",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "blocks_broken"   => [
                "database"        => "blocks_broken",
                "name"            => "Blocks broken",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/lolmewnStats/lolmewnStats.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "distance_travelled"          => [
                "database"        => "distance_travelled",
                "name"            => "Distance traversed",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "food_eaten"      => [
                "database"        => "food_eaten",
                "name"            => "Food eaten",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "death"          => [
                "database"        => "death",
                "name"            => "Deaths",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/lolmewnStats/lolmewnStats.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "tools_broken"    => [
                "database"        => "tools_broken",
                "name"            => "Tools broken",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/lolmewnStats/lolmewnStats.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554

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

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 24 locations. Consider refactoring.
Open

            "arrows_shot"     => [
                "database"        => "arrows_shot",
                "name"            => "Arrows shot",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "items_picked_up" => [
                "database"        => "items_picked_up",
                "name"            => "Items picked up",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 490..520
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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 24 locations. Consider refactoring.
Open

            "kills_mobs"      => [
                "database"        => "kills_mobs",
                "name"            => "Mobs killed",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 2 hrs to fix
plugins/Statz/Statz.php on lines 24..54
plugins/Statz/Statz.php on lines 179..209
plugins/Statz/Statz.php on lines 235..265
plugins/Statz/Statz.php on lines 316..346
plugins/Statz/Statz.php on lines 347..377
plugins/Statz/Statz.php on lines 378..408
plugins/Statz/Statz.php on lines 409..439
plugins/Statz/Statz.php on lines 440..470
plugins/Statz/Statz.php on lines 521..551
plugins/Statz/Statz.php on lines 552..582
plugins/Statz/Statz.php on lines 583..613
plugins/Statz/Statz.php on lines 664..694
plugins/Statz/Statz.php on lines 695..725
plugins/Statz/Statz.php on lines 745..775
plugins/lolmewnStats/lolmewnStats.php on lines 74..104
plugins/lolmewnStats/lolmewnStats.php on lines 105..135
plugins/lolmewnStats/lolmewnStats.php on lines 211..241
plugins/lolmewnStats/lolmewnStats.php on lines 242..272
plugins/lolmewnStats/lolmewnStats.php on lines 323..353
plugins/lolmewnStats/lolmewnStats.php on lines 354..384
plugins/lolmewnStats/lolmewnStats.php on lines 385..415
plugins/lolmewnStats/lolmewnStats.php on lines 524..554
plugins/lolmewnStats/lolmewnStats.php on lines 792..822

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

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