Passed
Push — master ( aebf2b...336c10 )
by Paul
02:23
created
src/Settings.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,9 @@  discard block
 block discarded – undo
28 28
 	public function init()
29 29
 	{
30 30
 		// @todo: run GateKeeper here instead to check dependencies and capability
31
-		if( !is_plugin_active( 'meta-box/meta-box.php' ))return;
31
+		if( !is_plugin_active( 'meta-box/meta-box.php' )) {
32
+			return;
33
+		}
32 34
 
33 35
 		$this->normalize();
34 36
 
@@ -105,7 +107,9 @@  discard block
 block discarded – undo
105 107
 	 */
106 108
 	public function register( $metaboxes = [] )
107 109
 	{
108
-		if( get_current_screen()->id != $this->hook )return;
110
+		if( get_current_screen()->id != $this->hook ) {
111
+			return;
112
+		}
109 113
 		foreach( parent::register() as $metabox ) {
110 114
 			new SettingsMetaBox( $metabox );
111 115
 		}
@@ -172,7 +176,9 @@  discard block
 block discarded – undo
172 176
 	{
173 177
 		if( filter_input( INPUT_GET, 'page' ) !== static::ID
174 178
 			|| filter_input( INPUT_GET, 'action' ) !== 'reset'
175
-		)return;
179
+		) {
180
+			return;
181
+		}
176 182
 		if( wp_verify_nonce( filter_input( INPUT_GET, '_wpnonce' ), $this->hook )) {
177 183
 			delete_option( static::ID );
178 184
 			// @todo: now trigger save to restore defaults
Please login to merge, or discard this patch.