MDL-76867 core: Plugintype coding style fixes
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -25,8 +25,6 @@ namespace core\plugininfo;
|
||||
|
||||
use admin_settingpage;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Class for availability plugins.
|
||||
*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
*/
|
||||
namespace core\plugininfo;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Class for contentbank plugins
|
||||
*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
*/
|
||||
namespace core\plugininfo;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Class for document converter plugins
|
||||
*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
*/
|
||||
namespace core\plugininfo;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Class for media plugins
|
||||
*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
namespace core\plugininfo;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Payment gateway subplugin info class.
|
||||
*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
|
||||
namespace core\plugininfo;
|
||||
|
||||
use qbank_columnsortorder\column_manager;
|
||||
|
||||
/**
|
||||
* Base class for qbank plugins.
|
||||
*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user