Passed
Pull Request — master (#1)
by Joseph
11:42
created
shortcodes/subway-shortcodes.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -77,19 +77,19 @@
 block discarded – undo
77 77
 
78 78
 			if ( $theme_template = locate_template( array('gears/shortcodes/'.$file ) ) ) {
79 79
 
80
-	        	$template = $theme_template;
80
+				$template = $theme_template;
81 81
 
82
-	    	}
82
+			}
83 83
 
84
-	    	include $template;
84
+			include $template;
85 85
 
86
-    	} else {
86
+		} else {
87 87
 
88
-	    	echo sprintf( __( 'Subway Error: Unable to find template file in: %1s', 'subway' ), $template );
88
+			echo sprintf( __( 'Subway Error: Unable to find template file in: %1s', 'subway' ), $template );
89 89
 
90
-	    }
90
+		}
91 91
 
92
-	    return ob_get_clean();
92
+		return ob_get_clean();
93 93
 	}
94 94
 
95 95
 	public function login_form_action( $__content ) {
Please login to merge, or discard this patch.
admin-settings.php 1 patch
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  */
12 12
 
13 13
 if ( ! defined( 'ABSPATH' ) ) {
14
-    return;
14
+	return;
15 15
 }
16 16
 
17 17
 add_action( 'admin_menu', 'subway_admin_menu' );
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
  */
25 25
 function subway_admin_menu() {
26 26
     
27
-    add_options_page( 'Subway Settings', 'Subway', 'manage_options', 'subway', 'subway_options_page' );
27
+	add_options_page( 'Subway Settings', 'Subway', 'manage_options', 'subway', 'subway_options_page' );
28 28
 
29
-    return;
29
+	return;
30 30
 }
31 31
 
32 32
 
@@ -37,57 +37,57 @@  discard block
 block discarded – undo
37 37
 	add_settings_section( 'subway-redirect-section', __( 'Redirect Options', 'subway' ), 'subway_redirect_cb', 'subway-settings-section' );
38 38
 
39 39
 	// Register the fields.
40
-    $fields = array(
41
-    		array(
42
-    				'id' => 'subway_is_public',
43
-    				'label' => __( 'Public Website', 'subway' ),
44
-    				'callback' => 'subway_is_public_form',
45
-    				'section' => 'subway-settings-section',
46
-    				'group' => 'subway-page-visibility-section'
47
-    			),
40
+	$fields = array(
41
+			array(
42
+					'id' => 'subway_is_public',
43
+					'label' => __( 'Public Website', 'subway' ),
44
+					'callback' => 'subway_is_public_form',
45
+					'section' => 'subway-settings-section',
46
+					'group' => 'subway-page-visibility-section'
47
+				),
48 48
     		
49
-    		array(
50
-    				'id' => 'subway_login_page',
51
-    				'label' => __( 'Private Login Page', 'subway' ),
52
-    				'callback' => 'subway_login_page_form',
53
-    				'section' => 'subway-settings-section',
54
-    				'group' => 'subway-page-visibility-section'
55
-    			),
56
-    		array(
57
-    				'id' => 'subway_public_post',
58
-    				'label' => __( 'Public Posts IDs', 'subway' ),
59
-    				'callback' => 'subway_public_post',
60
-    				'section' => 'subway-settings-section',
61
-    				'group' => 'subway-page-visibility-section'
62
-    			),
49
+			array(
50
+					'id' => 'subway_login_page',
51
+					'label' => __( 'Private Login Page', 'subway' ),
52
+					'callback' => 'subway_login_page_form',
53
+					'section' => 'subway-settings-section',
54
+					'group' => 'subway-page-visibility-section'
55
+				),
56
+			array(
57
+					'id' => 'subway_public_post',
58
+					'label' => __( 'Public Posts IDs', 'subway' ),
59
+					'callback' => 'subway_public_post',
60
+					'section' => 'subway-settings-section',
61
+					'group' => 'subway-page-visibility-section'
62
+				),
63 63
     	
64
-    		array(
65
-    				'id' => 'subway_redirect_type',
66
-    				'label' => __( 'Redirect Type', 'subway' ),
67
-    				'callback' => 'subway_redirect_option_form',
68
-    				'section' => 'subway-settings-section',
69
-    				'group' => 'subway-redirect-section'
70
-    			),
71
-    		array(
72
-    				'id' => 'subway_redirect_wp_admin',
73
-    				'label' => __( 'Block <em>wp-admin</em> Access', 'subway' ),
74
-    				'callback' => 'subway_lock_wp_admin',
75
-    				'section' => 'subway-settings-section',
76
-    				'group' => 'subway-redirect-section'
77
-    			),
78
-    	);
79
-
80
-    foreach( $fields as $field ) {
81
-
82
-    	add_settings_field( $field['id'], $field['label'], $field['callback'], $field['section'], $field['group'] );
83
-    	register_setting( 'subway-settings-group', $field['id'] );
84
-    	require_once trailingslashit( SUBWAY_DIR_PATH ) . 'settings-fields/field-' . sanitize_title( str_replace('_','-', $field['callback']) ) . '.php';
85
-    }
64
+			array(
65
+					'id' => 'subway_redirect_type',
66
+					'label' => __( 'Redirect Type', 'subway' ),
67
+					'callback' => 'subway_redirect_option_form',
68
+					'section' => 'subway-settings-section',
69
+					'group' => 'subway-redirect-section'
70
+				),
71
+			array(
72
+					'id' => 'subway_redirect_wp_admin',
73
+					'label' => __( 'Block <em>wp-admin</em> Access', 'subway' ),
74
+					'callback' => 'subway_lock_wp_admin',
75
+					'section' => 'subway-settings-section',
76
+					'group' => 'subway-redirect-section'
77
+				),
78
+		);
79
+
80
+	foreach( $fields as $field ) {
81
+
82
+		add_settings_field( $field['id'], $field['label'], $field['callback'], $field['section'], $field['group'] );
83
+		register_setting( 'subway-settings-group', $field['id'] );
84
+		require_once trailingslashit( SUBWAY_DIR_PATH ) . 'settings-fields/field-' . sanitize_title( str_replace('_','-', $field['callback']) ) . '.php';
85
+	}
86 86
 
87 87
 	register_setting( 'subway-settings-group', 'subway_redirect_page_id' );
88 88
 	register_setting( 'subway-settings-group', 'subway_redirect_custom_url' );
89 89
 
90
-    return;
90
+	return;
91 91
 }
92 92
 
93 93
 function subway_section_cb() {
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 }
100 100
 
101 101
 function subway_options_page() {
102
-    ?>
102
+	?>
103 103
     <div class="wrap">
104 104
         <h2>
105 105
         	<?php esc_html_e('Subway Settings', 'subway'); ?>
Please login to merge, or discard this patch.