From 55a1ed958038233c900d730d28feec0fe80a4708 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Fri, 7 Oct 2022 11:04:51 +0100 Subject: [PATCH] Update links to the coding style docs to the new dev docs --- README.md | 6 ++++-- locallib.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b767d9a7..1c827501 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,9 @@ Information ----------- This Moodle plugin uses the [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) tool to -check that code follows the [Moodle coding style](http://docs.moodle.org/dev/Coding_style). It uses the [Moodle Coding Style](https://github.com/moodlehq/moodle-cs) 'sniffs' that check many aspects of the code, including the awesome [PHPCompatibility](https://github.com/PHPCompatibility/PHPCompatibility) ones. +check that code follows the [Moodle coding style](https://moodledev.io/general/development/policies/codingstyle). +It uses the [Moodle Coding Style](https://github.com/moodlehq/moodle-cs) 'sniffs' that check many aspects of the code, including the awesome +[PHPCompatibility](https://github.com/PHPCompatibility/PHPCompatibility) ones. It was created by developers at the Open University, including Sam Marshall, Tim Hunt and Jenny Gray. It is now maintained by Moodle HQ. @@ -40,4 +42,4 @@ Integrations Since version v4.0.0 this plugin shouldn't be used as source for any integration with IDEs or tools, and [Moodle Coding Style](https://github.com/moodlehq/moodle-cs) (the new source for the moodle-cs standard) should be used instead. -Please refer to the information available in that repository to know more about how to install, configure and integrate it with your development environment. \ No newline at end of file +Please refer to the information available in that repository to know more about how to install, configure and integrate it with your development environment. diff --git a/locallib.php b/locallib.php index 0690cb86..fbd0e153 100644 --- a/locallib.php +++ b/locallib.php @@ -50,7 +50,7 @@ protected function definition() { $mform = $this->_form; $a = new stdClass(); - $a->link = html_writer::link('http://docs.moodle.org/dev/Coding_style', + $a->link = html_writer::link('https://moodledev.io/general/development/policies/codingstyle', get_string('moodlecodingguidelines', 'local_codechecker')); $a->path = html_writer::tag('tt', 'local/codechecker'); $a->excludeexample = html_writer::tag('tt', 'db, backup/*1, *lib*');