Passed
Push — master ( c2191f...1297c1 )
by Nirjhar
08:04
created
wp-plugin-framework.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,23 +11,23 @@
 block discarded – undo
11 11
  License: GPLv2
12 12
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
13 13
  */
14
-if ( !defined( 'ABSPATH' ) ) exit;
14
+if ( ! defined('ABSPATH')) exit;
15 15
 
16 16
 
17 17
 //Define basic names
18 18
 //Edit the "_PLUGIN" in following namespaces for compatibility with your desired name.
19
-defined( 'PLUGIN_DEBUG' ) or define( 'PLUGIN_DEBUG', false );
19
+defined('PLUGIN_DEBUG') or define('PLUGIN_DEBUG', false);
20 20
 
21
-defined( 'PLUGIN_PATH' ) or define( 'PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
22
-defined( 'PLUGIN_FILE' ) or define( 'PLUGIN_FILE', plugin_basename( __FILE__ ) );
21
+defined('PLUGIN_PATH') or define('PLUGIN_PATH', plugin_dir_path(__FILE__));
22
+defined('PLUGIN_FILE') or define('PLUGIN_FILE', plugin_basename(__FILE__));
23 23
 
24
-defined( 'PLUGIN_TRANSLATE' ) or define( 'PLUGIN_TRANSLATE', plugin_basename( plugin_dir_path( __FILE__ ) . 'asset/ln/' ) );
24
+defined('PLUGIN_TRANSLATE') or define('PLUGIN_TRANSLATE', plugin_basename(plugin_dir_path(__FILE__) . 'asset/ln/'));
25 25
 
26
-defined( 'PLUGIN_JS' ) or define( 'PLUGIN_JS', plugins_url( '/asset/js/', __FILE__  ) );
27
-defined( 'PLUGIN_CSS' ) or define( 'PLUGIN_CSS', plugins_url( '/asset/css/', __FILE__ ) );
28
-defined( 'PLUGIN_IMAGE' ) or define( 'PLUGIN_IMAGE', plugins_url( '/asset/img/', __FILE__ ) );
26
+defined('PLUGIN_JS') or define('PLUGIN_JS', plugins_url('/asset/js/', __FILE__));
27
+defined('PLUGIN_CSS') or define('PLUGIN_CSS', plugins_url('/asset/css/', __FILE__));
28
+defined('PLUGIN_IMAGE') or define('PLUGIN_IMAGE', plugins_url('/asset/img/', __FILE__));
29 29
 
30 30
 
31 31
 //The Plugin
32 32
 require_once('autoload.php');
33
-if ( class_exists( 'PLUGIN_BUILD' ) ) new PLUGIN_BUILD(); ?>
33
+if (class_exists('PLUGIN_BUILD')) new PLUGIN_BUILD(); ?>
Please login to merge, or discard this patch.
Braces   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,9 @@  discard block
 block discarded – undo
11 11
  License: GPLv2
12 12
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
13 13
  */
14
-if ( !defined( 'ABSPATH' ) ) exit;
14
+if ( !defined( 'ABSPATH' ) ) {
15
+	exit;
16
+}
15 17
 
16 18
 
17 19
 //Define basic names
@@ -30,4 +32,7 @@  discard block
 block discarded – undo
30 32
 
31 33
 //The Plugin
32 34
 require_once('autoload.php');
33
-if ( class_exists( 'PLUGIN_BUILD' ) ) new PLUGIN_BUILD(); ?>
35
+if ( class_exists( 'PLUGIN_BUILD' ) ) {
36
+	new PLUGIN_BUILD();
37
+}
38
+?>
Please login to merge, or discard this patch.