Skip to content

Commit

Permalink
code tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhunt committed Oct 26, 2018
1 parent 1ba5e9f commit df10e6d
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 14 deletions.
25 changes: 21 additions & 4 deletions classes/generico_utils.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Created by PhpStorm.
* User: justin
* Date: 17/03/24
* Time: 15:04
* @package filter
* @subpackage generico
* @copyright 2014 Justin Hunt <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/


namespace filter_generico;

defined('MOODLE_INTERNAL') || die;

class generico_utils
{
Expand Down
25 changes: 21 additions & 4 deletions classes/presets_control.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Created by PhpStorm.
* User: justin
* Date: 17/03/24
* Time: 14:58
* @package filter
* @subpackage generico
* @copyright 2014 Justin Hunt <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace filter_generico;

defined('MOODLE_INTERNAL') || die;

require_once($CFG->libdir . '/adminlib.php');

class presets_control extends \admin_setting
Expand Down
27 changes: 22 additions & 5 deletions classes/template_script_generator.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Created by PhpStorm.
* User: justin
* Date: 17/03/24
* Time: 14:57
* @package filter
* @subpackage generico
* @copyright 2014 Justin Hunt <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace filter_generico;

namespace filter_generico;

defined('MOODLE_INTERNAL') || die;

class template_script_generator
{
Expand Down
3 changes: 3 additions & 0 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();


/**
* @param int $oldversion the version we are upgrading from
* @return bool result
Expand Down
3 changes: 2 additions & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;

$settings = null;
defined('MOODLE_INTERNAL') || die;

if (is_siteadmin()) {
global $PAGE;

Expand Down

0 comments on commit df10e6d

Please sign in to comment.