Passed
Push — master ( 93534b...206518 )
by Nirjhar
08:40
created
autoload.php 1 patch
Braces   +27 added lines, -9 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
 
@@ -294,7 +310,9 @@  discard block
 block discarded – undo
294 310
 		 */
295 311
 		 public function rest_api() {
296 312
 
297
-			 if ( class_exists( 'PLUGIN_CUSTOM_ROUTE' ) ) new PLUGIN_CUSTOM_ROUTE();
313
+			 if ( class_exists( 'PLUGIN_CUSTOM_ROUTE' ) ) {
314
+			 	new PLUGIN_CUSTOM_ROUTE();
315
+			 }
298 316
 		 }
299 317
 
300 318
 
Please login to merge, or discard this patch.
src/class-rest.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 <?php
3
-if ( ! defined( 'ABSPATH' ) ) exit;
3
+if ( ! defined( 'ABSPATH' ) ) {
4
+	exit;
5
+}
4 6
 
5 7
 /**
6 8
  * Extending REST API framework of WordPress
Please login to merge, or discard this patch.