|
33 | 33 | local_moodlecheck_registry::add_rule('functionarguments')->set_callback('local_moodlecheck_functionarguments');
|
34 | 34 | local_moodlecheck_registry::add_rule('variableshasvar')->set_callback('local_moodlecheck_variableshasvar');
|
35 | 35 | local_moodlecheck_registry::add_rule('definedoccorrect')->set_callback('local_moodlecheck_definedoccorrect');
|
36 |
| -local_moodlecheck_registry::add_rule('filehascopyright')->set_callback('local_moodlecheck_filehascopyright'); |
37 |
| -local_moodlecheck_registry::add_rule('filehaslicense')->set_callback('local_moodlecheck_filehaslicense'); |
38 | 36 | local_moodlecheck_registry::add_rule('phpdocsinvalidinlinetag')->set_callback('local_moodlecheck_phpdocsinvalidinlinetag');
|
39 | 37 | local_moodlecheck_registry::add_rule('phpdocsuncurlyinlinetag')->set_callback('local_moodlecheck_phpdocsuncurlyinlinetag');
|
40 | 38 | local_moodlecheck_registry::add_rule('phpdoccontentsinlinetag')->set_callback('local_moodlecheck_phpdoccontentsinlinetag');
|
@@ -381,31 +379,3 @@ function local_moodlecheck_definedoccorrect(local_moodlecheck_file $file) {
|
381 | 379 | }
|
382 | 380 | return $errors;
|
383 | 381 | }
|
384 |
| - |
385 |
| -/** |
386 |
| - * Makes sure that files have copyright tag |
387 |
| - * |
388 |
| - * @param local_moodlecheck_file $file |
389 |
| - * @return array of found errors |
390 |
| - */ |
391 |
| -function local_moodlecheck_filehascopyright(local_moodlecheck_file $file) { |
392 |
| - $phpdocs = $file->find_file_phpdocs(); |
393 |
| - if ($phpdocs && !count($phpdocs->get_tags('copyright', true))) { |
394 |
| - return [['line' => $phpdocs->get_line_number($file, '@copyright')]]; |
395 |
| - } |
396 |
| - return []; |
397 |
| -} |
398 |
| - |
399 |
| -/** |
400 |
| - * Makes sure that files have license tag |
401 |
| - * |
402 |
| - * @param local_moodlecheck_file $file |
403 |
| - * @return array of found errors |
404 |
| - */ |
405 |
| -function local_moodlecheck_filehaslicense(local_moodlecheck_file $file) { |
406 |
| - $phpdocs = $file->find_file_phpdocs(); |
407 |
| - if ($phpdocs && !count($phpdocs->get_tags('license', true))) { |
408 |
| - return [['line' => $phpdocs->get_line_number($file, '@license')]]; |
409 |
| - } |
410 |
| - return []; |
411 |
| -} |
0 commit comments