Browse Source

Format code

jmontoyaa 8 years ago
parent
commit
31fc062f73

+ 1 - 6
plugin/advanced_subscription/config.php

@@ -1,5 +1,6 @@
 <?php
 /* For licensing terms, see /license.txt */
+
 /**
  * Config the plugin
  * @author Daniel Alejandro Barreto Alva <daniel.barreto@beeznest.com>
@@ -7,7 +8,6 @@
  */
 
 define('TABLE_ADVANCED_SUBSCRIPTION_QUEUE', 'plugin_advanced_subscription_queue');
-
 define('ADVANCED_SUBSCRIPTION_ACTION_STUDENT_REQUEST', 0);
 define('ADVANCED_SUBSCRIPTION_ACTION_SUPERIOR_APPROVE', 1);
 define('ADVANCED_SUBSCRIPTION_ACTION_SUPERIOR_DISAPPROVE', 2);
@@ -19,18 +19,13 @@ define('ADVANCED_SUBSCRIPTION_ACTION_REMINDER_STUDENT', 7);
 define('ADVANCED_SUBSCRIPTION_ACTION_REMINDER_SUPERIOR', 8);
 define('ADVANCED_SUBSCRIPTION_ACTION_REMINDER_SUPERIOR_MAX', 9);
 define('ADVANCED_SUBSCRIPTION_ACTION_REMINDER_ADMIN', 10);
-
 define('ADVANCED_SUBSCRIPTION_QUEUE_STATUS_NO_QUEUE', -1);
 define('ADVANCED_SUBSCRIPTION_QUEUE_STATUS_START', 0);
 define('ADVANCED_SUBSCRIPTION_QUEUE_STATUS_BOSS_DISAPPROVED', 1);
 define('ADVANCED_SUBSCRIPTION_QUEUE_STATUS_BOSS_APPROVED', 2);
 define('ADVANCED_SUBSCRIPTION_QUEUE_STATUS_ADMIN_DISAPPROVED', 3);
 define('ADVANCED_SUBSCRIPTION_QUEUE_STATUS_ADMIN_APPROVED', 10);
-
 define('ADVANCED_SUBSCRIPTION_TERMS_MODE_POPUP', 0);
 define('ADVANCED_SUBSCRIPTION_TERMS_MODE_REJECT', 1);
 define('ADVANCED_SUBSCRIPTION_TERMS_MODE_FINAL', 2);
 
-
-
-require_once __DIR__ . '/../../main/inc/global.inc.php';

+ 0 - 4
plugin/advanced_subscription/install.php

@@ -6,10 +6,6 @@
  * @package chamilo.plugin.advanced_subscription
  */
 
-/**
- * Initialization
- */
-
 require_once dirname(__FILE__) . '/config.php';
 if (!api_is_platform_admin()) {
     die ('You must have admin permissions to install plugins');

+ 2 - 1
plugin/advanced_subscription/plugin.php

@@ -1,7 +1,8 @@
 <?php
 /* For license terms, see /license.txt */
 /**
- * This script is a configuration file for the date plugin. You can use it as a master for other platform plugins (course plugins are slightly different).
+ * This script is a configuration file for the date plugin.
+ * You can use it as a master for other platform plugins (course plugins are slightly different).
  * These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins)
  * @package chamilo.plugin.advanced_subscription
  */

+ 1 - 0
plugin/advanced_subscription/src/HookAdvancedSubscription.php

@@ -1,5 +1,6 @@
 <?php
 /* For licensing terms, see /license.txt */
+
 /**
  * Hook Observer for Advanced subscription plugin
  * @author Daniel Alejandro Barreto Alva <daniel.barreto@beeznest.com>

+ 2 - 3
plugin/advanced_subscription/src/admin_view.php

@@ -1,12 +1,11 @@
 <?php
 /* For license terms, see /license.txt */
+
 /**
  * Index of the Advanced subscription plugin courses list
  * @package chamilo.plugin.advanced_subscription
  */
-/**
- * Init
- */
+
 require_once __DIR__ . '/../config.php';
 // protect
 api_protect_admin_script();

+ 1 - 0
plugin/advanced_subscription/src/open_session.php

@@ -1,5 +1,6 @@
 <?php
 /* For licensing terms, see /license.txt */
+
 /**
  * Validate requirements for a open session
  * @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>

+ 1 - 3
plugin/advanced_subscription/src/render_mail.php

@@ -1,13 +1,11 @@
 <?php
 /* For license terms, see /license.txt */
+
 /**
  * Render an email from data
  * @package chamilo.plugin.advanced_subscription
  */
 
-/**
- * Init
- */
 require_once __DIR__ . '/../config.php';
 
 $plugin = AdvancedSubscriptionPlugin::create();

+ 2 - 3
plugin/advanced_subscription/src/terms_and_conditions.php

@@ -4,10 +4,9 @@
  * Script to show sessions terms and conditions
  * @package chamilo.plugin.advanced_subscription
  */
-/**
- * Init
- */
+
 require_once __DIR__ . '/../config.php';
+
 // start plugin
 $plugin = AdvancedSubscriptionPlugin::create();
 // Session ID

+ 1 - 3
plugin/advanced_subscription/uninstall.php

@@ -1,5 +1,6 @@
 <?php
 /* For license terms, see /license.txt */
+
 /**
  * This script is included by main/admin/settings.lib.php when unselecting a plugin
  * and is meant to remove things installed by the install.php script in both
@@ -7,9 +8,6 @@
  * @package chamilo.plugin.advanced_subscription
 */
 
-/**
- * Queries
- */
 require_once dirname(__FILE__) . '/config.php';
 if (!api_is_platform_admin()) {
     die ('You must have admin permissions to uninstall plugins');