Prechecker results: error


PHP lint problems

(0 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]


PHP coding style problems

(164 errors, 79 warnings)

This section shows the coding style problems detected in the code by phpcs [More info]

blocks/censusreport/adminsetting.class.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/censusreport/block_censusreport.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#32) Expected MOODLE_INTERNAL check or config.php inclusion
(#37) Visibility must be declared on method "init"
(#47) Visibility must be declared on method "get_content"
(#50) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#68) Line exceeds 132 characters; contains 134 characters
(#80) Visibility must be declared on method "instance_allow_config"
(#89) Visibility must be declared on method "has_config"
(#100) Visibility must be declared on method "check_field_status"
(#105) Variable "gbl_config" must not contain underscores.
(#106) Variable "gbl_config" must not contain underscores.
(#107) Variable "gbl_config" must not contain underscores.
(#108) Variable "gbl_config" must not contain underscores.
blocks/censusreport/cr_pdf.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#52) method name "CR_PDF::Header" must be in lower-case letters only
(#52) Visibility must be declared on method "Header"
(#64) Line exceeds 132 characters; contains 150 characters
(#84) method name "CR_PDF::Footer" must be in lower-case letters only
(#84) Visibility must be declared on method "Footer"
(#95) Expected 1 space before "+"; 0 found
(#95) Expected 1 space after "+"; 0 found
(#95) Expected 1 space before "-"; 0 found
(#95) Expected 1 space after "-"; 0 found
(#95) Expected 1 space before "+"; 0 found
(#95) Expected 1 space after "+"; 0 found
(#95) Expected 1 space before "-"; 0 found
(#95) Expected 1 space after "-"; 0 found
(#103) Expected 1 space before "+"; 0 found
(#103) Expected 1 space after "+"; 0 found
(#103) Expected 1 space before "-"; 0 found
(#103) Expected 1 space after "-"; 0 found
(#103) Expected 1 space before "+"; 0 found
(#103) Expected 1 space after "+"; 0 found
(#103) Expected 1 space before "-"; 0 found
(#103) Expected 1 space after "-"; 0 found
(#106) Line exceeds 132 characters; contains 146 characters
blocks/censusreport/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/censusreport/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#27) Expected MOODLE_INTERNAL check or config.php inclusion
(#30) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#36) Expected 1 space before "+"; 0 found
(#36) Expected 1 space after "+"; 0 found
blocks/censusreport/edit_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#26) Expected MOODLE_INTERNAL check or config.php inclusion
(#46) Variable "table_start" must not contain underscores.
(#46) Expected 1 space after "="; newline found
(#54) Variable "table_start" must not contain underscores.
(#59) Commas (,) must be followed by white space.
(#66) Variable "default_val" must not contain underscores.
(#67) Variable "default_val" must not contain underscores.
blocks/censusreport/lang/en/block_censusreport.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/censusreport/lib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#57) Visibility must be declared on method "__construct"
(#60) PHP4 style calls to parent constructors are not allowed; use "parent::__construct()" instead
(#63) Visibility must be declared on method "definition"
(#117) Line exceeds 132 characters; contains 140 characters
(#118) Line exceeds 132 characters; contains 140 characters
(#125) Commas (,) must be followed by white space.
(#164) Inline comments must end in full-stops, exclamation marks, or question marks
(#168) Inline comments must end in full-stops, exclamation marks, or question marks
(#170) Line exceeds 132 characters; contains 137 characters
(#179) Line exceeds 132 characters; contains 138 characters
(#198) Inline comments must start with a capital letter, digit or 3-dots sequence
(#198) Inline comments must end in full-stops, exclamation marks, or question marks
(#198) This comment is 86% valid code; is this commented out code?
(#198) No space found before comment text; expected "// get_string('nothingtoreport','block_censusreport');" but found "//get_string('nothingtoreport','block_censusreport');"
(#236) Line exceeds 132 characters; contains 135 characters
(#305) Whitespace found at end of line
(#397) The use of function sizeof() is forbidden; use count() instead
(#451) Inline comments must start with a capital letter, digit or 3-dots sequence
(#451) Inline comments must end in full-stops, exclamation marks, or question marks
(#457) Expected 1 space before "=>"; 0 found
(#457) Expected 1 space after "=>"; 0 found
(#464) Inline comments must start with a capital letter, digit or 3-dots sequence
(#464) Inline comments must end in full-stops, exclamation marks, or question marks
(#480) Inline comments must end in full-stops, exclamation marks, or question marks
(#512) Inline comments must end in full-stops, exclamation marks, or question marks
(#516) Inline comments must end in full-stops, exclamation marks, or question marks
(#529) Usage of ELSEIF not allowed; use ELSE IF instead
(#550) Inline comments must end in full-stops, exclamation marks, or question marks
(#589) Inline comments must end in full-stops, exclamation marks, or question marks
(#614) Inline comments must end in full-stops, exclamation marks, or question marks
(#679) Inline comments must end in full-stops, exclamation marks, or question marks
(#739) Inline comments must end in full-stops, exclamation marks, or question marks
(#798) Inline comments must end in full-stops, exclamation marks, or question marks
(#836) Inline comments must end in full-stops, exclamation marks, or question marks
(#850) Line exceeds 132 characters; contains 145 characters
(#856) Inline comments must end in full-stops, exclamation marks, or question marks
(#858) Inline comments must end in full-stops, exclamation marks, or question marks
(#860) Inline comments must end in full-stops, exclamation marks, or question marks
(#879) Inline comments must end in full-stops, exclamation marks, or question marks
(#881) Commas (,) must be followed by white space.
(#888) Inline comments must end in full-stops, exclamation marks, or question marks
(#896) Inline comments must end in full-stops, exclamation marks, or question marks
(#907) Inline comments must end in full-stops, exclamation marks, or question marks
(#910) Inline comments must end in full-stops, exclamation marks, or question marks
(#917) Inline comments must end in full-stops, exclamation marks, or question marks
(#921) Inline comments must start with a capital letter, digit or 3-dots sequence
(#922) Inline comments must end in full-stops, exclamation marks, or question marks
(#929) Inline comments must end in full-stops, exclamation marks, or question marks
(#944) Inline comments must end in full-stops, exclamation marks, or question marks
(#1023) Inline comments must end in full-stops, exclamation marks, or question marks
(#1027) Inline comments must end in full-stops, exclamation marks, or question marks
(#1030) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/censusreport/report.class.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#26) Expected MOODLE_INTERNAL check or config.php inclusion
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) PHP4 style constructors are not allowed; use "__construct()" instead
(#63) Visibility must be declared on method "report"
(#89) Inline comments must start with a capital letter, digit or 3-dots sequence
(#89) Line indented incorrectly; expected at least 4 spaces, found 0
(#89) 69 slashes comments are not allowed; use "// Comment." instead
(#90) Line indented incorrectly; expected at least 4 spaces, found 0
(#90) Expected 1 space before comment text but found 65; use block comment if you need indentation
(#91) Line indented incorrectly; expected at least 4 spaces, found 0
(#91) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#92) Line indented incorrectly; expected at least 4 spaces, found 0
(#92) Expected 1 space before comment text but found 65; use block comment if you need indentation
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Line indented incorrectly; expected at least 4 spaces, found 0
(#93) 69 slashes comments are not allowed; use "// Comment." instead
(#106) Visibility must be declared on method "add_column"
(#121) Visibility must be declared on method "set_title"
(#132) Visibility must be declared on method "set_default_sort"
(#154) Visibility must be declared on method "set_baseurl"
(#165) Visibility must be declared on method "set_pageurl"
(#175) Visibility must be declared on method "get_data"
(#176) Line indented incorrectly; expected at least 8 spaces, found 4
(#176) 3 slashes comments are not allowed; use "// Comment." instead
(#180) Inline comments must start with a capital letter, digit or 3-dots sequence
(#180) Line indented incorrectly; expected at least 4 spaces, found 0
(#180) 69 slashes comments are not allowed; use "// Comment." instead
(#181) Line indented incorrectly; expected at least 4 spaces, found 0
(#181) Expected 1 space before comment text but found 65; use block comment if you need indentation
(#182) Line indented incorrectly; expected at least 4 spaces, found 0
(#182) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#183) Line indented incorrectly; expected at least 4 spaces, found 0
(#183) Expected 1 space before comment text but found 65; use block comment if you need indentation
(#184) Inline comments must end in full-stops, exclamation marks, or question marks
(#184) Line indented incorrectly; expected at least 4 spaces, found 0
(#184) 69 slashes comments are not allowed; use "// Comment." instead
(#190) Visibility must be declared on method "display"
(#207) Expected 1 space before ":"; 0 found
(#207) Expected 1 space after ":"; 0 found
(#208) Expected 1 space before ":"; 0 found
(#208) Expected 1 space after ":"; 0 found
(#258) Visibility must be declared on method "download"
(#266) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#332) Inline comments must end in full-stops, exclamation marks, or question marks
(#332) Line indented incorrectly; expected at least 16 spaces, found 12
(#332) 3 slashes comments are not allowed; use "// Comment." instead
(#335) Inline comments must end in full-stops, exclamation marks, or question marks
(#335) Line indented incorrectly; expected at least 16 spaces, found 12
(#335) 3 slashes comments are not allowed; use "// Comment." instead
(#338) Inline comments must end in full-stops, exclamation marks, or question marks
(#338) Line indented incorrectly; expected at least 16 spaces, found 12
(#338) 3 slashes comments are not allowed; use "// Comment." instead
(#342) Inline comments must end in full-stops, exclamation marks, or question marks
(#342) Line indented incorrectly; expected at least 16 spaces, found 12
(#342) 3 slashes comments are not allowed; use "// Comment." instead
(#399) Inline comments must end in full-stops, exclamation marks, or question marks
(#399) 3 slashes comments are not allowed; use "// Comment." instead
(#406) Inline comments must end in full-stops, exclamation marks, or question marks
(#406) 4 slashes comments are not allowed; use "// Comment." instead
(#407) Expected "if (...) {\n"; found "if(...) {\n"
(#411) Inline comments must end in full-stops, exclamation marks, or question marks
(#421) Variable "top_lines" must not contain underscores.
(#422) Variable "top_size" must not contain underscores.
(#422) The use of function sizeof() is forbidden; use count() instead
(#422) Variable "top_lines" must not contain underscores.
(#424) Variable "bottom_lines" must not contain underscores.
(#425) Variable "bottom_size" must not contain underscores.
(#425) The use of function sizeof() is forbidden; use count() instead
(#425) Variable "bottom_lines" must not contain underscores.
(#427) Variable "bottom_size" must not contain underscores.
(#428) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#435) 3 slashes comments are not allowed; use "// Comment." instead
(#455) Inline comments must start with a capital letter, digit or 3-dots sequence
(#455) Inline comments must end in full-stops, exclamation marks, or question marks
(#455) This comment is 53% valid code; is this commented out code?
(#455) Line indented incorrectly; expected at least 32 spaces, found 0
(#455) Expected 1 space before comment text but found 32; use block comment if you need indentation
(#520) Visibility must be declared on method "pdf_output"
(#522) No space found before comment text; expected "// Output PDF to some destination" but found "//Output PDF to some destination"
(#523) Inline comments must end in full-stops, exclamation marks, or question marks
(#523) No space found before comment text; expected "// Normalize parameters" but found "//Normalize parameters"
(#552) Visibility must be declared on method "csv_escape_string"
(#553) The use of function ereg_replace is discouraged from PHP version 5.3; use preg_replace instead
(#553) Function ereg_replace() has been deprecated
(#554) The use of function ereg_replace is discouraged from PHP version 5.3; use preg_replace instead
(#554) Function ereg_replace() has been deprecated
(#567) Visibility must be declared on method "print_download_menu"
(#573) Line indented incorrectly; expected at least 12 spaces, found 8
(#573) 3 slashes comments are not allowed; use "// Comment." instead
(#608) Visibility must be declared on method "print_header"
(#614) Inline comments must end in full-stops, exclamation marks, or question marks
(#614) Line indented incorrectly; expected at least 8 spaces, found 4
(#614) 3 slashes comments are not allowed; use "// Comment." instead
(#640) Line indented incorrectly; expected at least 8 spaces, found 4
(#640) 3 slashes comments are not allowed; use "// Comment." instead
(#665) Line exceeds 132 characters; contains 134 characters
(#680) Visibility must be declared on method "print_footer"
(#697) Visibility must be declared on method "main"
(#698) Line indented incorrectly; expected at least 8 spaces, found 4
(#698) 3 slashes comments are not allowed; use "// Comment." instead
blocks/censusreport/report.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#29) 3 slashes comments are not allowed; use "// Comment." instead
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) Expected "if (...) {\n"; found "if (...){\n"
(#80) Expected 1 space before "+="; 0 found
(#80) Expected 1 space after "+="; 0 found
blocks/censusreport/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#110) Expected 1 space before ":"; 0 found
blocks/censusreport/styles.php
(#1) No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
blocks/censusreport/tests/block_censusreport_test.php
(#90) Variable "expected_count" must not contain underscores.
(#92) Variable "expected_count" must not contain underscores.
(#95) Line indented incorrectly; expected 12 spaces, found 11
(#213) Closing brace indented incorrectly; expected 11 spaces, found 12
(#243) Visibility must be declared on method "test_censusreport_null_grade_check"
(#247) Inline comments must end in full-stops, exclamation marks, or question marks
(#288) Inline comments must end in full-stops, exclamation marks, or question marks
(#290) Line exceeds 132 characters; contains 164 characters
(#307) Inline comments must end in full-stops, exclamation marks, or question marks
(#317) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/censusreport/upload_image.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#47) Variable "upload_form" must not contain underscores.
(#49) Variable "upload_form" must not contain underscores.
(#51) Variable "upload_form" must not contain underscores.
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Variable "upload_form" must not contain underscores.
(#57) Variable "upload_form" must not contain underscores.
(#65) Variable "upload_form" must not contain underscores.
blocks/censusreport/upload_image_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/censusreport/version.php
(#17) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#18) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 0 warnings)

This section shows the coding style problems detected in the code by jshint [More info]


CSS problems

(0 errors, 0 warnings)

This section shows CSS problems detected by csslint [More info]


PHPDocs style problems

(101 errors, 14 warnings)

This section shows the phpdocs problems detected in the code by local_moodlecheck [More info]

blocks/censusreport/adminsetting.class.php
(#2) Empty line found after PHP open tag
(#33) Function block_censusreport_admin_setting_upload::__construct is not documented
(#37) Function block_censusreport_admin_setting_upload::output_html is not documented
(#29) Class block_censusreport_admin_setting_upload does not have @copyright tag
(#29) Class block_censusreport_admin_setting_upload does not have @license tag
blocks/censusreport/block_censusreport.php
(#2) Empty line found after PHP open tag
(#96) Phpdocs for function block_censusreport::check_field_status has incomplete parameters list
(#26) Class block_censusreport does not have @license tag
(#19) Package blocks-censusreport is not valid
blocks/censusreport/cr_pdf.php
(#2) Empty line found after PHP open tag
(#36) Variable CR_PDF::$title is not documented
(#37) Variable CR_PDF::$signatureline is not documented
(#38) Variable CR_PDF::$dateline is not documented
(#39) Variable CR_PDF::$headers is not documented
(#40) Variable CR_PDF::$fontsize is not documented
(#41) Variable CR_PDF::$titlealign is not documented
(#42) Variable CR_PDF::$topalign is not documented
(#43) Variable CR_PDF::$top is not documented
(#44) Variable CR_PDF::$bottom is not documented
(#45) Variable CR_PDF::$widths is not documented
(#19) Package blocks-censusreport is not valid
blocks/censusreport/db/access.php
(#2) Empty line found after PHP open tag
(#19) Package blocks-censusreport is not valid
blocks/censusreport/db/upgrade.php
(#2) Empty line found after PHP open tag
(#27) Function xmldb_block_censusreport_upgrade is not documented
(#16) No one-line description found in phpdocs for file
(#20) Package blocks-censusreport is not valid
blocks/censusreport/edit_form.php
(#2) Empty line found after PHP open tag
(#26) Class block_censusreport_edit_form is not documented
(#27) Function block_censusreport_edit_form::specific_definition is not documented
(#19) Package blocks-censusreport is not valid
blocks/censusreport/lang/en/block_censusreport.php
(#2) Empty line found after PHP open tag
(#16) File-level phpdocs block is not found
blocks/censusreport/lib.php
(#2) Empty line found after PHP open tag
(#53) Class bcr_setup_query_form is not documented
(#57) Function bcr_setup_query_form::__construct is not documented
(#63) Function bcr_setup_query_form::definition is not documented
(#55) Variable bcr_setup_query_form::$iid is not documented
(#433) Phpdocs for function bcr_build_grades_array has incomplete parameters list
(#846) Phpdocs for function bcr_check_grades_histories_initial_submission has incomplete parameters list
(#956) Phpdocs for function bcr_check_for_non_null_grade has incomplete parameters list
(#1015) Phpdocs for function bcr_results_sort has incomplete parameters list
(#19) Package blocks-censusreport is not valid
blocks/censusreport/report.class.php
(#2) Empty line found after PHP open tag
(#26) Class report is not documented
(#520) Function report::pdf_output is not documented
(#28) Variable report::$id is not documented
(#29) Variable report::$title is not documented
(#30) Variable report::$type is not documented
(#31) Variable report::$table is not documented
(#32) Variable report::$columns is not documented
(#33) Variable report::$headers is not documented
(#34) Variable report::$footers is not documented
(#35) Variable report::$align is not documented
(#36) Variable report::$sortable is not documented
(#37) Variable report::$wrap is not documented
(#38) Variable report::$defsort is not documented
(#39) Variable report::$defdir is not documented
(#40) Variable report::$data is not documented
(#41) Variable report::$numrecs is not documented
(#42) Variable report::$baseurl is not documented
(#43) Variable report::$pagerl is not documented
(#44) Variable report::$sort is not documented
(#45) Variable report::$dir is not documented
(#46) Variable report::$page is not documented
(#47) Variable report::$perpage is not documented
(#48) Variable report::$search is not documented
(#49) Variable report::$alpha is not documented
(#50) Variable report::$fileformats is not documented
(#51) Variable report::$top is not documented
(#52) Variable report::$bottom is not documented
(#53) Variable report::$signatureline is not documented
(#54) Variable report::$dateline is not documented
(#89) Found comment starting with three or more slashes
(#93) Found comment starting with three or more slashes
(#176) Found comment starting with three or more slashes
(#180) Found comment starting with three or more slashes
(#184) Found comment starting with three or more slashes
(#332) Found comment starting with three or more slashes
(#335) Found comment starting with three or more slashes
(#338) Found comment starting with three or more slashes
(#342) Found comment starting with three or more slashes
(#399) Found comment starting with three or more slashes
(#406) Found comment starting with three or more slashes
(#435) Found comment starting with three or more slashes
(#573) Found comment starting with three or more slashes
(#614) Found comment starting with three or more slashes
(#640) Found comment starting with three or more slashes
(#698) Found comment starting with three or more slashes
(#118) Phpdocs for function report::set_title has incomplete parameters list
(#564) Phpdocs for function report::print_download_menu has incomplete parameters list
(#605) Phpdocs for function report::print_header has incomplete parameters list
(#677) Phpdocs for function report::print_footer has incomplete parameters list
(#692) Phpdocs for function report::main has incomplete parameters list
(#61) Invalid phpdocs tag @retrn used
(#173) Invalid phpdocs tag @TODO: used
(#695) Invalid phpdocs tag @TODO: used
(#19) Package blocks-censusreport is not valid
blocks/censusreport/report.php
(#2) Empty line found after PHP open tag
(#29) Found comment starting with three or more slashes
(#19) Package blocks-censusreport is not valid
blocks/censusreport/settings.php
(#2) Empty line found after PHP open tag
(#19) Package blocks-censusreport is not valid
blocks/censusreport/styles.php
(#2) Empty line found after PHP open tag
(#1) File-level phpdocs block is not found
blocks/censusreport/tests/block_censusreport_test.php
(#31) Class block_censusreport_testcase is not documented
(#33) Variable block_censusreport_testcase::$startdate is not documented
(#34) Variable block_censusreport_testcase::$enddate is not documented
(#21) Category phpunit is not valid
blocks/censusreport/upload_image.php
(#2) Empty line found after PHP open tag
blocks/censusreport/upload_image_form.php
(#2) Empty line found after PHP open tag
(#34) Class block_censusreport_upload_image_form is not documented
(#36) Function block_censusreport_upload_image_form::definition is not documented
(#54) Phpdocs for function block_censusreport_upload_image_form::validation has incomplete parameters list
blocks/censusreport/version.php
(#17) File-level phpdocs block is not found

Update savepoints problems

(2 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

blocks/censusreport/db/upgrade.php
Detected more 'if' blocks (1) than 'savepoint' calls (0)
version 2012051801 is missing corresponding savepoint call

Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(0 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

This section shows problems detected in mustache templates [More info]