railpage/railpagecore

View on GitHub
lib/Locations/Region.php

Summary

Maintainability
C
7 hrs
Test Coverage

Method load has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private function load($country, $region) {

            if (filter_var($country, FILTER_VALIDATE_INT)) {
                // We're looking up a WoE ID
                $woe = $this->fetchWoE($country, $region);
Severity: Minor
Found in lib/Locations/Region.php - About 1 hr to fix

    The method __construct has a boolean flag argument $region, which is a certain sign of a Single Responsibility Principle violation.
    Open

            public function __construct($country = null, $region = false) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpmd

    BooleanArgumentFlag

    Since: 1.4.0

    A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

    Example

    class Foo {
        public function bar($flag = true) {
        }
    }

    Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

    The method getLocations has a boolean flag argument $country, which is a certain sign of a Single Responsibility Principle violation.
    Open

            public function getLocations($region = false, $country = false) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpmd

    BooleanArgumentFlag

    Since: 1.4.0

    A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

    Example

    class Foo {
        public function bar($flag = true) {
        }
    }

    Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

    The method getLocations has a boolean flag argument $region, which is a certain sign of a Single Responsibility Principle violation.
    Open

            public function getLocations($region = false, $country = false) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpmd

    BooleanArgumentFlag

    Since: 1.4.0

    A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

    Example

    class Foo {
        public function bar($flag = true) {
        }
    }

    Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

    The method fetchWoE uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
    Open

                } else {
                    $woe = Place::getWOEData($region . ", " . strtoupper($country));
                }
    Severity: Minor
    Found in lib/Locations/Region.php by phpmd

    ElseExpression

    Since: 1.4.0

    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example

    class Foo
    {
        public function bar($flag)
        {
            if ($flag) {
                // one branch
            } else {
                // another branch
            }
        }
    }

    Source https://phpmd.org/rules/cleancode.html#elseexpression

    Avoid unused parameters such as '$country'.
    Open

            public function getLocations($region = false, $country = false) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpmd

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    Avoid unused parameters such as '$region'.
    Open

            public function getLocations($region = false, $country = false) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpmd

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

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

                $this->url = new Url(sprintf("%s/%s", $this->Country->url, $this->slug));
    Severity: Major
    Found in lib/Locations/Region.php and 11 other locations - About 1 hr to fix
    lib/Events/Event.php on lines 475..475
    lib/Events/EventCategory.php on lines 232..232
    lib/Gallery/Image.php on lines 207..207
    lib/Glossary/Entry.php on lines 227..227
    lib/Ideas/Idea.php on lines 186..186
    lib/Jobs/Job.php on lines 195..195
    lib/Jobs/Job.php on lines 315..315
    lib/Locos/Type.php on lines 106..106
    lib/Locos/Type.php on lines 133..133
    lib/News/Topic.php on lines 147..147
    lib/Timetables/Point.php on lines 114..114

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

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

                $this->boundingBox->southWest->lat = $woe['boundingBox']['southWest']['latitude'];
    Severity: Major
    Found in lib/Locations/Region.php and 7 other locations - About 45 mins to fix
    lib/Locations/Country.php on lines 134..134
    lib/Locations/Country.php on lines 135..135
    lib/Locations/Country.php on lines 138..138
    lib/Locations/Country.php on lines 139..139
    lib/Locations/Region.php on lines 157..157
    lib/Locations/Region.php on lines 158..158
    lib/Locations/Region.php on lines 162..162

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

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

                $this->boundingBox->northEast->lat = $woe['boundingBox']['northEast']['latitude'];
    Severity: Major
    Found in lib/Locations/Region.php and 7 other locations - About 45 mins to fix
    lib/Locations/Country.php on lines 134..134
    lib/Locations/Country.php on lines 135..135
    lib/Locations/Country.php on lines 138..138
    lib/Locations/Country.php on lines 139..139
    lib/Locations/Region.php on lines 158..158
    lib/Locations/Region.php on lines 161..161
    lib/Locations/Region.php on lines 162..162

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

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

                $this->boundingBox->northEast->lon = $woe['boundingBox']['northEast']['longitude'];
    Severity: Major
    Found in lib/Locations/Region.php and 7 other locations - About 45 mins to fix
    lib/Locations/Country.php on lines 134..134
    lib/Locations/Country.php on lines 135..135
    lib/Locations/Country.php on lines 138..138
    lib/Locations/Country.php on lines 139..139
    lib/Locations/Region.php on lines 157..157
    lib/Locations/Region.php on lines 161..161
    lib/Locations/Region.php on lines 162..162

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

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

                $this->boundingBox->southWest->lon = $woe['boundingBox']['southWest']['longitude'];
    Severity: Major
    Found in lib/Locations/Region.php and 7 other locations - About 45 mins to fix
    lib/Locations/Country.php on lines 134..134
    lib/Locations/Country.php on lines 135..135
    lib/Locations/Country.php on lines 138..138
    lib/Locations/Country.php on lines 139..139
    lib/Locations/Region.php on lines 157..157
    lib/Locations/Region.php on lines 158..158
    lib/Locations/Region.php on lines 161..161

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

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

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

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

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

    Refactorings

    Further Reading

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

                    $row['url'] = $this->url . "/" . $row['slug'];
    Severity: Major
    Found in lib/Locations/Region.php and 2 other locations - About 45 mins to fix
    lib/Locations/Country.php on lines 243..243
    lib/Locos/LocoClass.php on lines 520..520

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

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

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

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

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

    Refactorings

    Further Reading

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

                if (isset( $woe['timezone'] )) {
                    $this->timezone = $woe['timezone'];
                }
    Severity: Major
    Found in lib/Locations/Region.php and 2 other locations - About 40 mins to fix
    lib/Locos/LocoClass.php on lines 366..368
    lib/Users/User.php on lines 1074..1076

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

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

                if (is_null($country)) {
                    throw new InvalidArgumentException("No country was specified");
                }
    Severity: Major
    Found in lib/Locations/Region.php and 20 other locations - About 35 mins to fix
    lib/Events/EventDate.php on lines 372..374
    lib/Images/Image.php on lines 963..965
    lib/Images/Image.php on lines 1095..1097
    lib/Images/Images.php on lines 96..98
    lib/Images/Images.php on lines 137..139
    lib/Locos/Locos.php on lines 590..592
    lib/Locos/Locos.php on lines 901..903
    lib/Locos/Locos.php on lines 925..927
    lib/Railcams/Storage/LocalFS.php on lines 127..129
    lib/Users/User.php on lines 2572..2574
    lib/Users/User.php on lines 2576..2578
    lib/Users/User.php on lines 2584..2586
    lib/Users/Utility/PasswordUtility.php on lines 70..72
    lib/Users/Utility/PasswordUtility.php on lines 74..76
    lib/Users/Utility/PasswordUtility.php on lines 78..80
    lib/API.php on lines 124..126
    lib/API.php on lines 194..196
    lib/BanControl/BanControl.php on lines 243..245
    lib/BanControl/BanControl.php on lines 354..356
    lib/BanControl/BanControl.php on lines 358..360

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

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

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

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

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

    Refactorings

    Further Reading

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

                if (isset( $woe['places']['place'][0]['name'] )) {
                    $this->slug = $region;
                    $this->Country = new Country($country);
    
                    return $woe['places']['place'][0];
    Severity: Minor
    Found in lib/Locations/Region.php and 2 other locations - About 30 mins to fix
    lib/Images/Image.php on lines 697..697
    lib/Locations/Country.php on lines 112..140

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

    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

    Function closing brace must go on the next line following the body; found 1 blank lines before brace
    Open

            }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Function closing brace must go on the next line following the body; found 1 blank lines before brace
    Open

            }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Function closing brace must go on the next line following the body; found 1 blank lines before brace
    Open

            }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Function closing brace must go on the next line following the body; found 1 blank lines before brace
    Open

            }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public $url;
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public function __construct($country = null, $region = false) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public $Country;
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                if ($region === false && !preg_match("@[a-zA-Z]+@", $country)) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                if (isset( $woe['places']['place'][0]['name'] )) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public function getLocations($region = false, $country = false) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                foreach ($this->db->fetchAll($query, array( $this->Country->code, $this->slug )) as $row) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public $boundingBox;
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 0 spaces, found 4
    Open

        }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 0 spaces, found 4
    Open

        class Region extends Locations {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                if (isset( $woe['place'] )) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                if (isset( $woe['timezone'] )) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                } else {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public $code;
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            private function fetchWoE($country, $region) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public function __toString() {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                if (filter_var($country, FILTER_VALIDATE_INT)) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                if (!isset($woe)) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                if (is_null($country)) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                if (empty( $this->name )) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public $name;
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            private function load($country, $region) {
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public $slug;
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public $centre;
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public $timezone;
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                }
    Severity: Minor
    Found in lib/Locations/Region.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status