Removed all parens from require and include statements.
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 29 Aug 2016 18:24:20 +0000 (14:24 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 29 Aug 2016 18:24:20 +0000 (14:24 -0400)
activate.php
index.php
models/admin/info/index.php
models/admin/sample/index.php
models/admin/sample/more.php

index ddff3ba..ca29be3 100644 (file)
@@ -83,7 +83,7 @@ class glmMembersSamplePluginActivate
         update_option('glmMembersDatabaseSamplePluginVersion', GLM_MEMBERS_SAMPLE_PLUGIN_VERSION);
 
         // Set Roles and Capabilities for this plugin
-        require_once(GLM_MEMBERS_SAMPLE_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php');
+        require_once GLM_MEMBERS_SAMPLE_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php';
     }
 
     /*
index 3d6c8da..2e6c439 100644 (file)
--- a/index.php
+++ b/index.php
@@ -94,13 +94,13 @@ if (!defined('ABSPATH')) {
 $startupNotices = '';
 
 // Get standard defined parameters
-require_once('defines.php');
+require_once 'defines.php';
 
 // Required to be able to get user capabilities when being called as a filter from the main plugin
-require_once(ABSPATH . 'wp-includes/pluggable.php');
+require_once ABSPATH . 'wp-includes/pluggable.php';
 
 // Include defines to tell if a plugin is active
-include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
+include_once ABSPATH . 'wp-admin/includes/plugin.php';
 
 /*
  * Do some preliminary sanity checks
@@ -152,10 +152,10 @@ if (version_compare($glmMembersDatabasePluginVersion, GLM_MEMBERS_SAMPLE_PLUGIN_
 /*
  * Register this add-on with the main GLM Member DB plugin and get information on all add-ons loaded.
  */
-require_once(GLM_MEMBERS_SAMPLE_PLUGIN_SETUP_PATH.'/validActions.php');
-require_once(GLM_MEMBERS_SAMPLE_PLUGIN_SETUP_PATH.'/shortcodes.php');
+require_once GLM_MEMBERS_SAMPLE_PLUGIN_SETUP_PATH.'/validActions.php';
+require_once GLM_MEMBERS_SAMPLE_PLUGIN_SETUP_PATH.'/shortcodes.php';
 if (is_file(GLM_MEMBERS_SAMPLE_PLUGIN_DB_SCRIPTS.'/dbVersions.php')) {
-    require_once(GLM_MEMBERS_SAMPLE_PLUGIN_DB_SCRIPTS.'/dbVersions.php');
+    require_once GLM_MEMBERS_SAMPLE_PLUGIN_DB_SCRIPTS.'/dbVersions.php';
 }
 
 // Load Sample Management Settings data
@@ -207,7 +207,7 @@ add_filter('glm-member-db-register-addon','glmMembersRegisterSample', 10, 1);
  function glmMembersSamplePluginActivate ()
  {
      global $wpdb, $config;
-     require_once (GLM_MEMBERS_SAMPLE_PLUGIN_PATH . '/activate.php');
+     require_once GLM_MEMBERS_SAMPLE_PLUGIN_PATH . '/activate.php';
      new glmMembersSamplePluginActivate($wpdb, $config);
  }
  register_activation_hook(__FILE__, 'glmMembersSamplePluginActivate');
@@ -216,7 +216,7 @@ add_filter('glm-member-db-register-addon','glmMembersRegisterSample', 10, 1);
  function glmMembersSamplePluginDeactivate ()
  {
      global $wpdb, $config;
-     require_once (GLM_MEMBERS_SAMPLE_PLUGIN_PATH . '/deactivate.php');
+     require_once GLM_MEMBERS_SAMPLE_PLUGIN_PATH . '/deactivate.php';
      $x = new glmMembersSamplePluginDeactivate($wpdb, $config);
      return false;
  }
@@ -225,5 +225,5 @@ add_filter('glm-member-db-register-addon','glmMembersRegisterSample', 10, 1);
 /*
  * Hooks for testing capabilities provided by this add-on
  */
-require_once(GLM_MEMBERS_SAMPLE_PLUGIN_SETUP_PATH.'/permissions.php');
+require_once GLM_MEMBERS_SAMPLE_PLUGIN_SETUP_PATH.'/permissions.php';
 
index 4c61edb..27ea48e 100644 (file)
@@ -14,7 +14,7 @@
  */
 
 // Load Contacts data abstract
-//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
+//require_once GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php';
 
 class GlmMembersAdmin_info_index // extends GlmDataContacts
 {
index 5c321df..f8b75c3 100644 (file)
@@ -14,7 +14,7 @@
  */
 
 // Load Contacts data abstract
-//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
+//require_once GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php';
 
 class GlmMembersAdmin_sample_index // extends GlmDataContacts
 {
index b814759..d641416 100644 (file)
@@ -14,7 +14,7 @@
  */
 
 // Load Contacts data abstract
-//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
+// require_once GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php';
 
 class GlmMembersAdmin_sample_more // extends GlmDataContacts
 {