Passed
Pull Request — master (#3)
by Joseph
96:53 queued 54:53
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( esc_html_e( 'Subway Error: Unable to find template file in: %1s', 'subway' ), $template );
88
+			echo sprintf( esc_html_e( '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   +52 added lines, -52 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
 
@@ -35,64 +35,64 @@  discard block
 block discarded – undo
35 35
 	// Register our settings section.
36 36
 	add_settings_section( 'subway-page-visibility-section', __( 'Pages Visibility', 'subway' ), 'subway_section_cb', 'subway-settings-section' );
37 37
 
38
-    // Register Redirect Options pages.
38
+	// Register Redirect Options pages.
39 39
 	add_settings_section( 'subway-redirect-section', __( 'Redirect Options', 'subway' ), 'subway_redirect_cb', 'subway-settings-section' );
40 40
 
41 41
 	// Register the fields.
42
-    $fields = array(
43
-    		array(
44
-    				'id' => 'subway_is_public',
45
-    				'label' => __( 'Public Website', 'subway' ),
46
-    				'callback' => 'subway_is_public_form',
47
-    				'section' => 'subway-settings-section',
48
-    				'group' => 'subway-page-visibility-section'
49
-    			),
42
+	$fields = array(
43
+			array(
44
+					'id' => 'subway_is_public',
45
+					'label' => __( 'Public Website', 'subway' ),
46
+					'callback' => 'subway_is_public_form',
47
+					'section' => 'subway-settings-section',
48
+					'group' => 'subway-page-visibility-section'
49
+				),
50 50
     		
51
-    		array(
52
-    				'id' => 'subway_login_page',
53
-    				'label' => __( 'Private Login Page', 'subway' ),
54
-    				'callback' => 'subway_login_page_form',
55
-    				'section' => 'subway-settings-section',
56
-    				'group' => 'subway-page-visibility-section'
57
-    			),
58
-    		array(
59
-    				'id' => 'subway_public_post',
60
-    				'label' => __( 'Public Posts IDs', 'subway' ),
61
-    				'callback' => 'subway_public_post',
62
-    				'section' => 'subway-settings-section',
63
-    				'group' => 'subway-page-visibility-section'
64
-    			),
51
+			array(
52
+					'id' => 'subway_login_page',
53
+					'label' => __( 'Private Login Page', 'subway' ),
54
+					'callback' => 'subway_login_page_form',
55
+					'section' => 'subway-settings-section',
56
+					'group' => 'subway-page-visibility-section'
57
+				),
58
+			array(
59
+					'id' => 'subway_public_post',
60
+					'label' => __( 'Public Posts IDs', 'subway' ),
61
+					'callback' => 'subway_public_post',
62
+					'section' => 'subway-settings-section',
63
+					'group' => 'subway-page-visibility-section'
64
+				),
65 65
     	
66
-    		array(
67
-    				'id' => 'subway_redirect_type',
68
-    				'label' => __( 'Redirect Type', 'subway' ),
69
-    				'callback' => 'subway_redirect_option_form',
70
-    				'section' => 'subway-settings-section',
71
-    				'group' => 'subway-redirect-section'
72
-    			),
73
-    		array(
74
-    				'id' => 'subway_redirect_wp_admin',
75
-    				'label' => __( 'Block <em>wp-admin</em> Access', 'subway' ),
76
-    				'callback' => 'subway_lock_wp_admin',
77
-    				'section' => 'subway-settings-section',
78
-    				'group' => 'subway-redirect-section'
79
-    			),
80
-    	);
81
-
82
-    foreach( $fields as $field ) {
83
-
84
-    	add_settings_field( $field['id'], $field['label'], $field['callback'], $field['section'], $field['group'] );
85
-    	register_setting( 'subway-settings-group', $field['id'] );
86
-    	require_once trailingslashit( SUBWAY_DIR_PATH ) . 'settings-fields/field-' . sanitize_title( str_replace('_','-', $field['callback']) ) . '.php';
87
-    }
88
-
89
-    // Register Redirect Page ID Settings.
66
+			array(
67
+					'id' => 'subway_redirect_type',
68
+					'label' => __( 'Redirect Type', 'subway' ),
69
+					'callback' => 'subway_redirect_option_form',
70
+					'section' => 'subway-settings-section',
71
+					'group' => 'subway-redirect-section'
72
+				),
73
+			array(
74
+					'id' => 'subway_redirect_wp_admin',
75
+					'label' => __( 'Block <em>wp-admin</em> Access', 'subway' ),
76
+					'callback' => 'subway_lock_wp_admin',
77
+					'section' => 'subway-settings-section',
78
+					'group' => 'subway-redirect-section'
79
+				),
80
+		);
81
+
82
+	foreach( $fields as $field ) {
83
+
84
+		add_settings_field( $field['id'], $field['label'], $field['callback'], $field['section'], $field['group'] );
85
+		register_setting( 'subway-settings-group', $field['id'] );
86
+		require_once trailingslashit( SUBWAY_DIR_PATH ) . 'settings-fields/field-' . sanitize_title( str_replace('_','-', $field['callback']) ) . '.php';
87
+	}
88
+
89
+	// Register Redirect Page ID Settings.
90 90
 	register_setting( 'subway-settings-group', 'subway_redirect_page_id' );
91 91
 
92
-    // Register Redirect Custom URL Settings.
92
+	// Register Redirect Custom URL Settings.
93 93
 	register_setting( 'subway-settings-group', 'subway_redirect_custom_url' );
94 94
 
95
-    return;
95
+	return;
96 96
 }
97 97
 
98 98
 function subway_section_cb() {
Please login to merge, or discard this patch.