Issue #42 - Refactoring code according to Moodle Coding Style.

This commit is contained in:
Daniel Thee Roperto
2016-09-21 18:38:12 +10:00
parent 19b66629a8
commit 708622bbcd
47 changed files with 687 additions and 645 deletions

View File

@@ -19,16 +19,16 @@
*
* @package auth_outage
* @author Daniel Thee Roperto <daniel.roperto@catalyst-au.net>
* @copyright Catalyst IT
* @copyright 2016 Catalyst IT
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
use auth_outage\cli\cliexception;
use auth_outage\cli\create;
use auth_outage\outagelib;
use auth_outage\local\cli\cli_exception;
use auth_outage\local\cli\create;
use auth_outage\local\outagelib;
define('CLI_SCRIPT', true);
require('../../config.php');
require_once(__DIR__.'/../../../config.php');
$cli = new create();
@@ -44,6 +44,6 @@ $cli->set_defaults([
try {
$cli->execute();
} catch (cliexception $e) {
} catch (cli_exception $e) {
cli_error($e->getMessage());
}

View File

@@ -19,21 +19,21 @@
*
* @package auth_outage
* @author Daniel Thee Roperto <daniel.roperto@catalyst-au.net>
* @copyright Catalyst IT
* @copyright 2016 Catalyst IT
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
use auth_outage\cli\cliexception;
use auth_outage\cli\finish;
use auth_outage\local\cli\cli_exception;
use auth_outage\local\cli\finish;
define('CLI_SCRIPT', true);
require('../../config.php');
require_once(__DIR__.'/../../../config.php');
$cli = new finish();
try {
$cli->execute();
} catch (cliexception $e) {
} catch (cli_exception $e) {
cli_error($e->getMessage());
}

View File

@@ -19,21 +19,21 @@
*
* @package auth_outage
* @author Daniel Thee Roperto <daniel.roperto@catalyst-au.net>
* @copyright Catalyst IT
* @copyright 2016 Catalyst IT
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
use auth_outage\cli\cliexception;
use auth_outage\cli\waitforit;
use auth_outage\local\cli\cli_exception;
use auth_outage\local\cli\waitforit;
define('CLI_SCRIPT', true);
require('../../config.php');
require_once(__DIR__.'/../../../config.php');
$cli = new waitforit();
try {
$cli->execute();
} catch (cliexception $e) {
} catch (cli_exception $e) {
cli_error($e->getMessage());
}