Passed
Push — master ( c28712...836585 )
by Nirjhar
02:28
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
 //Main plugin object to define the plugin
5 7
 if ( ! class_exists( 'PLUGIN_BUILD' ) ) {
@@ -129,7 +131,9 @@  discard block
 block discarded – undo
129 131
 		//Include scripts
130 132
 		public function scripts() {
131 133
 
132
-			if ( class_exists( 'PLUGIN_SCRIPT' ) ) new PLUGIN_SCRIPT();
134
+			if ( class_exists( 'PLUGIN_SCRIPT' ) ) {
135
+				new PLUGIN_SCRIPT();
136
+			}
133 137
 		}
134 138
 
135 139
 
@@ -137,14 +141,18 @@  discard block
 block discarded – undo
137 141
 		//Include settings pages
138 142
 		public function settings() {
139 143
 
140
-			if ( class_exists( 'PLUGIN_SETTINGS' ) ) new PLUGIN_SETTINGS();
144
+			if ( class_exists( 'PLUGIN_SETTINGS' ) ) {
145
+				new PLUGIN_SETTINGS();
146
+			}
141 147
 		}
142 148
 
143 149
 
144 150
 		//Include widget classes
145 151
 		public function widgets() {
146 152
 
147
-			if ( class_exists( 'PLUGIN_WIDGET' ) ) new PLUGIN_WIDGET();
153
+			if ( class_exists( 'PLUGIN_WIDGET' ) ) {
154
+				new PLUGIN_WIDGET();
155
+			}
148 156
 		}
149 157
 
150 158
 
@@ -152,7 +160,9 @@  discard block
 block discarded – undo
152 160
 		//Include metabox classes
153 161
 		public function metabox() {
154 162
 
155
-			if ( class_exists( 'PLUGIN_METABOX' ) ) new PLUGIN_METABOX();
163
+			if ( class_exists( 'PLUGIN_METABOX' ) ) {
164
+				new PLUGIN_METABOX();
165
+			}
156 166
 		}
157 167
 
158 168
 
@@ -160,7 +170,9 @@  discard block
 block discarded – undo
160 170
 		//Include shortcode classes
161 171
 		public function shortcode() {
162 172
 
163
-			if ( class_exists( 'PLUGIN_SHORTCODE' ) ) new PLUGIN_SHORTCODE();
173
+			if ( class_exists( 'PLUGIN_SHORTCODE' ) ) {
174
+				new PLUGIN_SHORTCODE();
175
+			}
164 176
 		}
165 177
 
166 178
 
Please login to merge, or discard this patch.