Passed
Push — master ( 24478c...61f4f6 )
by Stiofan
03:19
created

invoicing.php ➔ ayecode_show_update_plugin_requirement()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 9
nc 2
nop 0
dl 0
loc 15
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/*
3
Plugin Name: Invoicing
4
Plugin URI: https://wpinvoicing.com/
5
Description: Invoicing plugin, this plugin allows you to send invoices (also EU VAT compliant) to people and have them pay you online.
6
Version: 1.0.0
7
Author: AyeCode Ltd
8
Author URI: https://wpinvoicing.com
9
License: GPLv3
10
*/
11
12
// MUST have WordPress.
13
if ( !defined( 'WPINC' ) ) {
14
    exit( 'Do NOT access this file directly: ' . basename( __FILE__ ) );
15
}
16
17
if ( !defined( 'WPINV_VERSION' ) ) {
18
    define( 'WPINV_VERSION', '1.0.0' );
19
}
20
21
if ( !defined( 'WPINV_PLUGIN_FILE' ) ) {
22
    define( 'WPINV_PLUGIN_FILE', __FILE__ );
23
}
24
25
require plugin_dir_path( __FILE__ ) . 'includes/class-wpinv.php';
26
27
function wpinv_run() {
28
    global $invoicing;
29
    
30
    $invoicing = WPInv_Plugin::run();
31
    
32
    return $invoicing;
33
}
34
35
// load WPInv_Plugin instance.
36
wpinv_run();