Passed
Push — master ( 1297c1...1551ad )
by Nirjhar
02:14
created
lib/ajax.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,9 @@
 block discarded – undo
3 3
  * Doing AJAX the WordPress way.
4 4
  * Use this class in admin or user side
5 5
  */
6
-if ( ! defined( 'ABSPATH' ) ) exit;
6
+if ( ! defined( 'ABSPATH' ) ) {
7
+	exit;
8
+}
7 9
 
8 10
 //AJAX helper class
9 11
 if ( ! class_exists( 'PLUGIN_AJAX' ) ) {
Please login to merge, or discard this patch.
lib/upload.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 
4 6
 /**
5 7
  * Plugin upload for WordPress front end or backend
Please login to merge, or discard this patch.
lib/script.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,9 @@
 block discarded – undo
2 2
 /**
3 3
  * Add scripts to the plugin. CSS and JS.
4 4
  */
5
-if ( ! defined( 'ABSPATH' ) ) exit;
5
+if ( ! defined( 'ABSPATH' ) ) {
6
+	exit;
7
+}
6 8
 
7 9
 if ( ! class_exists( 'PLUGIN_SCRIPT' ) ) {
8 10
 
Please login to merge, or discard this patch.
lib/cron.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 
4 6
 /**
5 7
  *
Please login to merge, or discard this patch.
src/db.php 1 patch
Braces   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 
4 6
 /**
5 7
  * DB installation class
@@ -45,10 +47,12 @@  discard block
 block discarded – undo
45 47
 			$wpdb->hide_errors();
46 48
 			$collate = "";
47 49
 		    if ( $wpdb->has_cap( 'collation' ) ) {
48
-				if( ! empty($wpdb->charset ) )
49
-					$collate .= "DEFAULT CHARACTER SET $wpdb->charset";
50
-				if( ! empty($wpdb->collate ) )
51
-					$collate .= " COLLATE $wpdb->collate";
50
+				if( ! empty($wpdb->charset ) ) {
51
+									$collate .= "DEFAULT CHARACTER SET $wpdb->charset";
52
+				}
53
+				if( ! empty($wpdb->collate ) ) {
54
+									$collate .= " COLLATE $wpdb->collate";
55
+				}
52 56
 		    }
53 57
     		require_once( $this->up_path );
54 58
 			return $collate;
Please login to merge, or discard this patch.
src/shortcode.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 
4 6
 /**
5 7
  * Shortcode class for rendering in front end
Please login to merge, or discard this patch.
src/widget.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 
4 6
 /**
5 7
  * Widget class
Please login to merge, or discard this patch.
src/install.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 
4 6
 /**
5 7
  * Implimentation of WordPress inbuilt functions for plugin activation.
Please login to merge, or discard this patch.
src/query.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 
4 6
 /**
5 7
  * WP Query class for querying WP database
Please login to merge, or discard this patch.