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

(88 errors, 14 warnings)

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

mod/lessonspace/classes/analytics/indicator/activity_base.php
(#38) Opening brace should be on the same line as the declaration
mod/lessonspace/classes/analytics/indicator/cognitive_depth.php
(#38) Opening brace should be on the same line as the declaration
(#48) Opening brace should be on the same line as the declaration
(#60) Opening brace should be on the same line as the declaration
mod/lessonspace/classes/analytics/indicator/social_breadth.php
(#40) Opening brace should be on the same line as the declaration
(#50) Opening brace should be on the same line as the declaration
(#62) Opening brace should be on the same line as the declaration
mod/lessonspace/classes/api_service.php
(#27) "require_once" must be immediately followed by an open parenthesis
(#47) Opening brace should be on the same line as the declaration
(#51) Line exceeds 132 characters; contains 137 characters
(#52) Usage of ELSEIF not allowed; use ELSE IF instead
(#53) Line exceeds 132 characters; contains 134 characters
(#55) Expected 1 space before "="; 0 found
(#55) Expected 1 space after "="; 0 found
(#60) Opening brace should be on the same line as the declaration
(#72) Opening brace should be on the same line as the declaration
(#75) Expected 1 space before "=>"; 0 found
(#75) Expected 1 space after "=>"; 0 found
(#76) Expected 1 space before "=>"; 0 found
(#76) Expected 1 space after "=>"; 0 found
(#88) Opening brace should be on the same line as the declaration
(#92) Expected 1 space before "=>"; 0 found
(#92) Expected 1 space after "=>"; 0 found
(#93) Expected 1 space before "=>"; 0 found
(#93) Expected 1 space after "=>"; 0 found
(#94) Expected 1 space before "=>"; 0 found
(#94) Expected 1 space after "=>"; 0 found
(#95) Expected 1 space before "=>"; 0 found
(#95) Expected 1 space after "=>"; 0 found
(#96) Expected 1 space before "=>"; 0 found
(#96) Expected 1 space after "=>"; 0 found
(#97) Expected 1 space before "=>"; 0 found
(#97) Expected 1 space after "=>"; 0 found
(#98) Expected 1 space before "=>"; 0 found
(#98) Expected 1 space after "=>"; 0 found
(#105) Expected 1 space before "=>"; 0 found
(#105) Expected 1 space after "=>"; 0 found
(#121) Method name "_handle_response" should not be prefixed with an underscore to indicate visibility
(#122) Opening brace should be on the same line as the declaration
(#129) Variable "status_code" must not contain underscores.
(#131) Variable "status_code" must not contain underscores.
(#132) Variable "status_code" must not contain underscores.
(#144) Method name "_handle_error" should not be prefixed with an underscore to indicate visibility
(#144) Variable "status_code" must not contain underscores.
(#145) Opening brace should be on the same line as the declaration
(#146) Variable "status_code" must not contain underscores.
(#148) Variable "status_code" must not contain underscores.
(#151) Variable "status_code" must not contain underscores.
(#157) Variable "status_code" must not contain underscores.
(#168) Method name "_make_curl" should not be prefixed with an underscore to indicate visibility
(#168) Variable "has_body" must not contain underscores.
(#169) Opening brace should be on the same line as the declaration
(#172) Variable "has_body" must not contain underscores.
mod/lessonspace/classes/event/course_module_viewed.php
(#43) Opening brace should be on the same line as the declaration
mod/lessonspace/classes/event/join_space_button_clicked.php
(#43) Opening brace should be on the same line as the declaration
(#53) Opening brace should be on the same line as the declaration
(#58) Usage of ELSEIF not allowed; use ELSE IF instead
(#70) Opening brace should be on the same line as the declaration
(#80) Opening brace should be on the same line as the declaration
(#91) Opening brace should be on the same line as the declaration
mod/lessonspace/classes/privacy/provider.php
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#48) Opening brace should be on the same line as the declaration
mod/lessonspace/classes/search/activity.php
(#38) Opening brace should be on the same line as the declaration
mod/lessonspace/db/install.php
(#32) Opening brace should be on the same line as the declaration
mod/lessonspace/db/uninstall.php
(#32) Opening brace should be on the same line as the declaration
mod/lessonspace/db/upgrade.php
(#37) Opening brace should be on the same line as the declaration
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
mod/lessonspace/db/upgradelib.php
(#32) Opening brace should be on the same line as the declaration
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
mod/lessonspace/index.php
(#25) "require" must be immediately followed by an open parenthesis
(#27) "require_once" must be immediately followed by an open parenthesis
(#64) Usage of ELSEIF not allowed; use ELSE IF instead
(#72) Space found after opening bracket of FOREACH loop
(#72) Space found before closing bracket of FOREACH loop
mod/lessonspace/lang/en/lessonspace.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/lessonspace/lib.php
(#27) "require_once" must be immediately followed by an open parenthesis
(#46) Variable "status_code" must not contain underscores.
(#47) Opening brace should be on the same line as the declaration
(#61) Opening brace should be on the same line as the declaration
(#88) Opening brace should be on the same line as the declaration
(#119) Opening brace should be on the same line as the declaration
(#142) Opening brace should be on the same line as the declaration
mod/lessonspace/mod_form.php
(#27) "require_once" must be immediately followed by an open parenthesis
(#43) Opening brace should be on the same line as the declaration
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) Opening brace should be on the same line as the declaration
mod/lessonspace/settings.php
(#28) "require_once" must be immediately followed by an open parenthesis
mod/lessonspace/space.php
(#25) "require_once" must be immediately followed by an open parenthesis
(#26) "require_once" must be immediately followed by an open parenthesis
(#35) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) Line exceeds maximum limit of 180 characters; contains 320 characters
mod/lessonspace/view.php
(#25) "require" must be immediately followed by an open parenthesis
(#26) "require_once" must be immediately followed by an open parenthesis
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Usage of ELSEIF not allowed; use ELSE IF instead
(#43) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Line exceeds 132 characters; contains 134 characters
(#108) Usage of ELSEIF not allowed; use ELSE IF instead
(#133) Expected 1 space before "/"; 0 found
(#133) Expected 1 space after "/"; 0 found

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(13 errors, 1 warnings)

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

mod/lessonspace/classes/analytics/indicator/activity_base.php
(#29) Class activity_base is not documented
mod/lessonspace/classes/analytics/indicator/cognitive_depth.php
(#29) Class cognitive_depth is not documented
mod/lessonspace/classes/analytics/indicator/social_breadth.php
(#29) Class social_breadth is not documented
mod/lessonspace/classes/api_service.php
(#46) Function mod_lessonspace_api_service::__construct is not documented
(#59) Function mod_lessonspace_api_service::get_organisation is not documented
(#44) Variable mod_lessonspace_api_service::$_apikey is not documented
(#83) Phpdocs for function mod_lessonspace_api_service::join_space has incomplete parameters list
(#118) Phpdocs for function mod_lessonspace_api_service::_handle_response has incomplete parameters list
(#140) Phpdocs for function mod_lessonspace_api_service::_handle_error has incomplete parameters list
mod/lessonspace/classes/privacy/provider.php
(#44) Phpdocs for function provider::get_metadata has incomplete parameters list
mod/lessonspace/classes/search/activity.php
(#29) Class activity is not documented
mod/lessonspace/lang/en/lessonspace.php
(#2) Empty line found after PHP open tag
mod/lessonspace/lib.php
(#38) Variable lessonspace_bad_request_exception::$response is not documented
mod/lessonspace/mod_form.php
(#105) Phpdocs for function mod_lessonspace_mod_form::validation has incomplete parameters list

Update savepoints problems

(0 errors, 0 warnings)

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


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]


Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]