MDL-76867 core: Plugintype coding style fixes

This commit is contained in:
Andrew Nicols
2023-03-14 08:34:42 +08:00
parent 5e1df25566
commit 6809289cf4
23 changed files with 59 additions and 70 deletions
@@ -23,9 +23,10 @@
*/
namespace tool_log\plugininfo;
use core\plugininfo\base, moodle_url, part_of_admin_tree, admin_settingpage;
defined('MOODLE_INTERNAL') || die();
use admin_settingpage;
use core\plugininfo\base;
use moodle_url;
use part_of_admin_tree;
/**
* Plugin info class for logging store plugins.
+3 -4
View File
@@ -23,10 +23,9 @@
*/
namespace core\plugininfo;
use moodle_url, part_of_admin_tree, admin_settingpage;
defined('MOODLE_INTERNAL') || die();
use admin_settingpage;
use moodle_url;
use part_of_admin_tree;
/**
* Class for Antiviruses
+3 -3
View File
@@ -23,9 +23,9 @@
*/
namespace core\plugininfo;
use moodle_url, part_of_admin_tree, admin_settingpage, admin_externalpage;
defined('MOODLE_INTERNAL') || die();
use admin_settingpage;
use moodle_url;
use part_of_admin_tree;
/**
* Class for authentication plugins
-2
View File
@@ -25,8 +25,6 @@ namespace core\plugininfo;
use admin_settingpage;
defined('MOODLE_INTERNAL') || die();
/**
* Class for availability plugins.
*
+3 -3
View File
@@ -23,9 +23,9 @@
*/
namespace core\plugininfo;
use moodle_url, part_of_admin_tree, admin_settingpage, admin_externalpage;
defined('MOODLE_INTERNAL') || die();
use admin_settingpage;
use moodle_url;
use part_of_admin_tree;
/**
* Class for page side blocks
-2
View File
@@ -23,8 +23,6 @@
*/
namespace core\plugininfo;
defined('MOODLE_INTERNAL') || die();
/**
* Class for contentbank plugins
*
+1 -3
View File
@@ -23,10 +23,8 @@
*/
namespace core\plugininfo;
use moodle_url;
use admin_settingpage;
defined('MOODLE_INTERNAL') || die();
use moodle_url;
/**
* Class for admin tool plugins
+4 -3
View File
@@ -23,9 +23,10 @@
*/
namespace core\plugininfo;
use moodle_url, part_of_admin_tree, admin_settingpage, admin_externalpage, core_plugin_manager;
defined('MOODLE_INTERNAL') || die();
use admin_settingpage;
use core_plugin_manager;
use moodle_url;
use part_of_admin_tree;
/**
* Class for dataformats
+4 -3
View File
@@ -23,15 +23,16 @@
*/
namespace core\plugininfo;
use moodle_url, part_of_admin_tree, admin_settingpage, admin_externalpage;
defined('MOODLE_INTERNAL') || die();
use admin_settingpage;
use moodle_url;
use part_of_admin_tree;
/**
* Class for enrolment plugins
*/
class enrol extends base {
/**
*
* Finds all enabled plugins, the result may include missing plugins.
* @return array|null of enabled plugins $pluginname=>$pluginname, null means unknown
*/
-2
View File
@@ -23,8 +23,6 @@
*/
namespace core\plugininfo;
defined('MOODLE_INTERNAL') || die();
/**
* Class for document converter plugins
*
+3 -3
View File
@@ -23,9 +23,9 @@
*/
namespace core\plugininfo;
use moodle_url, part_of_admin_tree, admin_settingpage, admin_externalpage;
defined('MOODLE_INTERNAL') || die();
use admin_settingpage;
use moodle_url;
use part_of_admin_tree;
/**
* Class for text filters
-2
View File
@@ -23,8 +23,6 @@
*/
namespace core\plugininfo;
defined('MOODLE_INTERNAL') || die();
/**
* Class for media plugins
*
+3 -3
View File
@@ -23,9 +23,9 @@
*/
namespace core\plugininfo;
use moodle_url, part_of_admin_tree, admin_settingpage;
defined('MOODLE_INTERNAL') || die();
use admin_settingpage;
use moodle_url;
use part_of_admin_tree;
/**
* Class for messaging processors
+3 -3
View File
@@ -23,9 +23,9 @@
*/
namespace core\plugininfo;
use moodle_url, part_of_admin_tree, admin_settingpage;
defined('MOODLE_INTERNAL') || die();
use admin_settingpage;
use moodle_url;
use part_of_admin_tree;
/**
* Class for activity modules
-2
View File
@@ -24,8 +24,6 @@
namespace core\plugininfo;
defined('MOODLE_INTERNAL') || die();
/**
* Payment gateway subplugin info class.
*
+1 -3
View File
@@ -23,9 +23,7 @@
*/
namespace core\plugininfo;
use core_component, core_plugin_manager, moodle_url, coding_exception;
defined('MOODLE_INTERNAL') || die();
use moodle_url;
/**
* Class for portfolios
-2
View File
@@ -25,8 +25,6 @@
namespace core\plugininfo;
use qbank_columnsortorder\column_manager;
/**
* Base class for qbank plugins.
*
+2 -3
View File
@@ -23,9 +23,8 @@
*/
namespace core\plugininfo;
use moodle_url, core_plugin_manager;
defined('MOODLE_INTERNAL') || die();
use core_plugin_manager;
use moodle_url;
/**
* Class for question behaviours.
+4 -3
View File
@@ -23,9 +23,10 @@
*/
namespace core\plugininfo;
use moodle_url, part_of_admin_tree, admin_settingpage, core_plugin_manager;
defined('MOODLE_INTERNAL') || die();
use admin_settingpage;
use core_plugin_manager;
use moodle_url;
use part_of_admin_tree;
/**
* Class for question types
+3 -1
View File
@@ -23,7 +23,9 @@
*/
namespace core\plugininfo;
use moodle_url, part_of_admin_tree, admin_externalpage;
use admin_externalpage;
use moodle_url;
use part_of_admin_tree;
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/repository/lib.php');
+2 -3
View File
@@ -23,9 +23,8 @@
*/
namespace core\plugininfo;
use part_of_admin_tree, admin_settingpage;
defined('MOODLE_INTERNAL') || die();
use admin_settingpage;
use part_of_admin_tree;
/**
* Class for webservice protocols
@@ -14,6 +14,12 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
namespace mod_assign\plugininfo;
use core\plugininfo\base;
use core_plugin_manager;
use moodle_url;
/**
* Assign feedback subplugin info class.
*
@@ -21,14 +27,9 @@
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace mod_assign\plugininfo;
use core\plugininfo\base, core_plugin_manager, moodle_url;
defined('MOODLE_INTERNAL') || die();
class assignfeedback extends base {
/**
* Finds all enabled plugins, the result may include missing plugins.
* @return array|null of enabled plugins $pluginname=>$pluginname, null means unknown
@@ -14,6 +14,12 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
namespace mod_assign\plugininfo;
use core\plugininfo\base;
use core_plugin_manager;
use moodle_url;
/**
* Assign submission subplugin info class.
*
@@ -21,14 +27,9 @@
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace mod_assign\plugininfo;
use core\plugininfo\base, core_plugin_manager, moodle_url;
defined('MOODLE_INTERNAL') || die();
class assignsubmission extends base {
/**
* Finds all enabled plugins, the result may include missing plugins.
* @return array|null of enabled plugins $pluginname=>$pluginname, null means unknown