Completed
Push — master ( 34f8d7...c5b2f2 )
by Jamie
03:04
created
classes/models/FrmEntryFormat.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -126,19 +126,19 @@
 block discarded – undo
126 126
 	}
127 127
 
128 128
 	/**
129
-	* Flatten multi-dimensional array for multi-file upload fields
130
-	* @since 2.0.9
131
-	*/
129
+	 * Flatten multi-dimensional array for multi-file upload fields
130
+	 * @since 2.0.9
131
+	 */
132 132
 	public static function flatten_multi_file_upload( $field, &$val ) {
133 133
 		if ( $field->type == 'file' && FrmField::is_option_true( $field, 'multiple' ) ) {
134 134
 			$val = FrmAppHelper::array_flatten( $val );
135 135
 		}
136 136
 	}
137 137
 
138
-    /**
139
-     * Replace returns with HTML line breaks for display
140
-     * @since 2.0.9
141
-     */
138
+	/**
139
+	 * Replace returns with HTML line breaks for display
140
+	 * @since 2.0.9
141
+	 */
142 142
 	public static function textarea_display_value( $type, $plain_text, &$value ) {
143 143
 		if ( $type == 'textarea' && ! $plain_text ) {
144 144
 			$value = str_replace( array( "\r\n", "\r", "\n" ), ' <br/>', $value );
Please login to merge, or discard this patch.
classes/views/frm-entries/_sidebar-shared-pub.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 if ( ! isset( $entry) ) {
3
-    $entry = $record;
3
+	$entry = $record;
4 4
 } ?>
5 5
 
6 6
 <div class="misc-pub-section curtime misc-pub-curtime">
7 7
     <span id="timestamp">
8 8
     <?php
9
-    $date_format = __( 'M j, Y @ G:i' );
9
+	$date_format = __( 'M j, Y @ G:i' );
10 10
 	printf( __( 'Published on: <b>%1$s</b>' ), FrmAppHelper::get_localized_date( $date_format, $entry->created_at ) ); ?>
11 11
     </span>
12 12
 </div>
Please login to merge, or discard this patch.
classes/views/frm-entries/sidebar-shared.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -66,18 +66,18 @@
 block discarded – undo
66 66
         <?php } ?>
67 67
 
68 68
         <?php
69
-        foreach ( (array) $data as $k => $d ) {
69
+		foreach ( (array) $data as $k => $d ) {
70 70
 			if ( in_array( $k, array( 'browser', 'referrer' ) ) ) {
71
-                continue;
72
-            }
73
-        ?>
71
+				continue;
72
+			}
73
+		?>
74 74
         <div class="misc-pub-section">
75 75
 			<b><?php echo sanitize_text_field( ucfirst( str_replace( '-', ' ', $k ) ) ); ?></b>:
76 76
 			<?php echo wp_kses_post( implode( ', ', (array) $d ) ); ?>
77 77
         </div>
78 78
         <?php
79
-            unset($k, $d);
80
-        }
81
-        ?>
79
+			unset($k, $d);
80
+		}
81
+		?>
82 82
     </div>
83 83
 </div>
Please login to merge, or discard this patch.
classes/views/frm-form-actions/default_actions.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 class FrmDefPostAction extends FrmFormAction {
4 4
 	public function __construct() {
5 5
 		$action_ops = FrmFormAction::default_action_opts();
6
-	    $action_ops['classes'] = 'ab-icon frm_dashicon_font dashicons-before';
6
+		$action_ops['classes'] = 'ab-icon frm_dashicon_font dashicons-before';
7 7
 
8 8
 		parent::__construct( 'wppost', __( 'Create Post', 'formidable' ), $action_ops );
9 9
 	}
Please login to merge, or discard this patch.
classes/views/frm-forms/_publish_box.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@  discard block
 block discarded – undo
12 12
             <?php } ?>
13 13
             <div id="preview-action">
14 14
                 <?php
15
-                if ( ! isset($hide_preview) || ! $hide_preview ) {
15
+				if ( ! isset($hide_preview) || ! $hide_preview ) {
16 16
 
17
-                    if ( isset($values['form_key']) ) {
18
-                        $frm_settings = FrmAppHelper::get_settings();
19
-                        if ( empty($frm_settings->preview_page_id) ) { ?>
17
+					if ( isset($values['form_key']) ) {
18
+						$frm_settings = FrmAppHelper::get_settings();
19
+						if ( empty($frm_settings->preview_page_id) ) { ?>
20 20
                     <a href="<?php echo esc_url( FrmFormsHelper::get_direct_link($values['form_key']) ); ?>" class="preview button" target="wp-frm-preview-<?php echo esc_attr( $id ) ?>"><?php _e( 'Preview', 'formidable' ) ?></a>
21 21
                 <?php
22
-                        } else {
23
-                ?>
22
+						} else {
23
+				?>
24 24
                     <div class="preview dropdown">
25 25
                         <a href="#" id="frm-previewDrop" class="frm-dropdown-toggle button" data-toggle="dropdown"><?php _e( 'Preview', 'formidable' ) ?> <b class="caret"></b></a>
26 26
 
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
                     	</ul>
31 31
                     </div>
32 32
                 <?php   }
33
-                    }
34
-                } ?>
33
+					}
34
+				} ?>
35 35
             </div>
36 36
             <?php if ( 'draft' == $values['status'] ) { ?>
37 37
             <div class="clear"></div>
Please login to merge, or discard this patch.
classes/views/frm-settings/form.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,10 +157,10 @@
 block discarded – undo
157 157
 					call_user_func( array( $section['class'], $section['function'] ) );
158 158
 				} else {
159 159
 					call_user_func( ( isset( $section['function'] ) ? $section['function'] : $section ) );
160
-                } ?>
160
+				} ?>
161 161
             </div>
