robinp7720/Blue-Stats-Minecraft

View on GitHub

Showing 90 of 90 total issues

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/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 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_crafted"   => [
                "database"        => "items_crafted",
                "name"            => "Items crafted",
                "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 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

            "tools_broken"    => [
                "database"        => "tools_broken",
                "name"            => "Tools broken",
                "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 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/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 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

Method GetStatus has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function GetStatus ($Challenge) {
        $Data = $this->WriteData(self :: STATISTIC, $Challenge . Pack('c*', 0x00, 0x00, 0x00, 0x00));
        if (!$Data) {
            throw new MinecraftQueryException('Failed to receive status.');
        }
Severity: Major
Found in plugins/query/minecraftQuery.php - About 2 hrs to fix

Method render has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function render ($type = "GLOBAL") {

        // Get template file to render
        $filePath = $this->viewPath . "templates/{$this->page}.html";

Severity: Major
Found in classes/view.class.php - About 2 hrs to fix

Method player has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function player ($player, $stat, $options = []) {
        $mysqli = $this->mysql;
        $stmt   = $mysqli->stmt_init();


Severity: Major
Found in classes/plugin/pluginStats.php - About 2 hrs to fix

Function GetStatus has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
Open

    private function GetStatus ($Challenge) {
        $Data = $this->WriteData(self :: STATISTIC, $Challenge . Pack('c*', 0x00, 0x00, 0x00, 0x00));
        if (!$Data) {
            throw new MinecraftQueryException('Failed to receive status.');
        }
Severity: Minor
Found in plugins/query/minecraftQuery.php - About 2 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function render has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
Open

    public function render ($type = "GLOBAL") {

        // Get template file to render
        $filePath = $this->viewPath . "templates/{$this->page}.html";

Severity: Minor
Found in classes/view.class.php - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function getTemplate has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
Open

    private function getTemplate ($filePath) {
        if (file_exists($filePath)) {
            /* Load template file */
            $content = file_get_contents($filePath);

Severity: Minor
Found in classes/view.class.php - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method tableToHTML has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function tableToHTML ($sorted = TRUE) {
        $cellsY = count($this->data);
        $cellsX = $this->biggestRow;
        $string = "<table class='table'>\n";
        if ($sorted)
Severity: Minor
Found in classes/table.class.php - About 1 hr to fix

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

            "last_seen"   => [
                "database"        => "last_seen",
                "name"            => "Last seen",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/lolmewnStats/lolmewnStats.php and 1 other location - About 1 hr to fix
plugins/lolmewnStats/lolmewnStats.php on lines 472..497

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

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

            "last_join"   => [
                "database"        => "last_join",
                "name"            => "Last join",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/lolmewnStats/lolmewnStats.php and 1 other location - About 1 hr to fix
plugins/lolmewnStats/lolmewnStats.php on lines 498..523

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

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

            "deaths"          => [
                "database"        => "deaths",
                "name"            => "Deaths",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 1 hr to fix
plugins/Statz/Statz.php on lines 129..153
plugins/Statz/Statz.php on lines 154..178
plugins/Statz/Statz.php on lines 266..290
plugins/Statz/Statz.php on lines 291..315
plugins/Statz/Statz.php on lines 639..663
plugins/Statz/Statz.php on lines 776..800
plugins/lolmewnStats/lolmewnStats.php on lines 24..48
plugins/lolmewnStats/lolmewnStats.php on lines 49..73
plugins/lolmewnStats/lolmewnStats.php on lines 136..160
plugins/lolmewnStats/lolmewnStats.php on lines 161..185
plugins/lolmewnStats/lolmewnStats.php on lines 186..210
plugins/lolmewnStats/lolmewnStats.php on lines 273..297
plugins/lolmewnStats/lolmewnStats.php on lines 298..322
plugins/lolmewnStats/lolmewnStats.php on lines 555..579
plugins/lolmewnStats/lolmewnStats.php on lines 580..604
plugins/lolmewnStats/lolmewnStats.php on lines 648..672
plugins/lolmewnStats/lolmewnStats.php on lines 673..697
plugins/lolmewnStats/lolmewnStats.php on lines 698..722
plugins/lolmewnStats/lolmewnStats.php on lines 723..747
plugins/lolmewnStats/lolmewnStats.php on lines 767..791
plugins/lolmewnStats/lolmewnStats.php on lines 823..847
plugins/lolmewnStats/lolmewnStats.php on lines 867..891
plugins/lolmewnStats/lolmewnStats.php on lines 892..916

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

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

            "xp_gained"       => [
                "database"        => "xp_gained",
                "name"            => "XP gained",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 1 hr to fix
plugins/Statz/Statz.php on lines 129..153
plugins/Statz/Statz.php on lines 154..178
plugins/Statz/Statz.php on lines 210..234
plugins/Statz/Statz.php on lines 266..290
plugins/Statz/Statz.php on lines 291..315
plugins/Statz/Statz.php on lines 639..663
plugins/lolmewnStats/lolmewnStats.php on lines 24..48
plugins/lolmewnStats/lolmewnStats.php on lines 49..73
plugins/lolmewnStats/lolmewnStats.php on lines 136..160
plugins/lolmewnStats/lolmewnStats.php on lines 161..185
plugins/lolmewnStats/lolmewnStats.php on lines 186..210
plugins/lolmewnStats/lolmewnStats.php on lines 273..297
plugins/lolmewnStats/lolmewnStats.php on lines 298..322
plugins/lolmewnStats/lolmewnStats.php on lines 555..579
plugins/lolmewnStats/lolmewnStats.php on lines 580..604
plugins/lolmewnStats/lolmewnStats.php on lines 648..672
plugins/lolmewnStats/lolmewnStats.php on lines 673..697
plugins/lolmewnStats/lolmewnStats.php on lines 698..722
plugins/lolmewnStats/lolmewnStats.php on lines 723..747
plugins/lolmewnStats/lolmewnStats.php on lines 767..791
plugins/lolmewnStats/lolmewnStats.php on lines 823..847
plugins/lolmewnStats/lolmewnStats.php on lines 867..891
plugins/lolmewnStats/lolmewnStats.php on lines 892..916

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

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

            "time_played"     => [
                "database"        => "time_played",
                "name"            => "Play time",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 1 hr to fix
plugins/Statz/Statz.php on lines 129..153
plugins/Statz/Statz.php on lines 154..178
plugins/Statz/Statz.php on lines 210..234
plugins/Statz/Statz.php on lines 266..290
plugins/Statz/Statz.php on lines 291..315
plugins/Statz/Statz.php on lines 776..800
plugins/lolmewnStats/lolmewnStats.php on lines 24..48
plugins/lolmewnStats/lolmewnStats.php on lines 49..73
plugins/lolmewnStats/lolmewnStats.php on lines 136..160
plugins/lolmewnStats/lolmewnStats.php on lines 161..185
plugins/lolmewnStats/lolmewnStats.php on lines 186..210
plugins/lolmewnStats/lolmewnStats.php on lines 273..297
plugins/lolmewnStats/lolmewnStats.php on lines 298..322
plugins/lolmewnStats/lolmewnStats.php on lines 555..579
plugins/lolmewnStats/lolmewnStats.php on lines 580..604
plugins/lolmewnStats/lolmewnStats.php on lines 648..672
plugins/lolmewnStats/lolmewnStats.php on lines 673..697
plugins/lolmewnStats/lolmewnStats.php on lines 698..722
plugins/lolmewnStats/lolmewnStats.php on lines 723..747
plugins/lolmewnStats/lolmewnStats.php on lines 767..791
plugins/lolmewnStats/lolmewnStats.php on lines 823..847
plugins/lolmewnStats/lolmewnStats.php on lines 867..891
plugins/lolmewnStats/lolmewnStats.php on lines 892..916

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

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/lolmewnStats/lolmewnStats.php and 23 other locations - About 1 hr to fix
plugins/Statz/Statz.php on lines 129..153
plugins/Statz/Statz.php on lines 154..178
plugins/Statz/Statz.php on lines 210..234
plugins/Statz/Statz.php on lines 266..290
plugins/Statz/Statz.php on lines 291..315
plugins/Statz/Statz.php on lines 639..663
plugins/Statz/Statz.php on lines 776..800
plugins/lolmewnStats/lolmewnStats.php on lines 24..48
plugins/lolmewnStats/lolmewnStats.php on lines 49..73
plugins/lolmewnStats/lolmewnStats.php on lines 136..160
plugins/lolmewnStats/lolmewnStats.php on lines 161..185
plugins/lolmewnStats/lolmewnStats.php on lines 186..210
plugins/lolmewnStats/lolmewnStats.php on lines 273..297
plugins/lolmewnStats/lolmewnStats.php on lines 298..322
plugins/lolmewnStats/lolmewnStats.php on lines 555..579
plugins/lolmewnStats/lolmewnStats.php on lines 580..604
plugins/lolmewnStats/lolmewnStats.php on lines 648..672
plugins/lolmewnStats/lolmewnStats.php on lines 673..697
plugins/lolmewnStats/lolmewnStats.php on lines 698..722
plugins/lolmewnStats/lolmewnStats.php on lines 767..791
plugins/lolmewnStats/lolmewnStats.php on lines 823..847
plugins/lolmewnStats/lolmewnStats.php on lines 867..891
plugins/lolmewnStats/lolmewnStats.php on lines 892..916

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

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

            "eggs_thrown"     => [
                "database"        => "eggs_thrown",
                "name"            => "Eggs thrown",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 1 hr to fix
plugins/Statz/Statz.php on lines 129..153
plugins/Statz/Statz.php on lines 154..178
plugins/Statz/Statz.php on lines 210..234
plugins/Statz/Statz.php on lines 291..315
plugins/Statz/Statz.php on lines 639..663
plugins/Statz/Statz.php on lines 776..800
plugins/lolmewnStats/lolmewnStats.php on lines 24..48
plugins/lolmewnStats/lolmewnStats.php on lines 49..73
plugins/lolmewnStats/lolmewnStats.php on lines 136..160
plugins/lolmewnStats/lolmewnStats.php on lines 161..185
plugins/lolmewnStats/lolmewnStats.php on lines 186..210
plugins/lolmewnStats/lolmewnStats.php on lines 273..297
plugins/lolmewnStats/lolmewnStats.php on lines 298..322
plugins/lolmewnStats/lolmewnStats.php on lines 555..579
plugins/lolmewnStats/lolmewnStats.php on lines 580..604
plugins/lolmewnStats/lolmewnStats.php on lines 648..672
plugins/lolmewnStats/lolmewnStats.php on lines 673..697
plugins/lolmewnStats/lolmewnStats.php on lines 698..722
plugins/lolmewnStats/lolmewnStats.php on lines 723..747
plugins/lolmewnStats/lolmewnStats.php on lines 767..791
plugins/lolmewnStats/lolmewnStats.php on lines 823..847
plugins/lolmewnStats/lolmewnStats.php on lines 867..891
plugins/lolmewnStats/lolmewnStats.php on lines 892..916

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

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

            "entered_beds"    => [
                "database"        => "entered_beds",
                "name"            => "Beds entered",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/Statz/Statz.php and 23 other locations - About 1 hr to fix
plugins/Statz/Statz.php on lines 129..153
plugins/Statz/Statz.php on lines 154..178
plugins/Statz/Statz.php on lines 210..234
plugins/Statz/Statz.php on lines 266..290
plugins/Statz/Statz.php on lines 639..663
plugins/Statz/Statz.php on lines 776..800
plugins/lolmewnStats/lolmewnStats.php on lines 24..48
plugins/lolmewnStats/lolmewnStats.php on lines 49..73
plugins/lolmewnStats/lolmewnStats.php on lines 136..160
plugins/lolmewnStats/lolmewnStats.php on lines 161..185
plugins/lolmewnStats/lolmewnStats.php on lines 186..210
plugins/lolmewnStats/lolmewnStats.php on lines 273..297
plugins/lolmewnStats/lolmewnStats.php on lines 298..322
plugins/lolmewnStats/lolmewnStats.php on lines 555..579
plugins/lolmewnStats/lolmewnStats.php on lines 580..604
plugins/lolmewnStats/lolmewnStats.php on lines 648..672
plugins/lolmewnStats/lolmewnStats.php on lines 673..697
plugins/lolmewnStats/lolmewnStats.php on lines 698..722
plugins/lolmewnStats/lolmewnStats.php on lines 723..747
plugins/lolmewnStats/lolmewnStats.php on lines 767..791
plugins/lolmewnStats/lolmewnStats.php on lines 823..847
plugins/lolmewnStats/lolmewnStats.php on lines 867..891
plugins/lolmewnStats/lolmewnStats.php on lines 892..916

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

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

            "omnomnom"      => [
                "database"        => "omnomnom",
                "name"            => "Food eaten",
                "user_identifier" => "uuid",
                "text" => [
Severity: Major
Found in plugins/lolmewnStats/lolmewnStats.php and 23 other locations - About 1 hr to fix
plugins/Statz/Statz.php on lines 129..153
plugins/Statz/Statz.php on lines 154..178
plugins/Statz/Statz.php on lines 210..234
plugins/Statz/Statz.php on lines 266..290
plugins/Statz/Statz.php on lines 291..315
plugins/Statz/Statz.php on lines 639..663
plugins/Statz/Statz.php on lines 776..800
plugins/lolmewnStats/lolmewnStats.php on lines 24..48
plugins/lolmewnStats/lolmewnStats.php on lines 49..73
plugins/lolmewnStats/lolmewnStats.php on lines 136..160
plugins/lolmewnStats/lolmewnStats.php on lines 161..185
plugins/lolmewnStats/lolmewnStats.php on lines 186..210
plugins/lolmewnStats/lolmewnStats.php on lines 273..297
plugins/lolmewnStats/lolmewnStats.php on lines 298..322
plugins/lolmewnStats/lolmewnStats.php on lines 580..604
plugins/lolmewnStats/lolmewnStats.php on lines 648..672
plugins/lolmewnStats/lolmewnStats.php on lines 673..697
plugins/lolmewnStats/lolmewnStats.php on lines 698..722
plugins/lolmewnStats/lolmewnStats.php on lines 723..747
plugins/lolmewnStats/lolmewnStats.php on lines 767..791
plugins/lolmewnStats/lolmewnStats.php on lines 823..847
plugins/lolmewnStats/lolmewnStats.php on lines 867..891
plugins/lolmewnStats/lolmewnStats.php on lines 892..916

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

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