Skip to content
Snippets Groups Projects
Unverified Commit 60dcc208 authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Coding style

parent 86990f62
No related branches found
No related tags found
No related merge requests found
......@@ -245,7 +245,7 @@ class admin_settings {
* This is the entry point for this controller class.
*/
public function execute($action, $workflowid) {
global $PAGE, $CFG, $OUTPUT;
global $PAGE;
$this->check_permissions();
/** @var \tool_lifecycle_renderer $renderer */
$renderer = $PAGE->get_renderer('tool_lifecycle');
......
......@@ -34,7 +34,7 @@ class backup_lifecycle_workflow {
private $steps;
/** @var $trigger trigger_subplugin[] */
private $trigger;
/** @var $writer XMLWriter */
/** @var $writer \XMLWriter */
private $writer;
/** @var $tempfilename string */
private $tempfilename;
......@@ -73,6 +73,7 @@ class backup_lifecycle_workflow {
/**
* This sends the created tempfile to the client.
* @throws \moodle_exception
*/
public function send_temp_file() {
if (!$this->tempfilename) {
......
......@@ -38,7 +38,7 @@ class restore_lifecycle_workflow {
private $settings = [];
/** @var $errors string[] errors that occurred during restore.*/
private $errors = [];
/** @var $writer XMLWriter */
/** @var $writer \XMLWriter */
private $reader;
public function __construct($xmldata) {
......@@ -52,8 +52,8 @@ class restore_lifecycle_workflow {
* If all data is valid, it restores the workflow with all subplugins and settings.
* Otherwise an array with error strings is returned.
* @return string[] Errors, which occurred during the restore process.
* @throws coding_exception
* @throws moodle_exception
* @throws \coding_exception
* @throws \moodle_exception
*/
public function execute() {
$this->reader->read();
......@@ -138,7 +138,7 @@ class restore_lifecycle_workflow {
* If subplugins are missing, an error string is appended to the $error array,
* which can be used for displaying to the user later.
* @return bool true, if all subplugins are installed; false otherwise.
* @throws coding_exception
* @throws \coding_exception
*/
private function all_subplugins_installed() {
$installedsteps = \core_component::get_plugin_list('lifecyclestep');
......@@ -162,7 +162,7 @@ class restore_lifecycle_workflow {
/**
* Stores all loaded data in the database.
* @throws moodle_exception
* @throws \moodle_exception
*/
private function persist() {
workflow_manager::insert_or_update($this->workflow);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment