Completed
Branch master (3ac4b1)
by Zack
04:30
created
includes/fields/time.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -255,7 +255,6 @@
 block discarded – undo
255 255
 	 * Get the default date format for a field based on the field ID and the time format setting
256 256
 	 *
257 257
 	 * @since 1.14
258
-
259 258
 	 * @param string $time_format The time format ("12" or "24"). Default: "12" {@since 1.14}
260 259
 	 * @param int $field_id The ID of the field. Used to figure out full time/hours/minutes/am/pm {@since 1.14}
261 260
 	 *
Please login to merge, or discard this patch.
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/load-plugin-and-theme-hooks.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Include files that load plugin and theme hooks
4
- *
5
- * @file      load-plugin-and-theme-hooks.php
6
- * @package   GravityView
7
- * @license   GPL2+
8
- * @author    Katz Web Services, Inc.
9
- * @link      http://gravityview.co
10
- * @copyright Copyright 2015, Katz Web Services, Inc.
11
- *
12
- * @since 1.15.2
13
- */
3
+	 * Include files that load plugin and theme hooks
4
+	 *
5
+	 * @file      load-plugin-and-theme-hooks.php
6
+	 * @package   GravityView
7
+	 * @license   GPL2+
8
+	 * @author    Katz Web Services, Inc.
9
+	 * @link      http://gravityview.co
10
+	 * @copyright Copyright 2015, Katz Web Services, Inc.
11
+	 *
12
+	 * @since 1.15.2
13
+	 */
14 14
 
15 15
 
16 16
 /** @define "GRAVITYVIEW_DIR" "../" */
Please login to merge, or discard this patch.
plugin-and-theme-hooks/abstract-gravityview-plugin-and-theme-hooks.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles, as well as
4
- * add post meta keys for GravityView to parse when checking for the existence of shortcodes in content.
5
- *
6
- * @file      abstract-gravityview-plugin-and-theme-hooks.php
7
- * @package   GravityView
8
- * @license   GPL2+
9
- * @author    Katz Web Services, Inc.
10
- * @link      http://gravityview.co
11
- * @copyright Copyright 2015, Katz Web Services, Inc.
12
- *
13
- * @since 1.15.2
14
- */
3
+	 * Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles, as well as
4
+	 * add post meta keys for GravityView to parse when checking for the existence of shortcodes in content.
5
+	 *
6
+	 * @file      abstract-gravityview-plugin-and-theme-hooks.php
7
+	 * @package   GravityView
8
+	 * @license   GPL2+
9
+	 * @author    Katz Web Services, Inc.
10
+	 * @link      http://gravityview.co
11
+	 * @copyright Copyright 2015, Katz Web Services, Inc.
12
+	 *
13
+	 * @since 1.15.2
14
+	 */
15 15
 
16 16
 /**
17 17
  * Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles, as well as
Please login to merge, or discard this patch.
includes/presets/resume-board/class-gravityview-preset-resume-board.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * GravityView preset template
4
- *
5
- * @file class-gravityview-preset-resume-board.php
6
- * @package   GravityView
7
- * @license   GPL2+
8
- * @author    Katz Web Services, Inc.
9
- * @link      http://gravityview.co
10
- * @copyright Copyright 2015, Katz Web Services, Inc.
11
- *
12
- * @since 1.15
13
- */
3
+	 * GravityView preset template
4
+	 *
5
+	 * @file class-gravityview-preset-resume-board.php
6
+	 * @package   GravityView
7
+	 * @license   GPL2+
8
+	 * @author    Katz Web Services, Inc.
9
+	 * @link      http://gravityview.co
10
+	 * @copyright Copyright 2015, Katz Web Services, Inc.
11
+	 *
12
+	 * @since 1.15
13
+	 */
14 14
 
15 15
 class GravityView_Preset_Resume_Board extends GravityView_Default_Template_Table {
16 16
 
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.