Completed
Push — develop ( bd6ad5...7b688d )
by Zack
04:29
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/name.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 name field type
4
- *
5
- * @package GravityView
6
- * @subpackage GravityView/templates/fields
7
- */
3
+	 * Display the name 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.
templates/fields/other_entries.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Display other entries created by the entry creator field type
4
- *
5
- * @package GravityView
6
- * @subpackage GravityView/templates/fields
7
- */
3
+	 * Display other entries created by the entry creator field type
4
+	 *
5
+	 * @package GravityView
6
+	 * @subpackage GravityView/templates/fields
7
+	 */
8 8
 
9 9
 $gravityview_view = GravityView_View::getInstance();
10 10
 
@@ -26,19 +26,19 @@  discard block
 block discarded – undo
26 26
 
27 27
 // Prepare paging criteria
28 28
 $criteria['paging'] = array(
29
-    'offset' => 0,
30
-    'page_size' => $view_settings['page_size']
29
+	'offset' => 0,
30
+	'page_size' => $view_settings['page_size']
31 31
 );
32 32
 
33 33
 // Prepare Search Criteria
34 34
 $criteria['search_criteria'] = array(
35
-    'field_filters' => array(
36
-        array(
37
-            'key' => 'created_by',
38
-            'value' => $created_by,
39
-            'operator' => 'is'
40
-        )
41
-    )
35
+	'field_filters' => array(
36
+		array(
37
+			'key' => 'created_by',
38
+			'value' => $created_by,
39
+			'operator' => 'is'
40
+		)
41
+	)
42 42
 );
43 43
 $criteria['search_criteria'] = GravityView_frontend::process_search_only_approved( $view_settings, $criteria['search_criteria'] );
44 44
 $criteria['search_criteria']['status'] = apply_filters( 'gravityview_status', 'active', $view_settings );
@@ -80,5 +80,5 @@  discard block
 block discarded – undo
80 80
  */
81 81
 $deprecated = apply_filters( 'gravityview/field/other_entries/args', array(), $field );
82 82
 if ( !empty( $deprecated ) ) {
83
-    _deprecated_function(  'The "gravityview/field/other_entries/args" filter', 'GravityView 1.11', 'gravityview/field/other_entries/criteria' );
83
+	_deprecated_function(  'The "gravityview/field/other_entries/args" filter', 'GravityView 1.11', 'gravityview/field/other_entries/criteria' );
84 84
 }
Please login to merge, or discard this patch.