From: Chuck Scott Date: Mon, 29 Aug 2016 18:25:29 +0000 (-0400) Subject: Removed all parens from require and include statements. X-Git-Tag: v1.0.2^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f0a2e0ef08fb3c20e1b5734627deed44a8d065b8;p=WP-Plugins%2Fglm-member-db-serverstats.git Removed all parens from require and include statements. --- diff --git a/activate.php b/activate.php index 8282726..8887d50 100644 --- a/activate.php +++ b/activate.php @@ -71,7 +71,7 @@ class glmMembersServerStatsPluginActivate update_option('glmMembersDatabaseServerStatsPluginVersion', GLM_MEMBERS_SERVERSTATS_PLUGIN_VERSION); // Set Roles and Capabilities for this plugin - require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php'); + require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php'; } /* diff --git a/index.php b/index.php index 6c59f44..3dee0e4 100644 --- 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_SERVERSTATS_PL /* * Register this add-on with the main GLM Member DB plugin and get information on all add-ons loaded. */ -require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/validActions.php'); -require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/shortcodes.php'); +require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/validActions.php'; +require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/shortcodes.php'; if (is_file(GLM_MEMBERS_SERVERSTATS_PLUGIN_DB_SCRIPTS.'/dbVersions.php')) { - require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_DB_SCRIPTS.'/dbVersions.php'); + require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_DB_SCRIPTS.'/dbVersions.php'; } // Load ServerStats Management Settings data @@ -191,7 +191,7 @@ add_filter('glm-member-db-register-addon','glmMembersRegisterServerStats', 10, 1 function glmMembersServerStatsPluginActivate () { global $wpdb, $config; - require_once (GLM_MEMBERS_SERVERSTATS_PLUGIN_PATH . '/activate.php'); + require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_PATH . '/activate.php'; new glmMembersServerStatsPluginActivate($wpdb, $config); } register_activation_hook(__FILE__, 'glmMembersServerStatsPluginActivate'); @@ -200,7 +200,7 @@ add_filter('glm-member-db-register-addon','glmMembersRegisterServerStats', 10, 1 function glmMembersServerStatsPluginDeactivate () { global $wpdb, $config; - require_once (GLM_MEMBERS_SERVERSTATS_PLUGIN_PATH . '/deactivate.php'); + require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_PATH . '/deactivate.php'; $x = new glmMembersServerStatsPluginDeactivate($wpdb, $config); return false; } @@ -209,5 +209,5 @@ add_filter('glm-member-db-register-addon','glmMembersRegisterServerStats', 10, 1 /* * Hooks for testing capabilities provided by this add-on */ -require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/permissions.php'); +require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/permissions.php'; diff --git a/models/admin/ajax/serverBandwidthGraphs.php b/models/admin/ajax/serverBandwidthGraphs.php index 7ee5b98..35ee9e5 100644 --- a/models/admin/ajax/serverBandwidthGraphs.php +++ b/models/admin/ajax/serverBandwidthGraphs.php @@ -13,7 +13,7 @@ */ // Load Members Data Class -require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/serverBandwidthSupport.php'); +require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/serverBandwidthSupport.php'; /* * This class exports the currently selected members list @@ -63,7 +63,7 @@ class GlmMembersAdmin_ajax_serverBandwidthGraphs extends GlmServerBandwidthSupp $this->config = $config; // Get Server Stats database access information and connect to database - require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/data/dataManagement.php'); + require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/data/dataManagement.php'; $DataManagement = new GlmDataServerStatsManagement($this->wpdb, $this->config); $dbData= $DataManagement->getEntry(1); $this->bandwidthDataConnect( @@ -116,7 +116,7 @@ class GlmMembersAdmin_ajax_serverBandwidthGraphs extends GlmServerBandwidthSupp $data = $this->bandwidthGetGraphData($graphType); // Load PHPGraphLib - require_once(GLM_MEMBERS_PLUGIN_LIB_PATH.'/phpgraphlib-master/phpgraphlib.php'); + require_once GLM_MEMBERS_PLUGIN_LIB_PATH.'/phpgraphlib-master/phpgraphlib.php'; // Create graph object and set parameters $graph = new PHPGraphLib(1200,300); diff --git a/models/admin/dashboardWidget/serverStats.php b/models/admin/dashboardWidget/serverStats.php index d3528ca..d2580b9 100644 --- a/models/admin/dashboardWidget/serverStats.php +++ b/models/admin/dashboardWidget/serverStats.php @@ -14,7 +14,7 @@ */ // Load Members Data Class -require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/serverBandwidthSupport.php'); +require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/serverBandwidthSupport.php'; class GlmMembersAdmin_dashboardWidget_serverStats extends GlmServerBandwidthSupport @@ -89,7 +89,7 @@ class GlmMembersAdmin_dashboardWidget_serverStats extends GlmServerBandwidthSupp $this->config = $config; // Get Server Stats database access information and connect to database - require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/data/dataManagement.php'); + require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/data/dataManagement.php'; $DataManagement = new GlmDataServerStatsManagement($this->wpdb, $this->config); $dbData= $DataManagement->getEntry(1); diff --git a/models/admin/management/serverStats.php b/models/admin/management/serverStats.php index 6dc8ff9..882048a 100644 --- a/models/admin/management/serverStats.php +++ b/models/admin/management/serverStats.php @@ -14,7 +14,7 @@ */ // Load Management Server Stats data abstract -require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/data/dataManagement.php'); +require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/data/dataManagement.php'; /** * GlmMembersAdmin_management_serverStats @@ -119,7 +119,7 @@ class GlmMembersAdmin_management_serverStats extends GlmDataServerStatsManagemen } // Test database connection and warn user if not functional - require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/serverBandwidthSupport.php'); + require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/serverBandwidthSupport.php'; $BandwidthStats = new GlmServerBandwidthSupport(); $res = $BandwidthStats->bandwidthDataConnect( $serverStatsSettings['fieldData']['db_host'],