Passed
Push — master ( f94701...93534b )
by Nirjhar
02:18
created
lib/class-ajax.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,9 @@
 block discarded – undo
6 6
  * @author     Nirjhar Lo
7 7
  * @package    wp-plugin-framework
8 8
  */
9
-if ( ! defined( 'ABSPATH' ) ) exit;
9
+if ( ! defined( 'ABSPATH' ) ) {
10
+	exit;
11
+}
10 12
 
11 13
 //AJAX helper class
12 14
 if ( ! class_exists( 'PLUGIN_AJAX' ) ) {
Please login to merge, or discard this patch.
lib/class-script.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,9 @@
 block discarded – undo
5 5
  * @author     Nirjhar Lo
6 6
  * @package    wp-plugin-framework
7 7
  */
8
-if ( ! defined( 'ABSPATH' ) ) exit;
8
+if ( ! defined( 'ABSPATH' ) ) {
9
+	exit;
10
+}
9 11
 
10 12
 if ( ! class_exists( 'PLUGIN_SCRIPT' ) ) {
11 13
 
Please login to merge, or discard this patch.
src/class-cpt.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
  * Custom post type class
Please login to merge, or discard this patch.
autoload.php 1 patch
Braces   +24 added lines, -8 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
  * Main plugin object to define the plugin
@@ -95,7 +97,9 @@  discard block
 block discarded – undo
95 97
 			}
96 98
 
97 99
 			//If CPT exists, include taht and flush the rewrite rules
98
-			if ( class_exists( 'PLUGIN_CPT' ) ) new PLUGIN_CPT();
100
+			if ( class_exists( 'PLUGIN_CPT' ) ) {
101
+				new PLUGIN_CPT();
102
+			}
99 103
 			flush_rewrite_rules();
100 104
 		}
101 105
 
@@ -228,7 +232,9 @@  discard block
 block discarded – undo
228 232
 		 */
229 233
 		public function cpt() {
230 234
 
231
-			if ( class_exists( 'PLUGIN_CPT' ) ) new PLUGIN_CPT();
235
+			if ( class_exists( 'PLUGIN_CPT' ) ) {
236
+				new PLUGIN_CPT();
237
+			}
232 238
 		}
233 239
 
234 240
 
@@ -239,7 +245,9 @@  discard block
 block discarded – undo
239 245
 		 */
240 246
 		public function scripts() {
241 247
 
242
-			if ( class_exists( 'PLUGIN_SCRIPT' ) ) new PLUGIN_SCRIPT();
248
+			if ( class_exists( 'PLUGIN_SCRIPT' ) ) {
249
+				new PLUGIN_SCRIPT();
250
+			}
243 251
 		}
244 252
 
245 253
 
@@ -250,7 +258,9 @@  discard block
 block discarded – undo
250 258
 		 */
251 259
 		public function settings() {
252 260
 
253
-			if ( class_exists( 'PLUGIN_SETTINGS' ) ) new PLUGIN_SETTINGS();
261
+			if ( class_exists( 'PLUGIN_SETTINGS' ) ) {
262
+				new PLUGIN_SETTINGS();
263
+			}
254 264
 		}
255 265
 
256 266
 
@@ -261,7 +271,9 @@  discard block
 block discarded – undo
261 271
 		 */
262 272
 		public function widgets() {
263 273
 
264
-			if ( class_exists( 'PLUGIN_WIDGET' ) ) new PLUGIN_WIDGET();
274
+			if ( class_exists( 'PLUGIN_WIDGET' ) ) {
275
+				new PLUGIN_WIDGET();
276
+			}
265 277
 		}
266 278
 
267 279
 
@@ -272,7 +284,9 @@  discard block
 block discarded – undo
272 284
 		 */
273 285
 		public function metabox() {
274 286
 
275
-			if ( class_exists( 'PLUGIN_METABOX' ) ) new PLUGIN_METABOX();
287
+			if ( class_exists( 'PLUGIN_METABOX' ) ) {
288
+				new PLUGIN_METABOX();
289
+			}
276 290
 		}
277 291
 
278 292
 
@@ -283,7 +297,9 @@  discard block
 block discarded – undo
283 297
 		 */
284 298
 		public function shortcode() {
285 299
 
286
-			if ( class_exists( 'PLUGIN_SHORTCODE' ) ) new PLUGIN_SHORTCODE();
300
+			if ( class_exists( 'PLUGIN_SHORTCODE' ) ) {
301
+				new PLUGIN_SHORTCODE();
302
+			}
287 303
 		}
288 304
 
289 305
 
Please login to merge, or discard this patch.