@@ -10,19 +10,19 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | // MUST have WordPress. |
| 13 | -if ( !defined( 'WPINC' ) ) { |
|
| 14 | - exit( 'Do NOT access this file directly: ' . basename( __FILE__ ) ); |
|
| 13 | +if (!defined('WPINC')) { |
|
| 14 | + exit('Do NOT access this file directly: ' . basename(__FILE__)); |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | -if ( !defined( 'WPINV_VERSION' ) ) { |
|
| 18 | - define( 'WPINV_VERSION', '1.0.4' ); |
|
| 17 | +if (!defined('WPINV_VERSION')) { |
|
| 18 | + define('WPINV_VERSION', '1.0.4'); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 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 | -require plugin_dir_path( __FILE__ ) . 'includes/class-wpinv.php'; |
|
| 25 | +require plugin_dir_path(__FILE__) . 'includes/class-wpinv.php'; |
|
| 26 | 26 | |
| 27 | 27 | function wpinv_run() { |
| 28 | 28 | global $invoicing; |