Cleaned up include/require parens.
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 9 Sep 2016 20:33:21 +0000 (16:33 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 9 Sep 2016 20:33:21 +0000 (16:33 -0400)
activate.php
index.php
models/admin/ajax/xmlSitemap.php
models/admin/management/search.php
models/front/search/index.php
models/front/search/sitemap.php

index cd69856..1c1e4cb 100644 (file)
@@ -71,7 +71,7 @@ class glmMembersSearchPluginActivate
         update_option('glmMembersDatabaseSearchPluginVersion', GLM_MEMBERS_SEARCH_PLUGIN_VERSION);
 
         // Set Roles and Capabilities for this plugin
-        require_once(GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php');
+        require_once GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php';
     }
 
     /*
index 9530bba..f848274 100644 (file)
--- a/index.php
+++ b/index.php
@@ -78,13 +78,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
@@ -136,10 +136,10 @@ if (version_compare($glmMembersDatabasePluginVersion, GLM_MEMBERS_SEARCH_PLUGIN_
 /*
  * Register this add-on with the main GLM Member DB plugin and get information on all add-ons loaded.
  */
-require_once(GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/validActions.php');
-require_once(GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/shortcodes.php');
+require_once GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/validActions.php';
+require_once GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/shortcodes.php';
 if (is_file(GLM_MEMBERS_SEARCH_PLUGIN_DB_SCRIPTS.'/dbVersions.php')) {
-    require_once(GLM_MEMBERS_SEARCH_PLUGIN_DB_SCRIPTS.'/dbVersions.php');
+    require_once GLM_MEMBERS_SEARCH_PLUGIN_DB_SCRIPTS.'/dbVersions.php';
 }
 
 // Load Search Management Settings data
@@ -190,7 +190,7 @@ add_filter('glm-member-db-register-addon','glmMembersRegisterSearch', 10, 1);
  function glmMembersSearchPluginActivate ()
  {
      global $wpdb, $config;
-     require_once (GLM_MEMBERS_SEARCH_PLUGIN_PATH . '/activate.php');
+     require_once GLM_MEMBERS_SEARCH_PLUGIN_PATH . '/activate.php';
      new glmMembersSearchPluginActivate($wpdb, $config);
  }
  register_activation_hook(__FILE__, 'glmMembersSearchPluginActivate');
@@ -199,7 +199,7 @@ add_filter('glm-member-db-register-addon','glmMembersRegisterSearch', 10, 1);
  function glmMembersSearchPluginDeactivate ()
  {
      global $wpdb, $config;
-     require_once (GLM_MEMBERS_SEARCH_PLUGIN_PATH . '/deactivate.php');
+     require_once GLM_MEMBERS_SEARCH_PLUGIN_PATH . '/deactivate.php';
      $x = new glmMembersSearchPluginDeactivate($wpdb, $config);
      return false;
  }
@@ -208,5 +208,5 @@ add_filter('glm-member-db-register-addon','glmMembersRegisterSearch', 10, 1);
 /*
  * Hooks for testing capabilities provided by this add-on
  */
-require_once(GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/permissions.php');
+require_once GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/permissions.php';
 
index 09ea41f..e740c58 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 // Load GLM Search class
-require_once(GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/glmSearch.php');
+require_once GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/glmSearch.php';
 
 /*
  * This class uses the Gaslight Media Open Search Server to
index 9e7f066..9ca7953 100644 (file)
@@ -14,7 +14,7 @@
  */
 
 // Load Management Search data abstract
-require_once(GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/data/dataManagement.php');
+require_once GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/data/dataManagement.php';
 
 /**
  * GlmMembersAdmin_management_search
index 259dab0..f64dbdb 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 // Load GLM Search class
-require_once(GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/glmSearch.php');
+require_once GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/glmSearch.php';
 
 /*
  * Perform searches using the Gaslight Media Open Search Server
index 34c3506..3732853 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 // Load GLM Search class
-require_once(GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/glmSearch.php');
+require_once GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/glmSearch.php';
 
 /*
  * Perform searches using the Gaslight Media Open Search Server