Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ local/codechecker/pear/PHP/scripts/phpcs --standard=local/codechecker/moodle --sniffs=moodle.PHP.ForbiddenGlobalUse ./
- FILE: /Users/stronk7/git_moodle/moodle/blocks/moodleblock.class.php
- ----------------------------------------------------------------------
- FOUND 1 ERROR AFFECTING 1 LINE
- ----------------------------------------------------------------------
- 813 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- ----------------------------------------------------------------------
- FILE: ...k7/git_moodle/moodle/blocks/myoverview/tests/myoverview_test.php
- ----------------------------------------------------------------------
- FOUND 11 ERRORS AFFECTING 11 LINES
- ----------------------------------------------------------------------
- 42 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 73 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 74 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 75 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 76 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 77 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 78 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 81 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 82 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 84 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 87 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- ----------------------------------------------------------------------
- FILE: ...nk7/git_moodle/moodle/blocks/starredcourses/classes/external.php
- ----------------------------------------------------------------------
- FOUND 3 ERRORS AFFECTING 3 LINES
- ----------------------------------------------------------------------
- 63 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 76 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 77 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- ----------------------------------------------------------------------
- FILE: /Users/stronk7/git_moodle/moodle/lib/outputrenderers.php
- ----------------------------------------------------------------------
- FOUND 2 ERRORS AFFECTING 2 LINES
- ----------------------------------------------------------------------
- 1363 | ERROR | global $OUTPUT cannot be used in renderers. Use
- | | $this->output.
- 1364 | ERROR | global $PAGE cannot be used in renderers. Use
- | | $this->page.
- ----------------------------------------------------------------------
- FILE: /Users/stronk7/git_moodle/moodle/lib/setuplib.php
- ----------------------------------------------------------------------
- FOUND 6 ERRORS AFFECTING 5 LINES
- ----------------------------------------------------------------------
- 1922 | ERROR | global $OUTPUT cannot be used in renderers. Use
- | | $this->output.
- 1922 | ERROR | global $PAGE cannot be used in renderers. Use
- | | $this->page.
- 1939 | ERROR | global $PAGE cannot be used in renderers. Use
- | | $this->page.
- 1942 | ERROR | global $PAGE cannot be used in renderers. Use
- | | $this->page.
- 1944 | ERROR | global $PAGE cannot be used in renderers. Use
- | | $this->page.
- 1945 | ERROR | global $OUTPUT cannot be used in renderers. Use
- | | $this->output.
- ----------------------------------------------------------------------
- FILE: /Users/stronk7/git_moodle/moodle/lib/blocklib.php
- ----------------------------------------------------------------------
- FOUND 13 ERRORS AFFECTING 13 LINES
- ----------------------------------------------------------------------
- 1408 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 1439 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 1446 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 1447 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 1448 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 1485 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 1516 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 1547 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 1548 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 1549 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 1606 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 1638 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- 1809 | ERROR | global $PAGE cannot be used in block classes. Use
- | | $this->page.
- ----------------------------------------------------------------------
- Time: 5 mins, 43.06 secs; Memory: 236.01Mb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement