Passed
Push — master ( 1297c1...1551ad )
by Nirjhar
02:14
created
autoload.php 1 patch
Braces   +18 added lines, -6 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
@@ -165,7 +167,9 @@  discard block
 block discarded – undo
165 167
 		 */
166 168
 		public function scripts() {
167 169
 
168
-			if ( class_exists( 'PLUGIN_SCRIPT' ) ) new PLUGIN_SCRIPT();
170
+			if ( class_exists( 'PLUGIN_SCRIPT' ) ) {
171
+				new PLUGIN_SCRIPT();
172
+			}
169 173
 		}
170 174
 
171 175
 
@@ -176,7 +180,9 @@  discard block
 block discarded – undo
176 180
 		 */
177 181
 		public function settings() {
178 182
 
179
-			if ( class_exists( 'PLUGIN_SETTINGS' ) ) new PLUGIN_SETTINGS();
183
+			if ( class_exists( 'PLUGIN_SETTINGS' ) ) {
184
+				new PLUGIN_SETTINGS();
185
+			}
180 186
 		}
181 187
 
182 188
 
@@ -187,7 +193,9 @@  discard block
 block discarded – undo
187 193
 		 */
188 194
 		public function widgets() {
189 195
 
190
-			if ( class_exists( 'PLUGIN_WIDGET' ) ) new PLUGIN_WIDGET();
196
+			if ( class_exists( 'PLUGIN_WIDGET' ) ) {
197
+				new PLUGIN_WIDGET();
198
+			}
191 199
 		}
192 200
 
193 201
 
@@ -198,7 +206,9 @@  discard block
 block discarded – undo
198 206
 		 */
199 207
 		public function metabox() {
200 208
 
201
-			if ( class_exists( 'PLUGIN_METABOX' ) ) new PLUGIN_METABOX();
209
+			if ( class_exists( 'PLUGIN_METABOX' ) ) {
210
+				new PLUGIN_METABOX();
211
+			}
202 212
 		}
203 213
 
204 214
 
@@ -209,7 +219,9 @@  discard block
 block discarded – undo
209 219
 		 */
210 220
 		public function shortcode() {
211 221
 
212
-			if ( class_exists( 'PLUGIN_SHORTCODE' ) ) new PLUGIN_SHORTCODE();
222
+			if ( class_exists( 'PLUGIN_SHORTCODE' ) ) {
223
+				new PLUGIN_SHORTCODE();
224
+			}
213 225
 		}
214 226
 
215 227
 
Please login to merge, or discard this patch.
wp-plugin-framework.php 1 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.