162 162
         <?php
163
-        } ?>
163
+		} ?>
164 164
 
165 165
         <p class="alignright frm_uninstall">
166 166
             <a href="javascript:void(0)" id="frm_uninstall_now"><?php _e( 'Uninstall Formidable', 'formidable' ) ?></a>
Please login to merge, or discard this patch.
classes/views/shared/errors.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <div class="clear"></div>
2 2
 <?php
3 3
 if ( isset($message) && $message != '' ) {
4
-    if ( FrmAppHelper::is_admin() ) {
5
-        ?><div id="message" class="updated frm_msg_padding"><?php
6
-        echo $message;
7
-        ?></div><?php
8
-    } else {
9
-        echo $message;
10
-    }
4
+	if ( FrmAppHelper::is_admin() ) {
5
+		?><div id="message" class="updated frm_msg_padding"><?php
6
+		echo $message;
7
+		?></div><?php
8
+	} else {
9
+		echo $message;
10
+	}
11 11
 }
12 12
 
13 13
 if ( isset($errors) && is_array($errors) && count($errors) > 0 ) { ?>
14 14
     <div class="error">
15 15
         <ul id="frm_errors">
16 16
             <?php
17
-            foreach ( $errors as $error ) {
18
-                echo '<li>' . $error . '</li>';
19
-            }
20
-            ?>
17
+			foreach ( $errors as $error ) {
18
+				echo '<li>' . $error . '</li>';
19
+			}
20
+			?>
21 21
         </ul>
22 22
     </div>
23 23
 <?php
Please login to merge, or discard this patch.
classes/views/styles/custom_css.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
         <textarea name="<?php echo esc_attr( $frm_style->get_field_name('custom_css') ) ?>" id="frm_custom_css_box" class="hide-if-js"><?php echo FrmAppHelper::esc_textarea($style->post_content['custom_css']) ?></textarea>
18 18
 
19 19
         <?php
20
-        foreach ( $style->post_content as $k => $v ) {
21
-            if ( $k == 'custom_css' ) {
22
-                continue;
23
-            }
24
-        ?>
20
+		foreach ( $style->post_content as $k => $v ) {
21
+			if ( $k == 'custom_css' ) {
22
+				continue;
23
+			}
24
+		?>
25 25
         <input type="hidden" value="<?php echo esc_attr($v) ?>" name="<?php echo esc_attr( $frm_style->get_field_name( $k ) ) ?>" />    
26 26
         <?php
27
-        } ?>
27
+		} ?>
28 28
 		<p class="button-controls"><input type="submit" name="nav-menu-locations" id="nav-menu-locations" class="button button-primary left" value="<?php esc_attr_e( 'Save Changes', 'formidable' ) ?>" /></p>
29 29
 
30 30
     </form>
Please login to merge, or discard this patch.
classes/views/styles/manage.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
 
20 20
 			<tbody class="menu-locations">
21 21
 			    <?php
22
-			    if ( $forms ) {
23
-			        foreach ( $forms as $form ) {
24
-			            $this_style = isset($form->options['custom_style']) ? (int) $form->options['custom_style'] : 1;
25
-			            if ( 1 == $this_style ) {
26
-			                // use the default style
27
-			                $this_style = $default_style->ID;
28
-			            }
29
-			        ?>
22
+				if ( $forms ) {
23
+					foreach ( $forms as $form ) {
24
+						$this_style = isset($form->options['custom_style']) ? (int) $form->options['custom_style'] : 1;
25
+						if ( 1 == $this_style ) {
26
+							// use the default style
27
+							$this_style = $default_style->ID;
28
+						}
29
+					?>
30 30
 				<tr id="menu-locations-row">
31 31
 					<td class="menu-location-title"><strong><?php echo empty($form->name) ? __( '(no title)') : $form->name ?></strong></td>
32 32
 					<td class="menu-location-menus">
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 					</td><!-- .menu-location-menus -->
42 42
 				</tr><!-- #menu-locations-row -->
43 43
 				<?php
44
-				    }
44
+					}
45 45
 				} else {
46 46
 				?>
47 47
 				<tr>
Please login to merge, or discard this patch.