Cleaned up include/require parens.
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 9 Sep 2016 20:32:26 +0000 (16:32 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 9 Sep 2016 20:32:26 +0000 (16:32 -0400)
activate.php
index.php
models/front/hooked/detail.php
models/front/hooked/memberList.php
models/front/packaging/detail.php
models/front/packaging/list.php
setup/shortcodeBuilder.php

index 8d3aeca..f58b240 100644 (file)
@@ -71,7 +71,7 @@ class glmMembersPackagingPluginActivate
         update_option('glmMembersDatabasePackagingPluginVersion', GLM_MEMBERS_PACKAGING_PLUGIN_VERSION);
 
         // Set Roles and Capabilities for this plugin
-        require_once(GLM_MEMBERS_PACKAGING_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php');
+        require_once GLM_MEMBERS_PACKAGING_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php';
     }
 
     /*
index 3fd51b7..a719e39 100644 (file)
--- a/index.php
+++ b/index.php
@@ -78,10 +78,10 @@ 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';
 
 /*
  * Do some checks to make sure the main GLM Member DB is active and of a recceint enough version
index e3773d6..5a1a359 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 // Load packages data abstract
-require_once(GLM_MEMBERS_PACKAGING_PLUGIN_CLASS_PATH.'/data/dataPackages.php');
+require_once GLM_MEMBERS_PACKAGING_PLUGIN_CLASS_PATH.'/data/dataPackages.php;
 
 /*
  * This class performs the work for displaying members packages.
index 60bf860..31fb4cf 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 // Load packages data abstract
-require_once(GLM_MEMBERS_PACKAGING_PLUGIN_CLASS_PATH.'/data/dataPackages.php');
+require_once GLM_MEMBERS_PACKAGING_PLUGIN_CLASS_PATH.'/data/dataPackages.php';
 
 /*
  * This class performs the work for displaying members packages.
index b3e3a9b..2c9d890 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 // Load packages data abstract
-require_once(GLM_MEMBERS_PACKAGING_PLUGIN_CLASS_PATH.'/data/dataPackages.php');
+require_once GLM_MEMBERS_PACKAGING_PLUGIN_CLASS_PATH.'/data/dataPackages.php';
 
 /*
  * This class performs the work for displaying members packages.
@@ -140,7 +140,7 @@ class GlmMembersFront_packaging_detail extends GlmDataPackages
             'packageID' => $packageID,
             'package' => $package
         );
-        
+
         // Return status, suggested view, and data to controller - also return any modified settings
         return array(
             'status' => $status,
index f89c91c..b065c9a 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 // Load packages data abstract
-require_once(GLM_MEMBERS_PACKAGING_PLUGIN_CLASS_PATH.'/data/dataPackages.php');
+require_once GLM_MEMBERS_PACKAGING_PLUGIN_CLASS_PATH.'/data/dataPackages.php';
 
 /*
  * This class performs the work for displaying members packages.
@@ -252,7 +252,7 @@ class GlmMembersFront_packaging_list extends GlmDataPackages
                 $view = 'list.html';
                 break;
         }
-        
+
         // Compile template data
         $templateData = array(
             'siteBaseUrl' => GLM_MEMBERS_SITE_BASE_URL,
index 8fa97d9..9aed0fa 100644 (file)
@@ -2,10 +2,10 @@
     /*
     * Packages Shortcode Attributes
     */
-    
-    require_once(GLM_MEMBERS_PACKAGING_PLUGIN_CLASS_PATH.'/data/dataPackages.php');
-    require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH. '/data/dataMembers.php');
-    
+
+    require_once GLM_MEMBERS_PACKAGING_PLUGIN_CLASS_PATH.'/data/dataPackages.php';
+    require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php';
+
     $members = new GlmDataMembers($this->wpdb, $this->config);
     $membersList = $members->getIdName();
 
             $packageListId[] = $value['id'];
         }
     }
-    
+
     // loop through packaging list shortcode attributes
     foreach($packageListAttr as $key=>$value){
         $listAttributes[] = $key;
         $values[] = $value;
      }
 
-     
+
     echo '<span id="packageListAttr">';
         echo '<select id="type-scDropdown">';
         echo '<option selected>Select Type</option>';
@@ -38,7 +38,7 @@
         echo '<option value="member">Member</option>';
         echo '<option value="multi-member">Multi-Member</option>';
         echo '</select>';
-        
+
         echo '<select id="order-scDropdown">';
         echo '<option selected>Select Order</option>';
         echo '<option value="member">Order</option>';
         echo '<option value="expire-date">Expire Date</option>';
 
         echo '</select>';
-        
+
         echo '<select id="member-scDropdown">';
         echo '<option selected>Add Member</option>';
          foreach($membersList as $key=>$value){
              echo '<option value=' .$value['id'] . '>' . $value['name'] . '</option>';
         }
         echo '</select>';
-        
+
         echo '<select id="template-scDropdown">';
         echo '<option selected>Select Template</option>';
         echo '<option value="member-list">Member List</option>';
         echo '<option value="member-detail">Member Detail</option>';
         echo '</select>';
     echo '</span>';
-     
-     /* IDs are used as placeholders currently until the attributes and their values are 
+
+     /* IDs are used as placeholders currently until the attributes and their values are
       figured out
-     
+
      dropdown for package list 'type' attr  */
 
     // Package 'ID' attr