public/plugin/test2pdf/src/test2pdf_plugin.class.php
Remove error control operator '@' on line 52. Open
Open
public function install()
{
//Installing course settings
$this->install_course_fields_in_all_courses();
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Variable "course_settings" is not in valid camel caps format Open
Open
$this->uninstall_course_fields_in_all_courses($this->course_settings);
- Exclude checks