lib.php
Showing 6 of 6 total issues
Method block_lw_courses_pluginfile
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function block_lw_courses_pluginfile($course, $birecord, $context, $filearea, $args, $forcedownload, array $options = array()) {
Avoid unused parameters such as '$course'. Open
Open
function block_lw_courses_pluginfile($course, $birecord, $context, $filearea, $args, $forcedownload, array $options = array()) {
- Read upRead up
- Exclude checks
Avoid unused parameters such as '$options'. Open
Open
function block_lw_courses_pluginfile($course, $birecord, $context, $filearea, $args, $forcedownload, array $options = array()) {
- Read upRead up
- Exclude checks
Avoid unused parameters such as '$birecord'. Open
Open
function block_lw_courses_pluginfile($course, $birecord, $context, $filearea, $args, $forcedownload, array $options = array()) {
- Read upRead up
- Exclude checks
Avoid unused parameters such as '$filearea'. Open
Open
function block_lw_courses_pluginfile($course, $birecord, $context, $filearea, $args, $forcedownload, array $options = array()) {
- Read upRead up
- Exclude checks
Avoid assigning values to variables in if clauses and the like (line '44', column '10'). Open
Open
function block_lw_courses_pluginfile($course, $birecord, $context, $filearea, $args, $forcedownload, array $options = array()) { $fs = get_file_storage(); $filename = array_pop($args); $filepath = $args ? '/'.implode('/', $args).'/' : '/';
- Read upRead up
- Exclude checks