Prechecker results: error


PHP lint problems

(3 errors, 0 warnings)

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

filter/wiris/integration/editor.php
BOM character found
filter/wiris/integration/lib/com/wiris/plugin/impl/RenderImplIntegratedServices.class.php
(#32) PHP Parse error: syntax error, unexpected token "$", expecting ")" in /filter/wiris/integration/lib/com/wiris/plugin/impl/RenderImplIntegratedServices.class.php on line 32
filter/wiris/integration/lib/com/wiris/plugin/impl/TextServiceImplIntegratedServices.class.php
(#86) PHP Parse error: syntax error, unexpected token "$", expecting ")" in /filter/wiris/integration/lib/com/wiris/plugin/impl/TextServiceImplIntegratedServices.class.php on line 86

PHP coding style problems

(19 errors, 131 warnings)

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

filter/wiris/classes/moodledbcache.php
(#75) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
(#107) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#123) Short array syntax must be used to define arrays
filter/wiris/classes/moodledbjsoncache.php
(#77) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#143) Short array syntax must be used to define arrays
(#149) Short array syntax must be used to define arrays
(#153) Short array syntax must be used to define arrays
(#170) Short array syntax must be used to define arrays
filter/wiris/classes/paramsprovider.php
(#37) Short array syntax must be used to define arrays
(#38) Short array syntax must be used to define arrays
(#65) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
filter/wiris/db/caches.php
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#30) There should be a comma after the last array item in a multi-line array.
(#32) Short array syntax must be used to define arrays
(#33) There should be a comma after the last array item in a multi-line array.
(#34) There should be a comma after the last array item in a multi-line array.
filter/wiris/db/upgrade.php
(#40) Short array syntax must be used to define arrays
(#41) Short array syntax must be used to define arrays
(#91) Short array syntax must be used to define arrays
(#101) Short array syntax must be used to define arrays
filter/wiris/filter.php
(#39) Short array syntax must be used to define arrays
filter/wiris/info.php
(#26) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#36) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#138) Short array syntax must be used to define arrays
(#140) Short array syntax must be used to define arrays
(#142) Short array syntax must be used to define arrays
(#143) Short array syntax must be used to define arrays
(#144) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#154) Short array syntax must be used to define arrays
(#180) Short array syntax must be used to define arrays
(#180) Line exceeds 132 characters; contains 148 characters
(#194) Short array syntax must be used to define arrays
(#194) Line exceeds 132 characters; contains 152 characters
(#204) Short array syntax must be used to define arrays
(#204) Line exceeds 132 characters; contains 146 characters
(#246) Short array syntax must be used to define arrays
(#246) Line exceeds 132 characters; contains 148 characters
(#259) Short array syntax must be used to define arrays
(#259) Line exceeds 132 characters; contains 148 characters
(#280) Short array syntax must be used to define arrays
(#280) Line exceeds 132 characters; contains 148 characters
(#307) Short array syntax must be used to define arrays
(#313) Line exceeds 132 characters; contains 161 characters
(#364) Short array syntax must be used to define arrays
filter/wiris/lib.php
(#36) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#135) Short array syntax must be used to define arrays
(#140) Short array syntax must be used to define arrays
filter/wiris/settings.php
(#102) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
(#161) Short array syntax must be used to define arrays
(#162) Short array syntax must be used to define arrays
(#170) Short array syntax must be used to define arrays
(#171) Line exceeds 132 characters; contains 135 characters
(#185) Inline comments must end in full-stops, exclamation marks, or question marks
(#187) Inline comments must end in full-stops, exclamation marks, or question marks
filter/wiris/subfilters/client.php
(#52) Short array syntax must be used to define arrays
filter/wiris/subfilters/php.php
(#41) Short array syntax must be used to define arrays
filter/wiris/test.php
(#35) Line exceeds 132 characters; contains 138 characters
(#64) Short array syntax must be used to define arrays
(#64) Line exceeds 132 characters; contains 148 characters
filter/wiris/tests/behat/behat_wiris_editor.php
(#47) Short array syntax must be used to define arrays
(#91) Short array syntax must be used to define arrays
(#118) Short array syntax must be used to define arrays
filter/wiris/tests/behat/behat_wiris_formula.php
(#171) Short array syntax must be used to define arrays
(#172) There should be a comma after the last array item in a multi-line array.
(#259) Short array syntax must be used to define arrays
(#260) There should be a comma after the last array item in a multi-line array.
(#297) Short array syntax must be used to define arrays
(#298) There should be a comma after the last array item in a multi-line array.
filter/wiris/tests/behat/behat_wiris_page.php
(#42) Short array syntax must be used to define arrays
(#45) There should be a comma after the last array item in a multi-line array.
(#65) Short array syntax must be used to define arrays
(#69) There should be a comma after the last array item in a multi-line array.
(#122) Short array syntax must be used to define arrays
(#126) There should be a comma after the last array item in a multi-line array.
(#158) Short array syntax must be used to define arrays
(#162) There should be a comma after the last array item in a multi-line array.
(#167) Short array syntax must be used to define arrays
(#172) There should be a comma after the last array item in a multi-line array.
(#200) Short array syntax must be used to define arrays
(#204) There should be a comma after the last array item in a multi-line array.
(#209) Short array syntax must be used to define arrays
(#213) There should be a comma after the last array item in a multi-line array.
(#245) Short array syntax must be used to define arrays
(#249) There should be a comma after the last array item in a multi-line array.
(#254) Short array syntax must be used to define arrays
(#257) There should be a comma after the last array item in a multi-line array.
(#461) Short array syntax must be used to define arrays
(#462) There should be a comma after the last array item in a multi-line array.
(#467) Short array syntax must be used to define arrays
(#469) There should be a comma after the last array item in a multi-line array.
(#496) Short array syntax must be used to define arrays
(#497) There should be a comma after the last array item in a multi-line array.
(#502) Short array syntax must be used to define arrays
(#530) Short array syntax must be used to define arrays
(#531) There should be a comma after the last array item in a multi-line array.
(#536) Short array syntax must be used to define arrays
filter/wiris/tests/filter_performance_png_test.php
(#31) PHPUnit class "filter_performance_png_test" does not have any namespace. It is recommended to add it to the "filter_wiris" namespace, using more levels if needed, in order to match the code being tested
(#41) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#78) Test method test_filter_safexml_with_performance_png() is missing any coverage information, own or at class level
(#84) Test method test_filter_xml_with_performance_png() is missing any coverage information, own or at class level
(#89) Test method test_filter_safexml_with_performance_png_cache_formula() is missing any coverage information, own or at class level
(#97) Test method test_filter_safexml_with_performance_png_alt_cache() is missing any coverage information, own or at class level
(#105) Test method test_filter_safexml_with_performance_png_cache() is missing any coverage information, own or at class level
filter/wiris/tests/filter_performance_svg_test.php
(#31) PHPUnit class "filter_performance_svg_test" does not have any namespace. It is recommended to add it to the "filter_wiris" namespace, using more levels if needed, in order to match the code being tested
(#41) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#80) Test method test_filter_safexml_with_performance_svg() is missing any coverage information, own or at class level
(#86) Test method test_filter_xml_with_performance() is missing any coverage information, own or at class level
(#92) Test method test_filter_safexml_with_performance_cache_svg() is missing any coverage information, own or at class level
(#93) Short array syntax must be used to define arrays
(#103) Test method test_filter_safexml_with_performance_cache_formula() is missing any coverage information, own or at class level
(#104) Short array syntax must be used to define arrays
(#113) Test method test_filter_safexml_with_performance_alt_cache() is missing any coverage information, own or at class level
(#114) Short array syntax must be used to define arrays
(#123) Test method test_filter_xml_with_performance_special_chars() is missing any coverage information, own or at class level
filter/wiris/tests/filter_without_performance_png_test.php
(#30) PHPUnit class "filter_without_performance_png_test" does not have any namespace. It is recommended to add it to the "filter_wiris" namespace, using more levels if needed, in order to match the code being tested
(#42) Short array syntax must be used to define arrays
(#44) Short array syntax must be used to define arrays
(#73) Test method test_filter_safexml_without_performance_png() is missing any coverage information, own or at class level
(#78) Test method test_filter_xml_without_performance_png() is missing any coverage information, own or at class level
(#82) Test method test_filter_safexml_without_performance_png_cache_formula() is missing any coverage information, own or at class level
(#89) Test method test_filter_safexml_without_performance_png_alt_cache() is missing any coverage information, own or at class level
(#96) Test method test_filter_safexml_without_performance_png_cache() is missing any coverage information, own or at class level
filter/wiris/tests/filter_without_performance_svg_test.php
(#30) PHPUnit class "filter_without_performance_svg_test" does not have any namespace. It is recommended to add it to the "filter_wiris" namespace, using more levels if needed, in order to match the code being tested
(#40) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#89) Test method test_filter_safexml_without_performance_svg() is missing any coverage information, own or at class level
(#94) Test method test_filter_xml_without_performance_svg() is missing any coverage information, own or at class level
(#98) Test method test_filter_safexml_without_performance_svg_cache_formula() is missing any coverage information, own or at class level
(#105) Test method test_filter_safexml_without_performance_svg_alt_cache() is missing any coverage information, own or at class level
(#112) Test method test_filter_safexml_without_performance_svg_cache() is missing any coverage information, own or at class level
filter/wiris/version.php
(#33) Short array syntax must be used to define arrays

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

(165 errors, 18 warnings)

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

filter/wiris/classes/accessprovider.php
(#38) Class filter_wiris_accessprovider is not documented
(#46) Function filter_wiris_accessprovider::requireAccess is not documented
(#59) Function filter_wiris_accessprovider::isEnabled is not documented
(#17) No one-line description found in phpdocs for file
(#21) Package filter is not valid
filter/wiris/classes/configurationupdater.php
(#32) Class filter_wiris_configurationupdater is not documented
(#41) Function filter_wiris_configurationupdater::__construct is not documented
(#56) Function filter_wiris_configurationupdater::init is not documented
(#59) Function filter_wiris_configurationupdater::get_latex_status is not documented
(#68) Function filter_wiris_configurationupdater::eval_parameter is not documented
(#74) Function filter_wiris_configurationupdater::updateConfiguration is not documented
(#34) Variable filter_wiris_configurationupdater::$waseditorenabled is not documented
(#35) Variable filter_wiris_configurationupdater::$wascasenabled is not documented
(#36) Variable filter_wiris_configurationupdater::$waschemeditorenabled is not documented
(#37) Variable filter_wiris_configurationupdater::$oldconfiguration is not documented
(#39) Variable filter_wiris_configurationupdater::$editorplugin is not documented
(#18) No one-line description found in phpdocs for file
(#22) Package filter is not valid
filter/wiris/classes/moodledbcache.php
(#59) Function moodledbcache::deleteAll is not documented
(#28) Variable moodledbcache::$cachetable is not documented
(#29) Variable moodledbcache::$keyfield is not documented
(#30) Variable moodledbcache::$valuefield is not documented
(#31) Variable moodledbcache::$timecreatedfield is not documented
(#17) No one-line description found in phpdocs for class moodledbcache
(#48) Phpdocs for function moodledbcache::delete has incomplete parameters list
(#67) Phpdocs for function moodledbcache::get has incomplete parameters list
(#87) Phpdocs for function moodledbcache::parse_key has incomplete parameters list
(#98) Phpdocs for function moodledbcache::set has incomplete parameters list
(#49) Invalid phpdocs tag @throw used
(#56) Invalid phpdocs tag @throw used
(#89) Invalid phpdocs tag @key used
(#100) Invalid phpdocs tag @throw used
(#21) Package filter is not valid
filter/wiris/classes/moodledbjsoncache.php
(#58) Function moodledbjsoncache::deleteAll is not documented
(#28) Variable moodledbjsoncache::$cachetable is not documented
(#29) Variable moodledbjsoncache::$keyfield is not documented
(#30) Variable moodledbjsoncache::$jsonfield is not documented
(#31) Variable moodledbjsoncache::$timecreatedfield is not documented
(#17) No one-line description found in phpdocs for class moodledbjsoncache
(#35) Phpdocs for function moodledbjsoncache::__construct has incomplete parameters list
(#47) Phpdocs for function moodledbjsoncache::delete has incomplete parameters list
(#66) Phpdocs for function moodledbjsoncache::get has incomplete parameters list
(#117) Phpdocs for function moodledbjsoncache::parse_key has incomplete parameters list
(#128) Phpdocs for function moodledbjsoncache::set has incomplete parameters list
(#48) Invalid phpdocs tag @throw used
(#55) Invalid phpdocs tag @throw used
(#119) Invalid phpdocs tag @key used
(#130) Invalid phpdocs tag @throw used
(#21) Package filter is not valid
filter/wiris/classes/moodlefilecache.php
(#56) Function moodlefilecache::deleteAll is not documented
(#28) Variable moodlefilecache::$cache is not documented
(#29) Variable moodlefilecache::$area is not documented
(#30) Variable moodlefilecache::$module is not documented
(#17) No one-line description found in phpdocs for class moodlefilecache
(#45) Phpdocs for function moodlefilecache::delete has incomplete parameters list
(#66) Phpdocs for function moodlefilecache::get has incomplete parameters list
(#79) Phpdocs for function moodlefilecache::set has incomplete parameters list
(#46) Invalid phpdocs tag @throw used
(#53) Invalid phpdocs tag @throw used
(#81) Invalid phpdocs tag @throw used
(#21) Package filter is not valid
filter/wiris/classes/paramsprovider.php
(#35) Class filter_wiris_paramsprovider is not documented
(#41) Function filter_wiris_paramsprovider::__construct is not documented
(#45) Function filter_wiris_paramsprovider::getrequiredparameter is not documented
(#52) Function filter_wiris_paramsprovider::getparameter is not documented
(#59) Function filter_wiris_paramsprovider::getparameters is not documented
(#63) Function filter_wiris_paramsprovider::getserviceparameters is not documented
(#74) Function filter_wiris_paramsprovider::getrenderparameters is not documented
(#37) Variable filter_wiris_paramsprovider::$parameters is not documented
(#38) Variable filter_wiris_paramsprovider::$serviceparamlist is not documented
(#39) Variable filter_wiris_paramsprovider::$wrap is not documented
(#17) No one-line description found in phpdocs for file
(#22) Package filter is not valid
filter/wiris/classes/pluginwrapper.php
(#42) Class filter_wiris_pluginwrapper is not documented
(#49) Function filter_wiris_pluginwrapper::set_configuration is not documented
(#53) Function filter_wiris_pluginwrapper::__construct is not documented
(#57) Function filter_wiris_pluginwrapper::begin is not documented
(#61) Function filter_wiris_pluginwrapper::end is not documented
(#65) Function filter_wiris_pluginwrapper::is_installed is not documented
(#70) Function filter_wiris_pluginwrapper::init is not documented
(#104) Function filter_wiris_pluginwrapper::get_instance is not documented
(#109) Function filter_wiris_pluginwrapper::was_cas_enabled is not documented
(#115) Function filter_wiris_pluginwrapper::was_editor_enabled is not documented
(#121) Function filter_wiris_pluginwrapper::was_chem_editor_enabled is not documented
(#43) Variable filter_wiris_pluginwrapper::$isinit is not documented
(#44) Variable filter_wiris_pluginwrapper::$installed is not documented
(#45) Variable filter_wiris_pluginwrapper::$moodleconfig is not documented
(#46) Variable filter_wiris_pluginwrapper::$instance is not documented
(#47) Variable filter_wiris_pluginwrapper::$pluginwrapperconfig is not documented
(#20) Package filter is not valid
filter/wiris/classes/pluginwrapperconfigurationupdater.php
(#32) Class filter_wiris_pluginwrapperconfigurationupdater is not documented
(#36) Function filter_wiris_pluginwrapperconfigurationupdater::__construct is not documented
(#42) Function filter_wiris_pluginwrapperconfigurationupdater::updateConfiguration is not documented
(#50) Function filter_wiris_pluginwrapperconfigurationupdater::init is not documented
(#34) Variable filter_wiris_pluginwrapperconfigurationupdater::$customconfig is not documented
(#18) No one-line description found in phpdocs for file
(#22) Package filter is not valid
filter/wiris/db/caches.php
(#20) Package filter is not valid
filter/wiris/db/upgrade.php
(#17) File-level phpdocs block is not found
(#17) Phpdocs for function xmldb_filter_wiris_upgrade has incomplete parameters list
(#20) Package filter is not valid
filter/wiris/filter.php
(#38) Class filter_wiris is not documented
(#39) Function filter_wiris::filter is not documented
(#18) No one-line description found in phpdocs for file
(#25) Package filter is not valid
filter/wiris/info.php
(#31) Function wrs_assert is not documented
(#42) Function wrs_getstatus is not documented
(#55) Function wrs_createtablerow is not documented
(#63) Function get_current_editor_data is not documented
(#104) Function check_if_wiris_button_are_in_toolbar is not documented
(#119) Function check_if_wiris_button_are_in_atto_toolbar is not documented
(#124) Function check_if_wiris_button_are_in_tinymce_toolbar is not documented
(#137) Function create_info_header is not documented
(#151) Function create_filter_files_row is not documented
(#162) Function create_filter_version_row is not documented
(#183) Function create_filter_enabled_row is not documented
(#197) Function create_atto_installed_row is not documented
(#209) Function create_atto_compatibility_row is not documented
(#249) Function create_atto_enabled_row is not documented
(#262) Function create_tiny_installed_row is not documented
(#283) Function create_table_close is not documented
(#292) Function warning_tiny_incompatibility is not documented
(#20) Package filter is not valid
filter/wiris/lang/en/filter_wiris.php
(#21) Package filter is not valid
filter/wiris/lib.php
(#20) Package filter is not valid
filter/wiris/settings.php
(#20) Package filter is not valid
filter/wiris/subfilters/client.php
(#18) No one-line description found in phpdocs for class filter_wiris_client
(#40) Phpdocs for function filter_wiris_client::filter has incomplete parameters list
(#22) Package filter is not valid
filter/wiris/subfilters/php.php
(#41) Function filter_wiris_php::filter is not documented
(#18) No one-line description found in phpdocs for class filter_wiris_php
(#23) Package filter is not valid
filter/wiris/test.php
(#26) Function create_atto_compatibility_row is not documented
(#20) Package filter is not valid
filter/wiris/tests/behat/behat_wiris_base.php
(#39) Class behat_wiris_base is not documented
(#48) Constant behat_wiris_base::MAX_NUNMBER_ROWS is not documented
(#41) There is no description in phpdocs for function cast_string_to_number
(#41) Phpdocs for function behat_wiris_base::cast_string_to_number has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#17) File-level phpdocs block does not have @license tag
(#42) Invalid phpdocs tag @Transform used
(#39) Package is not specified for class behat_wiris_base. It is also not specified in file-level phpdocs
(#28) Package filter is not valid
filter/wiris/tests/behat/behat_wiris_editor.php
(#31) Class behat_wiris_editor is not documented
(#19) Package filter is not valid
filter/wiris/tests/behat/behat_wiris_filter.php
(#31) Class behat_wiris_filter is not documented
(#75) Phpdocs for function behat_wiris_filter::the_mathtype_filter_render_type_is_set_to has incomplete parameters list
(#84) Phpdocs for function behat_wiris_filter::the_mathtype_buttons_visibility_is_set_to has incomplete parameters list
(#19) Package filter is not valid
filter/wiris/tests/behat/behat_wiris_formula.php
(#31) Class behat_wiris_formula is not documented
(#33) There is no description in phpdocs for function cast_string_to_number
(#33) Phpdocs for function behat_wiris_formula::cast_string_to_number has incomplete parameters list
(#34) Invalid phpdocs tag @Transform used
(#19) Package filter is not valid
filter/wiris/tests/behat/behat_wiris_page.php
(#31) Class behat_wiris_page is not documented
(#103) Phpdocs for function behat_wiris_page::modal_window_is_opened has incomplete parameters list
(#290) Phpdocs for function behat_wiris_page::i_go_to_link has incomplete parameters list
(#300) Phpdocs for function behat_wiris_page::i_check_if_mathtype_formula_src_is_equals_to has incomplete parameters list
(#19) Package filter is not valid
filter/wiris/tests/filter_performance_png_test.php
(#31) Class filter_performance_png_test is not documented
(#32) Variable filter_performance_png_test::$wirisfilter is not documented
(#33) Variable filter_performance_png_test::$safexml is not documented
(#34) Variable filter_performance_png_test::$xml is not documented
(#35) Variable filter_performance_png_test::$imagepng is not documented
filter/wiris/tests/filter_performance_svg_test.php
(#31) Class filter_performance_svg_test is not documented
(#32) Variable filter_performance_svg_test::$wirisfilter is not documented
(#33) Variable filter_performance_svg_test::$safexml is not documented
(#34) Variable filter_performance_svg_test::$xml is not documented
(#35) Variable filter_performance_svg_test::$image is not documented
(#36) Variable filter_performance_svg_test::$cachetable is not documented
filter/wiris/tests/filter_without_performance_png_test.php
(#30) Class filter_without_performance_png_test is not documented
(#31) Variable filter_without_performance_png_test::$wirisfilter is not documented
(#32) Variable filter_without_performance_png_test::$safexml is not documented
(#33) Variable filter_without_performance_png_test::$xml is not documented
(#34) Variable filter_without_performance_png_test::$image is not documented
(#35) Variable filter_without_performance_png_test::$instance is not documented
(#36) Variable filter_without_performance_png_test::$cachetable is not documented
filter/wiris/tests/filter_without_performance_svg_test.php
(#30) Class filter_without_performance_svg_test is not documented
(#31) Variable filter_without_performance_svg_test::$wirisfilter is not documented
(#32) Variable filter_without_performance_svg_test::$safexml is not documented
(#33) Variable filter_without_performance_svg_test::$xml is not documented
(#34) Variable filter_without_performance_svg_test::$instance is not documented
filter/wiris/version.php
(#20) Package filter is not valid

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]