railpage/railpagecore

View on GitHub
lib/Timetables/Timetables.php

Summary

Maintainability
C
1 day
Test Coverage

Method getUpcoming has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public function getUpcoming($Date = false) {
            if (!$Date) {
                $Date = new DateTime;
                $Date->add(new DateInterval("PT60M"));
            }
Severity: Minor
Found in lib/Timetables/Timetables.php - About 2 hrs to fix

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

            public function getUpcoming($Date = false) {
    Severity: Minor
    Found in lib/Timetables/Timetables.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

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

            public function yieldPointsWithoutGeodata() {
                $query = "SELECT id FROM timetable_points WHERE lat = '0.0000000000000' OR lon = '0.0000000000000' ORDER BY name";
                
                foreach ($this->db->fetchAll($query) as $row) {
                    yield new Point($row['id']);
    Severity: Major
    Found in lib/Timetables/Timetables.php and 5 other locations - About 1 hr to fix
    lib/Feedback/Feedback.php on lines 32..43
    lib/Forums/Forums.php on lines 499..505
    lib/Ideas/Ideas.php on lines 92..100
    lib/SiteMessage/SiteMessage.php on lines 109..115
    lib/SiteMessages/SiteMessages.php on lines 26..32

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

    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

                if (!$Date) {
                    $Date = new DateTime;
                    $Date->add(new DateInterval("PT60M"));
                }
    Severity: Major
    Found in lib/Timetables/Timetables.php and 1 other location - About 1 hr to fix
    lib/Timetables/Point.php on lines 210..213

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

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

                $this->url->pointnogeo = sprintf("%s?mode=point.nogeo", $this->url->url);
    Severity: Major
    Found in lib/Timetables/Timetables.php and 22 other locations - About 45 mins to fix
    lib/Chronicle/Chronicle.php on lines 42..42
    lib/Chronicle/Chronicle.php on lines 43..43
    lib/Chronicle/Chronicle.php on lines 44..44
    lib/Chronicle/Chronicle.php on lines 45..45
    lib/Chronicle/Chronicle.php on lines 46..46
    lib/Images/Competition.php on lines 150..150
    lib/Jobs/Job.php on lines 196..196
    lib/Locos/Locomotive.php on lines 432..432
    lib/Locos/Locomotive.php on lines 433..433
    lib/Railcams/Camera.php on lines 258..258
    lib/Railcams/Camera.php on lines 259..259
    lib/Railcams/Camera.php on lines 261..261
    lib/Railcams/Camera.php on lines 262..262
    lib/Railcams/Camera.php on lines 263..263
    lib/Railcams/Camera.php on lines 264..264
    lib/Railcams/Camera.php on lines 266..266
    lib/Timetables/Point.php on lines 115..115
    lib/Timetables/Timetables.php on lines 41..41
    lib/Timetables/Timetables.php on lines 42..42
    lib/Timetables/Train.php on lines 183..183
    lib/Users/Group.php on lines 222..222
    lib/Users/Group.php on lines 223..223

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

                $this->url->import = sprintf("%s?mode=import", $this->url->url);
    Severity: Major
    Found in lib/Timetables/Timetables.php and 22 other locations - About 45 mins to fix
    lib/Chronicle/Chronicle.php on lines 42..42
    lib/Chronicle/Chronicle.php on lines 43..43
    lib/Chronicle/Chronicle.php on lines 44..44
    lib/Chronicle/Chronicle.php on lines 45..45
    lib/Chronicle/Chronicle.php on lines 46..46
    lib/Images/Competition.php on lines 150..150
    lib/Jobs/Job.php on lines 196..196
    lib/Locos/Locomotive.php on lines 432..432
    lib/Locos/Locomotive.php on lines 433..433
    lib/Railcams/Camera.php on lines 258..258
    lib/Railcams/Camera.php on lines 259..259
    lib/Railcams/Camera.php on lines 261..261
    lib/Railcams/Camera.php on lines 262..262
    lib/Railcams/Camera.php on lines 263..263
    lib/Railcams/Camera.php on lines 264..264
    lib/Railcams/Camera.php on lines 266..266
    lib/Timetables/Point.php on lines 115..115
    lib/Timetables/Timetables.php on lines 42..42
    lib/Timetables/Timetables.php on lines 43..43
    lib/Timetables/Train.php on lines 183..183
    lib/Users/Group.php on lines 222..222
    lib/Users/Group.php on lines 223..223

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

                $this->url->location = sprintf("%s?mode=location", $this->url->url);
    Severity: Major
    Found in lib/Timetables/Timetables.php and 22 other locations - About 45 mins to fix
    lib/Chronicle/Chronicle.php on lines 42..42
    lib/Chronicle/Chronicle.php on lines 43..43
    lib/Chronicle/Chronicle.php on lines 44..44
    lib/Chronicle/Chronicle.php on lines 45..45
    lib/Chronicle/Chronicle.php on lines 46..46
    lib/Images/Competition.php on lines 150..150
    lib/Jobs/Job.php on lines 196..196
    lib/Locos/Locomotive.php on lines 432..432
    lib/Locos/Locomotive.php on lines 433..433
    lib/Railcams/Camera.php on lines 258..258
    lib/Railcams/Camera.php on lines 259..259
    lib/Railcams/Camera.php on lines 261..261
    lib/Railcams/Camera.php on lines 262..262
    lib/Railcams/Camera.php on lines 263..263
    lib/Railcams/Camera.php on lines 264..264
    lib/Railcams/Camera.php on lines 266..266
    lib/Timetables/Point.php on lines 115..115
    lib/Timetables/Timetables.php on lines 41..41
    lib/Timetables/Timetables.php on lines 43..43
    lib/Timetables/Train.php on lines 183..183
    lib/Users/Group.php on lines 222..222
    lib/Users/Group.php on lines 223..223

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

                        "date" => array(
                            "time" => $event['time'],
                            "going" => $event['going']
                        )
    Severity: Major
    Found in lib/Timetables/Timetables.php and 4 other locations - About 40 mins to fix
    lib/Feedback/Feedback.php on lines 88..91
    lib/Feedback/Feedback.php on lines 92..95
    lib/Locations/Locations.php on lines 577..580
    lib/Place.php on lines 511..514

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

            public function setOrganisation(Organisation $Organisation) {
                $this->Organisation = $Organisation;
                
                return $this;
            }
    Severity: Major
    Found in lib/Timetables/Timetables.php and 24 other locations - About 40 mins to fix
    lib/Feedback/Feedback.php on lines 52..56
    lib/Gallery/Album.php on lines 279..285
    lib/Gallery/Album.php on lines 317..323
    lib/Gallery/Image.php on lines 278..284
    lib/Gallery/Image.php on lines 460..466
    lib/Glossary/Entry.php on lines 302..306
    lib/Locations/Correction.php on lines 118..124
    lib/News/Article.php on lines 941..945
    lib/Prerender/Prerender.php on lines 89..94
    lib/Railcams/Footage.php on lines 89..95
    lib/Railcams/Photo.php on lines 143..147
    lib/Railcams/Storage.php on lines 95..101
    lib/Railcams/Storage.php on lines 110..116
    lib/SiteMessages/SiteMessage.php on lines 206..210
    lib/Timetables/Timetables.php on lines 52..56
    lib/Timetables/Timetables.php on lines 64..68
    lib/Users/SockpuppetManager.php on lines 61..67
    lib/Warnings/Warning.php on lines 249..255
    lib/Warnings/Warning.php on lines 267..273
    lib/AppCore.php on lines 401..407
    lib/AppCore.php on lines 416..422
    lib/AppCore.php on lines 431..437
    lib/AppCore.php on lines 463..469
    lib/AppCore.php on lines 478..484

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

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

            public function setTrain(Train $Train) {
                $this->Train = $Train;
                
                return $this;
            }
    Severity: Major
    Found in lib/Timetables/Timetables.php and 24 other locations - About 40 mins to fix
    lib/Feedback/Feedback.php on lines 52..56
    lib/Gallery/Album.php on lines 279..285
    lib/Gallery/Album.php on lines 317..323
    lib/Gallery/Image.php on lines 278..284
    lib/Gallery/Image.php on lines 460..466
    lib/Glossary/Entry.php on lines 302..306
    lib/Locations/Correction.php on lines 118..124
    lib/News/Article.php on lines 941..945
    lib/Prerender/Prerender.php on lines 89..94
    lib/Railcams/Footage.php on lines 89..95
    lib/Railcams/Photo.php on lines 143..147
    lib/Railcams/Storage.php on lines 95..101
    lib/Railcams/Storage.php on lines 110..116
    lib/SiteMessages/SiteMessage.php on lines 206..210
    lib/Timetables/Timetables.php on lines 52..56
    lib/Timetables/Timetables.php on lines 76..80
    lib/Users/SockpuppetManager.php on lines 61..67
    lib/Warnings/Warning.php on lines 249..255
    lib/Warnings/Warning.php on lines 267..273
    lib/AppCore.php on lines 401..407
    lib/AppCore.php on lines 416..422
    lib/AppCore.php on lines 431..437
    lib/AppCore.php on lines 463..469
    lib/AppCore.php on lines 478..484

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

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

            public function setPoint(Point $Point) {
                $this->Point = $Point;
                
                return $this;
            }
    Severity: Major
    Found in lib/Timetables/Timetables.php and 24 other locations - About 40 mins to fix
    lib/Feedback/Feedback.php on lines 52..56
    lib/Gallery/Album.php on lines 279..285
    lib/Gallery/Album.php on lines 317..323
    lib/Gallery/Image.php on lines 278..284
    lib/Gallery/Image.php on lines 460..466
    lib/Glossary/Entry.php on lines 302..306
    lib/Locations/Correction.php on lines 118..124
    lib/News/Article.php on lines 941..945
    lib/Prerender/Prerender.php on lines 89..94
    lib/Railcams/Footage.php on lines 89..95
    lib/Railcams/Photo.php on lines 143..147
    lib/Railcams/Storage.php on lines 95..101
    lib/Railcams/Storage.php on lines 110..116
    lib/SiteMessages/SiteMessage.php on lines 206..210
    lib/Timetables/Timetables.php on lines 64..68
    lib/Timetables/Timetables.php on lines 76..80
    lib/Users/SockpuppetManager.php on lines 61..67
    lib/Warnings/Warning.php on lines 249..255
    lib/Warnings/Warning.php on lines 267..273
    lib/AppCore.php on lines 401..407
    lib/AppCore.php on lines 416..422
    lib/AppCore.php on lines 431..437
    lib/AppCore.php on lines 463..469
    lib/AppCore.php on lines 478..484

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

    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

                $this->url = new Url($this->Module->url);
    Severity: Minor
    Found in lib/Timetables/Timetables.php and 1 other location - About 30 mins to fix
    lib/Locos/Date.php on lines 395..395

    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

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

                    $Train = new Train($event['train_number'], $event['train_provider']);
    Severity: Minor
    Found in lib/Timetables/Timetables.php and 1 other location - About 30 mins to fix
    lib/Locations/Location.php on lines 355..355

    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

    The parameter $Train is not named in camelCase.
    Open

            public function setTrain(Train $Train) {
                $this->Train = $Train;
                
                return $this;
            }
    Severity: Minor
    Found in lib/Timetables/Timetables.php by phpmd

    CamelCaseParameterName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name parameters.

    Example

    class ClassName {
        public function doSomething($user_name) {
        }
    }

    Source

    The parameter $Point is not named in camelCase.
    Open

            public function setPoint(Point $Point) {
                $this->Point = $Point;
                
                return $this;
            }
    Severity: Minor
    Found in lib/Timetables/Timetables.php by phpmd

    CamelCaseParameterName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name parameters.

    Example

    class ClassName {
        public function doSomething($user_name) {
        }
    }

    Source

    The parameter $Organisation is not named in camelCase.
    Open

            public function setOrganisation(Organisation $Organisation) {
                $this->Organisation = $Organisation;
                
                return $this;
            }
    Severity: Minor
    Found in lib/Timetables/Timetables.php by phpmd

    CamelCaseParameterName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name parameters.

    Example

    class ClassName {
        public function doSomething($user_name) {
        }
    }

    Source

    The parameter $Date is not named in camelCase.
    Open

            public function getUpcoming($Date = false) {
                if (!$Date) {
                    $Date = new DateTime;
                    $Date->add(new DateInterval("PT60M"));
                }
    Severity: Minor
    Found in lib/Timetables/Timetables.php by phpmd

    CamelCaseParameterName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name parameters.

    Example

    class ClassName {
        public function doSomething($user_name) {
        }
    }

    Source

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public function yieldPointsWithoutGeodata() {

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            }

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            }

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public function getUpcoming($Date = false) {

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                }

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                }

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            }

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            }

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public function setOrganisation(Organisation $Organisation) {

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public function setPoint(Point $Point) {

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            }

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public function setTrain(Train $Train) {

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            }

    Line indented incorrectly; expected 0 spaces, found 4
    Open

        }

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                if (!$Date) {

    Line indented incorrectly; expected 0 spaces, found 4
    Open

        class Timetables extends AppCore {

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            public function __construct() {

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                }

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                foreach ($results as $event) {

    Line indented incorrectly; expected 8 spaces, found 12
    Open

                foreach ($this->db->fetchAll($query) as $row) {

    There are no issues that match your filters.

    Category
    Status