| @@ -19,16 +19,16 @@ discard block | ||
| 19 | 19 | |
| 20 | 20 | // Define constants. | 
| 21 | 21 |  if ( ! defined( 'WPINV_PLUGIN_FILE' ) ) { | 
| 22 | - define( 'WPINV_PLUGIN_FILE', __FILE__ ); | |
| 22 | + define( 'WPINV_PLUGIN_FILE', __FILE__ ); | |
| 23 | 23 | } | 
| 24 | 24 | |
| 25 | 25 |  if ( ! defined( 'WPINV_VERSION' ) ) { | 
| 26 | - define( 'WPINV_VERSION', '2.8.22' ); | |
| 26 | + define( 'WPINV_VERSION', '2.8.22' ); | |
| 27 | 27 | } | 
| 28 | 28 | |
| 29 | 29 | // Include the main Invoicing class. | 
| 30 | 30 |  if ( ! class_exists( 'WPInv_Plugin', false ) ) { | 
| 31 | - require_once plugin_dir_path( WPINV_PLUGIN_FILE ) . 'includes/class-wpinv.php'; | |
| 31 | + require_once plugin_dir_path( WPINV_PLUGIN_FILE ) . 'includes/class-wpinv.php'; | |
| 32 | 32 | } | 
| 33 | 33 | |
| 34 | 34 | /** | 
| @@ -43,7 +43,7 @@ discard block | ||
| 43 | 43 | $GLOBALS['invoicing'] = new WPInv_Plugin(); | 
| 44 | 44 | } | 
| 45 | 45 | |
| 46 | - return $GLOBALS['invoicing']; | |
| 46 | + return $GLOBALS['invoicing']; | |
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | 49 | /** | 
| @@ -15,20 +15,20 @@ discard block | ||
| 15 | 15 | * @package GetPaid | 
| 16 | 16 | */ | 
| 17 | 17 | |
| 18 | -defined( 'ABSPATH' ) || exit; | |
| 18 | +defined('ABSPATH') || exit; | |
| 19 | 19 | |
| 20 | 20 | // Define constants. | 
| 21 | -if ( ! defined( 'WPINV_PLUGIN_FILE' ) ) { | |
| 22 | - define( 'WPINV_PLUGIN_FILE', __FILE__ ); | |
| 21 | +if (!defined('WPINV_PLUGIN_FILE')) { | |
| 22 | +	define('WPINV_PLUGIN_FILE', __FILE__); | |
| 23 | 23 | } | 
| 24 | 24 | |
| 25 | -if ( ! defined( 'WPINV_VERSION' ) ) { | |
| 26 | - define( 'WPINV_VERSION', '2.8.22' ); | |
| 25 | +if (!defined('WPINV_VERSION')) { | |
| 26 | +	define('WPINV_VERSION', '2.8.22'); | |
| 27 | 27 | } | 
| 28 | 28 | |
| 29 | 29 | // Include the main Invoicing class. | 
| 30 | -if ( ! class_exists( 'WPInv_Plugin', false ) ) { | |
| 31 | - require_once plugin_dir_path( WPINV_PLUGIN_FILE ) . 'includes/class-wpinv.php'; | |
| 30 | +if (!class_exists('WPInv_Plugin', false)) { | |
| 31 | + require_once plugin_dir_path(WPINV_PLUGIN_FILE) . 'includes/class-wpinv.php'; | |
| 32 | 32 | } | 
| 33 | 33 | |
| 34 | 34 | /** | 
| @@ -39,7 +39,7 @@ discard block | ||
| 39 | 39 | */ | 
| 40 | 40 |  function getpaid() { | 
| 41 | 41 | |
| 42 | -    if ( empty( $GLOBALS['invoicing'] ) ) { | |
| 42 | +    if (empty($GLOBALS['invoicing'])) { | |
| 43 | 43 | $GLOBALS['invoicing'] = new WPInv_Plugin(); | 
| 44 | 44 | } | 
| 45 | 45 | |
| @@ -52,9 +52,9 @@ discard block | ||
| 52 | 52 | * @since 2.0.8 | 
| 53 | 53 | */ | 
| 54 | 54 |  function getpaid_deactivation_hook() { | 
| 55 | - update_option( 'wpinv_flush_permalinks', 1 ); | |
| 55 | +    update_option('wpinv_flush_permalinks', 1); | |
| 56 | 56 | } | 
| 57 | -register_deactivation_hook( __FILE__, 'getpaid_deactivation_hook' ); | |
| 57 | +register_deactivation_hook(__FILE__, 'getpaid_deactivation_hook'); | |
| 58 | 58 | |
| 59 | 59 | /** | 
| 60 | 60 | * @deprecated | 
| @@ -64,4 +64,4 @@ discard block | ||
| 64 | 64 | } | 
| 65 | 65 | |
| 66 | 66 | // Kickstart the plugin. | 
| 67 | -add_action( 'plugins_loaded', 'getpaid', 0 ); | |
| 67 | +add_action('plugins_loaded', 'getpaid', 0); | |