Completed
Push — master ( 257a64...3e3cf0 )
by Paul
06:59 queued 03:28
created
src/Config/Config.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,9 @@  discard block
 block discarded – undo
37 37
 	 */
38 38
 	public function init()
39 39
 	{
40
-		if( $this->app->config->disable_config )return;
40
+		if( $this->app->config->disable_config ) {
41
+			return;
42
+		}
41 43
 
42 44
 		add_action( 'admin_menu',     [$this, 'registerPage'] );
43 45
 		add_action( 'admin_menu',     [$this, 'registerSetting'] );
@@ -107,7 +109,9 @@  discard block
 block discarded – undo
107 109
 	{
108 110
 		if( filter_input( INPUT_GET, 'page' ) !== $this->app->id
109 111
 			|| filter_input( INPUT_GET, 'action' ) !== 'reset'
110
-		)return;
112
+		) {
113
+			return;
114
+		}
111 115
 		if( wp_verify_nonce( filter_input( INPUT_GET, '_wpnonce' ), static::id() )) {
112 116
 			delete_option( static::id() );
113 117
 			$this->app->make( ConfigManager::class )->compile( true );
Please login to merge, or discard this patch.