Completed
Pull Request — master (#605)
by Zack
08:59 queued 03:39
created
includes/helper-functions.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@
 block discarded – undo
307 307
 		! isset( $value ) // If it's not set, it's empty!
308 308
 		|| false === $value
309 309
 		|| null === $value
310
-	    || '' === $value // Empty string
310
+		|| '' === $value // Empty string
311 311
 		|| array() === $value // Empty array
312 312
 		|| ( is_object( $value ) && ! get_object_vars( $value ) ) // Empty object
313 313
 	) {
Please login to merge, or discard this patch.
includes/lib/xml-parsers/parsers.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copied from WordPress Importer plugin
4
- * http://wordpress.org/extend/plugins/wordpress-importer/
5
- * Version: 0.6.1
6
- * License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
7
- */
3
+	 * Copied from WordPress Importer plugin
4
+	 * http://wordpress.org/extend/plugins/wordpress-importer/
5
+	 * Version: 0.6.1
6
+	 * License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
7
+	 */
8 8
 
9 9
 /**
10 10
  * WordPress Importer class for managing parsing of WXR files.
Please login to merge, or discard this patch.
includes/widgets/class-gravityview-widget.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -116,12 +116,12 @@
 block discarded – undo
116 116
 		return $settings;
117 117
 	}
118 118
 
119
-    /**
120
-     * @return string
121
-     */
122
-    public function get_widget_id() {
123
-        return $this->widget_id;
124
-    }
119
+	/**
120
+	 * @return string
121
+	 */
122
+	public function get_widget_id() {
123
+		return $this->widget_id;
124
+	}
125 125
 
126 126
 	/**
127 127
 	 * Get the widget settings
Please login to merge, or discard this patch.
includes/widgets/search-widget/class-search-widget.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -384,16 +384,16 @@
 block discarded – undo
384 384
 		$curr_start = esc_attr( rgget( 'gv_start' ) );
385 385
 		$curr_end = esc_attr( rgget( 'gv_end' ) );
386 386
 
387
-        /**
388
-         * @filter `gravityview_date_created_adjust_timezone` Whether to adjust the timezone for entries. \n
389
-         * date_created is stored in UTC format. Convert search date into UTC (also used on templates/fields/date_created.php)
390
-         * @since 1.12
391
-         * @param[out,in] boolean $adjust_tz  Use timezone-adjusted datetime? If true, adjusts date based on blog's timezone setting. If false, uses UTC setting. Default: true
392
-         * @param[in] string $context Where the filter is being called from. `search` in this case.
393
-         */
394
-        $adjust_tz = apply_filters( 'gravityview_date_created_adjust_timezone', true, 'search' );
395
-        $search_criteria['start_date'] = ( $adjust_tz && !empty( $curr_start ) ) ? get_gmt_from_date( $curr_start ) : $curr_start;
396
-        $search_criteria['end_date'] = ( $adjust_tz  && !empty( $curr_end ) ) ? get_gmt_from_date( $curr_end ) : $curr_end;
387
+		/**
388
+		 * @filter `gravityview_date_created_adjust_timezone` Whether to adjust the timezone for entries. \n
389
+		 * date_created is stored in UTC format. Convert search date into UTC (also used on templates/fields/date_created.php)
390
+		 * @since 1.12
391
+		 * @param[out,in] boolean $adjust_tz  Use timezone-adjusted datetime? If true, adjusts date based on blog's timezone setting. If false, uses UTC setting. Default: true
392
+		 * @param[in] string $context Where the filter is being called from. `search` in this case.
393
+		 */
394
+		$adjust_tz = apply_filters( 'gravityview_date_created_adjust_timezone', true, 'search' );
395
+		$search_criteria['start_date'] = ( $adjust_tz && !empty( $curr_start ) ) ? get_gmt_from_date( $curr_start ) : $curr_start;
396
+		$search_criteria['end_date'] = ( $adjust_tz  && !empty( $curr_end ) ) ? get_gmt_from_date( $curr_end ) : $curr_end;
397 397
 
398 398
 
399 399
 		// search for a specific entry ID
Please login to merge, or discard this patch.
includes/widgets/search-widget/templates/search-field-link.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -39,22 +39,22 @@
 block discarded – undo
39 39
 
40 40
         <?php
41 41
 
42
-        $search_value = rgget( $search_field['name'] );
42
+		$search_value = rgget( $search_field['name'] );
43 43
 
44
-        foreach ( $search_field['choices'] as $k => $choice ) {
44
+		foreach ( $search_field['choices'] as $k => $choice ) {
45 45
 
46
-            if ( 0 != $k ) {
47
-                echo esc_html( $links_sep );
48
-            }
46
+			if ( 0 != $k ) {
47
+				echo esc_html( $links_sep );
48
+			}
49 49
 
50
-            $active = ( '' !== $search_value && in_array( $search_value, array( $choice['text'], $choice['value'] ) ) ) ? ' class="active"' : false;
50
+			$active = ( '' !== $search_value && in_array( $search_value, array( $choice['text'], $choice['value'] ) ) ) ? ' class="active"' : false;
51 51
 
52
-            if ( $active ) {
53
-                $link = remove_query_arg( array( 'pagenum', $search_field['name'] ), $base_url );
54
-            } else {
55
-                $link = add_query_arg( array( $search_field['name'] => urlencode( $choice['value'] ) ), remove_query_arg( array('pagenum'), $base_url ) );
56
-            }
57
-            ?>
52
+			if ( $active ) {
53
+				$link = remove_query_arg( array( 'pagenum', $search_field['name'] ), $base_url );
54
+			} else {
55
+				$link = add_query_arg( array( $search_field['name'] => urlencode( $choice['value'] ) ), remove_query_arg( array('pagenum'), $base_url ) );
56
+			}
57
+			?>
58 58
 
59 59
 			<a href="<?php echo esc_url_raw( $link ); ?>" <?php echo $active; ?>><?php echo esc_html( $choice['text'] ); ?></a>
60 60
 
Please login to merge, or discard this patch.
includes/widgets/search-widget/templates/search-field-multiselect.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Display the search MULTISELECT input field
4
- *
5
- * @see class-search-widget.php
6
- */
3
+			 * Display the search MULTISELECT input field
4
+			 *
5
+			 * @see class-search-widget.php
6
+			 */
7 7
 
8 8
 $gravityview_view = GravityView_View::getInstance();
9 9
 $view_id = $gravityview_view->getViewId();
Please login to merge, or discard this patch.
templates/fields/address.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	if( !isset( $field_settings['show_map_link'] ) || !empty( $field_settings['show_map_link'] ) ){
26 26
 
27 27
 		// Add the map link as another line
28
-	    $value_with_newline .= "\n" . gravityview_get_map_link( $value_with_newline );
28
+		$value_with_newline .= "\n" . gravityview_get_map_link( $value_with_newline );
29 29
 
30 30
 	}
31 31
 
Please login to merge, or discard this patch.
templates/fields/list.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Display the list field type
4
- *
5
- * @todo Confirm it works with http://gravitywiz.com/use-list-field-choices-gravity-forms/
6
- * @package GravityView
7
- * @subpackage GravityView/templates/fields
8
- * @global GF_Field_List $field
9
- * @global string $field_id ID of the field
10
- * @global string $value Gravity Forms serializes the list field values
11
- * @global string $display_value Field output HTML. For list fields with columns, it's a table. Otherwise, an unordered list
12
- */
3
+	 * Display the list field type
4
+	 *
5
+	 * @todo Confirm it works with http://gravitywiz.com/use-list-field-choices-gravity-forms/
6
+	 * @package GravityView
7
+	 * @subpackage GravityView/templates/fields
8
+	 * @global GF_Field_List $field
9
+	 * @global string $field_id ID of the field
10
+	 * @global string $value Gravity Forms serializes the list field values
11
+	 * @global string $display_value Field output HTML. For list fields with columns, it's a table. Otherwise, an unordered list
12
+	 */
13 13
 
14 14
 $gravityview_view = GravityView_View::getInstance();
15 15
 
Please login to merge, or discard this patch.
templates/fields/post_category.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Display the post_category field type
4
- *
5
- * @package GravityView
6
- * @subpackage GravityView/templates/fields
7
- */
3
+	 * Display the post_category field type
4
+	 *
5
+	 * @package GravityView
6
+	 * @subpackage GravityView/templates/fields
7
+	 */
8 8
 
9 9
 $gravityview_view = GravityView_View::getInstance();
10 10
 
Please login to merge, or discard this patch.